renumber the image order on a flash directory

Answered Question
Aug 18th, 2009

any one knows how to renumber the files on the flash dir.

Thanks

I have this problem too.
0 votes
Correct Answer by Giuseppe Larosa about 7 years 5 months ago

Hello Ocporbust,

use boot system flash command to load the desired image regardless of image order on flash

see

sh run | inc boot system

boot system flash disk2:c7200p-advsecurityk9-mz.124-20.T.bin

boot system flash disk2:c7200p-advsecurityk9-mz.124-4.XD3.bin

this router loads the first image in this way.

you can check with:

sh bootvar

BOOT variable = disk2:c7200p-advsecurityk9-mz.124-20.T.bin,1;disk2:c7200p-advsecurityk9-mz.124-4.XD3.bin,1;

CONFIG_FILE variable does not exist

BOOTLDR variable does not exist

WARM_REBOOT variable = FALSE

Configuration register is 0x2102

when you need to change the order:

copy current boot system commands on an editor

issue no boot system ... for each line

input them in the desired order preferred image first

Hope to help

Giuseppe

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Correct Answer
Giuseppe Larosa Tue, 08/18/2009 - 07:49

Hello Ocporbust,

use boot system flash command to load the desired image regardless of image order on flash

see

sh run | inc boot system

boot system flash disk2:c7200p-advsecurityk9-mz.124-20.T.bin

boot system flash disk2:c7200p-advsecurityk9-mz.124-4.XD3.bin

this router loads the first image in this way.

you can check with:

sh bootvar

BOOT variable = disk2:c7200p-advsecurityk9-mz.124-20.T.bin,1;disk2:c7200p-advsecurityk9-mz.124-4.XD3.bin,1;

CONFIG_FILE variable does not exist

BOOTLDR variable does not exist

WARM_REBOOT variable = FALSE

Configuration register is 0x2102

when you need to change the order:

copy current boot system commands on an editor

issue no boot system ... for each line

input them in the desired order preferred image first

Hope to help

Giuseppe

Actions

This Discussion