cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1393
Views
1
Helpful
9
Replies

Copy Xmodem ready only file system

harshitking21
Level 1
Level 1

switch: copy xmodem:cat3k_caa-universalk9.SPA.03.06.10.E.152-2.E10.bin flash:/cat3k_caa-universalk9.SPA.03.06.10.E.152-2.E10/cat3k_caa-universalk9.SPA.03.06.10.E.152-2.E10.bin
Begin the Xmodem or Xmodem-1K transfer now...
Cflash:/cat3k_caa-universalk9.SPA.03.06.10.E.152-2.E10/cat3k_caa-universalk9.SPA.03.06.10.E.152-2.E10.bin: read only file system

Could anyone can help with this issue ?

 appreciated 

9 Replies 9

Hi @harshitking21 

Before run the xmodem command, run the following command

switch: flash_init

switch: flash_init
Initializing Flash...
...The flash is already initialized.

Leo Laohoo
Hall of Fame
Hall of Fame

@harshitking21 wrote:
read only file system

On a 3650/3850, copying anything while in ROMMON is not allowed.  This is an in-built security measure to minimize the risk of compromising the IOS-XE firmware. 

Copy the file into a USB flash and either boot the firmware from the USB (boot usbflash0:cat3k_caa-universalk9.SPA.03.06.10.E.152-2.E10.bin) or use the "emergency-install usbflash0:cat3k_caa-universalk9.SPA.03.06.10.E.152-2.E10.bin".


switch: boot usbflash0:cat3k_caa-universalk9.16.12.09.SPA.bin
call dfs_loadpartitions, retry = 1
call dfs_loadpartitions, retry = 0

usbflash0: contains unexpected values in partition table or boot sector.
Device needs formatting before use!
usbflash0:cat3k_caa-universalk9.16.12.09.SPA.bin: bad file number
usbflash0:cat3k_caa-universalk9.16.12.09.SPA.bin: bad file number

Error loading "usbflash0:cat3k_caa-universalk9.16.12.09.SPA.bin"

Interrupt within 5 seconds to abort boot process.
Boot process failed...

switch:

please see 

switch: boot

Getting rest of image
Reading full image into memory...flash:cat3k_caa-base.SPA.03.02.03.SE.pkg: no such file or directory
loading flash:packages.conf
Reading full image into memory....done
Copying 'cat3k_caa-base.SPA.03.02.03.SE.pkg' into the buffer
Failed to open file: no such file or directory

Getting rest of image
Reading full image into memory...flash:cat3k_caa-base.SPA.03.02.03.SE.pkg: no such file or directory
loading flash:packages.conf
Reading full image into memory....done
Copying 'cat3k_caa-base.SPA.03.02.03.SE.pkg' into the buffer
Failed to open file: no such file or directory

switch: emergency-install usbflash0:cat3k_caa-universalk9.16.12.09.SPA.bin
The bootflash will be erased during install operation, continue (y/n)?y
Starting emergency recovery (usbflash0:cat3k_caa-universalk9.16.12.09.SPA.bin)...
call dfs_loadpartitions, retry = 1
call dfs_loadpartitions, retry = 0

usbflash0: contains unexpected values in partition table or boot sector.
Device needs formatting before use!
Reading full image into memory......................done
Bundle Image
--------------------------------------
Kernel Address : 0x5342e5d8
Kernel Size : 0x31794f/3242319
Initramfs Address : 0x53745f28
Initramfs Size : 0xdbec9d/14412957
Compression Format: .mzip

Bootable image at @ ram:0x5342e5d8
Bootable image segment 0 address range [0x81100000, 0x81b80000] is in range [0x80180000, 0x90000000].
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
File "sda9:cat3k_caa-recovery.bin" uncompressed and installed, entry point: 0x811060f0
Loading Linux kernel with entry point 0x811060f0 ...
Bootloader: Done loading app on core_mask: 0xf

### Launching Linux Kernel (flags = 0x5)

FAT: bogus number of reserved sectorsnnected network.


Initiating Emergency Installation of bundle usbflash0:cat3k_caa-universalk9.16.12.09.SPA.bin


Emergency Install failed - bundle usbflash0:cat3k_caa-universalk9.16.12.09.SPA.bin does not exist
Restarting system.ÿ


Booting...call dfs_loadpartitions, retry = 1
call dfs_loadpartitions, retry = 0

usbflash0: contains unexpected values in partition table or boot sector.
Device needs formatting before use!

Getting rest of image
Reading full image into memory...flash:cat3k_caa-base.SPA.03.02.03.SE.pkg: no such file or directory
loading flash:packages.conf
Reading full image into memory....done
Copying 'cat3k_caa-base.SPA.03.02.03.SE.pkg' into the buffer
Failed to open file: no such file or directory

Getting rest of image
Reading full image into memory...flash:cat3k_caa-base.SPA.03.02.03.SE.pkg: no such file or directory
loading flash:packages.conf
Reading full image into memory....done
Copying 'cat3k_caa-base.SPA.03.02.03.SE.pkg' into the buffer
Failed to open file: no such file or directory

The system is unable to boot automatically. The
BOOT environment variable needs to be set to a
bootable image.


@harshitking21 wrote:
Device needs formatting before use!

USB flash drive needs to be formatted to FAT16 before any use.

getting -File "usbflash0:cat3k_caa-universalk9.16.12.09.SPA.bin" uncompressed and installed

switch: boot usbflash0:cat3k_caa-universalk9.16.12.09.SPA.bin
Reading full image into memory................................................................................................................................................................................................................................................................................................................................................................................................................................................................................done
Bundle Image
--------------------------------------
Kernel Address : 0x537776e8
Kernel Size : 0x43880f/4425743
Initramfs Address : 0x53bafef7
Initramfs Size : 0x1ca9cac/30055596
Compression Format: mzip

Bootable image at @ ram:0x537776e8
Bootable image segment 0 address range [0x81100000, 0x81da6400] is in range [0x80180000, 0x90000000].
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
File "usbflash0:cat3k_caa-universalk9.16.12.09.SPA.bin" uncompressed and installed, entry point: 0x818968e0
Loading Linux kernel with entry point 0x818968e0 ...
Bootloader: Done loading app on core_mask: 0xf

### Launching Linux Kernel (flags = 0x5)

Linux version 4.9.187 (deeratho@sjc-ads-3552) (gcc version 5.3.0 (GCC) ) #1 SMP Mon Dec 12 22:44:31 PST 2022
CVMSEG size: 2 cache lines (256 bytes)
Cavium Inc. SDK-5.1.0
bootconsole [early0] enabled
CPU0 revision is: 000d900a (Cavium Octeon II)
Checking for the multiply/shift bug... no.
Checking for the daddiu bug... no.

%IOSXEBOOT-65259848eff01324a205b969dcebb486-new_cksum: (rp/0): 4
%IOSXEBOOT-65259848eff01324a205b969dcebb486-saved_cksum: (rp/0): 4

Review Cisco Networking for a $25 gift card