cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
12138
Views
0
Helpful
4
Replies

Flash files boot order

hitman426
Level 1
Level 1

Is there a way to renumber or reorder the files in

flash so that the IOS bin file is the first file

in the list so that when the router boots it will go to the correct file. I know about the boot flash file I can use in the conf t

and that does work for booting the router to the IOS but I would like to renumber the files so I dont have to use this command. Does anyone know how to do this?

4 Replies 4

Mahesh Gohil
Level 7
Level 7

Hi Sam,

It is automatically copied in sequence by date it is copied. I don't think it is possible to rearrange it as per user need.

Do you feel any problem with arranging by boot flash command ?

Regards

Mahesh

Pavel Bykov
Level 5
Level 5

The order of the files is alphabetical cannot be changed. This order is used for automatic booting (autoboot).

You can manually create a list of files to boot using "boot system flash", as you have mentioned. The order of entered commands will specify the order which files (images) are tried to boot first.

So if you have files:

1.bin, 2.bin, 3.bin

Then the order of booting by autoboot is the following:

1. 1.bin

2. 2.bin

3. 3.bin

By entering:
(config)#boot system flash flash:3.bin
(config)#boot system flash flash:1.bin
You specify that during the boot, the system will try to load 3.bin and if it fails (file not there for example) it will try 1.bin
But if you enter
(config)#no boot system
Then the system will try to boot only in the following order:

1. 1.bin

2. 2.bin

3. 3.bin

So what you can do, is simply RENAME the files.

For example, if you want the boot order to be 3, then 2, then 1, you can rename:

1.bin > C-1.bin

2.bin > B-2.bin

3.bin > A-3.bin

Now the order is the following:

A-3.bin

B-2.bin

C-1.bin

Hello ,

It is not true that renaming alphabatically will rearrange files in orders.

see

-#- --length-- -----date/time------ path
1    130454884 Jan 28 2011 03:23:22 +00:00 c7600rsp72043-advipservicesk9-mz.122-33.SRD3.bin <<2     36785664 Apr 20 2010 13:34:06 +00:00 c7600-fpd-pkg.122-33.SRD3.pkg
3     41580544 Nov 7 2010 13:40:02 +00:00 c7600-fpd-pkg.122-33.SRE2.pkg
4    147279844 Nov 7 2010 14:30:26 +00:00 c7600rsp72043-advipservicesk9-mz.OBS_ES-V1-SRE2
5     36066304 Nov 7 2010 14:48:54 +00:00 c7600-fpd-pkg.122-33.SRD1.pkg <<< Renamed as "B"
6         6844 Nov 12 2010 07:01:18 +00:00 SRE2RUN
7         7571 Nov 12 2010 08:39:42 +00:00 SRD3RUN


1    130454884 Jan 28 2011 03:23:22 +00:00 A      <<
2     36785664 Apr 20 2010 13:34:06 +00:00 c7600-fpd-pkg.122-33.SRD3.pkg
3     41580544 Nov 7 2010 13:40:02 +00:00 c7600-fpd-pkg.122-33.SRE2.pkg
4    147279844 Nov 7 2010 14:30:26 +00:00 c7600rsp72043-advipservicesk9-mz.OBS_ES-V1-SRE2
5     36066304 Nov 7 2010 14:48:54 +00:00 B      <<< Still in same order
6         6844 Nov 12 2010 07:01:18 +00:00 SRE2RUN
7         7571 Nov 12 2010 08:39:42 +00:00 SRD3RUN

Thanks to recheck if you already tried this..also you can share it from your box.

Regards

Mahesh

You're right. I mixed the behaviors from different OS.

Review Cisco Networking for a $25 gift card