Flash files boot order
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2011 06:51 PM - edited 03-04-2019 11:14 AM
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?
- Labels:
-
Other Routing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2011 08:04 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2011 10:19 PM
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
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2011 10:40 PM
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 <<
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 <<
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2011 12:53 AM
You're right. I mixed the behaviors from different OS.
