cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
5887
Views
5
Helpful
18
Replies

Changing order of IOS in flash

Mustafa Habibi
Level 1
Level 1

I have a c2960-24TT-L switch that I have loaded the newest IOS from Cisco’s download site. (c2960-lanbasek9-mz.122-55.SE10.bin) however I cannot get the switch to run the new IOS. As I checked and uploaded into several switch when the new IOS located in below of current one I am facing this issue but when the new IOS comes in above order after reloading the switch the new IOS loads without issue. I also issued the boot string command and instructed to load from new IOS. I checked the show boot command also it is showing me new IOS as well.

If anyone could help me out with the command to changing the order (shifting new IOS to top) that would be greatly appreciated.

switch: dir flash:

Directory of flash:/

2    -rwx  11949374  <date>               c2960-lanbasek9-mz.122-55.SE9.bin

6    -rwx  11941983  <date>               c2960-lanbasek9-mz.122-55.SE10.bin

12855296 bytes available (23891357 bytes used)

18 Replies 18

Training#reload

Proceed with reload? [confirm]

 

Boot Sector Filesystem (bs) installed, fsid: 2

Base ethernet MAC Address: 00:24:f7:89:4c:80

Xmodem file system is available.

The password-recovery mechanism is enabled.

Initializing Flash...

flashfs[0]: 607 files, 19 directories

flashfs[0]: 0 orphaned files, 0 orphaned directories

flashfs[0]: Total bytes: 32514048

flashfs[0]: Bytes used: 26233344

flashfs[0]: Bytes available: 6280704

flashfs[0]: flashfs fsck took 12 seconds.

...done Initializing Flash.

done.

Loading "c2960-lanbasek9-mz.122-55.SE10"...c2960-lanbasek9-mz.122-55.SE10: no such device

 

Error loading "c2960-lanbasek9-mz.122-55.SE10"

 

Interrupt within 5 seconds to abort boot process.

Loading "flash:/c2960-lanbasek9-mz.122-55.SE9.bin"...@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@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@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

File "flash:/c2960-lanbasek9-mz.122-55.SE9.bin" uncompressed and installed, entry point: 0x3000

executing...

 

              Restricted Rights Legend

 

Use, duplication, or disclosure by the Government is

subject to restrictions as set forth in subparagraph

(c) of the Commercial Computer Software - Restricted

Rights clause at FAR sec. 52.227-19 and subparagraph

(c) (1) (ii) of the Rights in Technical Data and Computer

Software clause at DFARS sec. 252.227-7013.

 

           cisco Systems, Inc.

           170 West Tasman Drive

           San Jose, California 95134-1706

 

 

 

Cisco IOS Software, C2960 Software (C2960-LANBASEK9-M), Version 12.2(55)SE9, RELEASE SOFTWARE (fc2)

Copyright (c) 1986-2009 by Cisco Systems, Inc.

Compiled Mon 06-Apr-09 08:36 by amvarma

Image text-base: 0x00003000, data-base: 0x01400000

 

Initializing flashfs...

 

flashfs[1]: 607 files, 19 directories

flashfs[1]: 0 orphaned files, 0 orphaned directories

flashfs[1]: Total bytes: 32514048

flashfs[1]: Bytes used: 26233344

flashfs[1]: Bytes available: 6280704

flashfs[1]: flashfs fsck took 3 seconds.

flashfs[1]: Initialization complete....done Initializing flashfs.

 

Checking for Bootloader upgrade.. not needed

POST: CPU MIC register Tests : Begin

POST: CPU MIC register Tests : End, Status Passed

 

POST: PortASIC Memory Tests : Begin

POST: PortASIC Memory Tests : End, Status Passed

 

POST: CPU MIC interface Loopback Tests : Begin

POST: CPU MIC interface Loopback Tests : End, Status Passed

 

POST: PortASIC RingLoopback Tests : Begin

POST: PortASIC RingLoopback Tests : End, Status Passed

 

POST: PortASIC CAM Subsystem Tests : Begin

POST: PortASIC CAM Subsystem Tests : End, Status Passed

 

POST: PortASIC Port Loopback Tests : Begin

POST: PortASIC Port Loopback Tests : End, Status Passed

 

Waiting for Port download...Complete

 

 

This product contains cryptographic features and is subject to United

States and local country laws governing import, export, transfer and

use. Delivery of Cisco cryptographic products does not imply

third-party authority to import, export, distribute or use encryption.

Importers, exporters, distributors and users are responsible for

compliance with U.S. and local country laws. By using this product you

agree to comply with applicable laws and regulations. If you are unable

to comply with U.S. and local laws, return this product immediately.

 

A summary of U.S. laws governing Cisco cryptographic products may be found at:

http://www.cisco.com/wwl/export/crypto/tool/stqrg.html

 

If you require further assistance please contact us by sending email to

export@cisco.com.

 

cisco WS-C2960-24TT-L (PowerPC405) processor (revision F0) with 61440K/4088K bytes of memory.

Processor board ID FOC1307W0GE

Last reset from power-on

1 Virtual Ethernet interface

24 FastEthernet interfaces

2 Gigabit Ethernet interfaces

The password-recovery mechanism is enabled.

 

64K bytes of flash-simulated non-volatile configuration memory.

Base ethernet MAC Address       : 00:24:F7:89:4C:80

Motherboard assembly number     : 73-11473-05

Power supply part number        : 341-0097-02

Motherboard serial number       : FOC130709PU

Power supply serial number      : AZS130502YZ

Model revision number           : F0

Motherboard revision number     : A0

Model number                    : WS-C2960-24TT-L

System serial number            : FOC1307W0GE

Top Assembly Part Number        : 800-29859-02

Top Assembly Revision Number    : A0

Version ID                      : V05

CLEI Code Number                : COM3L00BRD

Hardware Board Revision Number  : 0x01

 

 

Switch Ports Model              SW Version            SW Image

------ ----- -----              ----------            ----------

*    1 26    WS-C2960-24TT-L    12.2(55)SE9           C2960-LANBASEK9-M

 

 

 

 

Press RETURN to get started!

Loading "c2960-lanbasek9-mz.122-55.SE10"...c2960-lanbasek9-mz.122-55.SE10: no such device

Error loading "c2960-lanbasek9-mz.122-55.SE10"

Ok, so the switch is looking for a file to boot called "c2960-lanbasek9-mz.122-55.SE10".  There is no file called "c2960-lanbasek9-mz.122-55.SE10" but there is a file called "c2960-lanbasek9-mz.122-55.SE10.bin".  Two different things.  

Failing to find the correct file, the switch then boots the FIRST file it "sees" and it's "c2960-lanbasek9-mz.122-55.SE9.bin". 

Can you please try this: 

config t 
boot system flash:c2960-lanbasek9-mz.122-55.SE10.bin
end
wr

And then reboot.

Dear Leo

You are great, many thanks for your kindly cooperation. the issue is solved.

Regards

vlausell
Level 1
Level 1

Hello there< 

The easiest way to deal with this WITHOUT deleting any of the OS files is to tell the switch were to boot from by using the following command

Switch(config)# boot system config-boot.text

https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst2960x/software/15-0_2_EX/system_manage/command_reference/b_sm_152ex_2960_x_cr/b_sm_152ex_2960_x_cr_chapter_010.html