10-29-2009 08:40 AM - edited 03-06-2019 08:22 AM
Hi, I am aiming to make 4507 boot from new image. Do you know what is wrong below? See that I set my new image correctly on "boot system", but the new image name is not reflected when I do the "show bootvar". Any ideas?
MY4507(config)#boot system flash:cat4500-entservicesk9-mz.122-50.SG1.bin
MY4507(config)#end
MY4507#show boot
% Ambiguous command: "show boot"
MY4507#show bootvar
BOOT variable = bootflash:cat4500-entservicesk9-mz.122-40.SG.bin,12;flash:cat4500-entservicesk9-mz.122-40.SG.bin,12;
CONFIG_FILE variable does not exist
BOOTLDR variable does not exist
Configuration register is 0x2102
Standby BOOT variable = bootflash:cat4500-entservicesk9-mz.122-40.SG.bin,12;flash:cat4500-entservicesk9-mz.122-40.SG .bin,12;
Standby CONFIG_FILE variable does not exist
Standby BOOTLDR variable does not exist
10-29-2009 08:50 AM
Did you do wri mem? Do that and check again.
Regards,
jerry
10-29-2009 09:01 AM
After doing 'wri mem', I see the new IOS was appended to the variable. However, the first variable is still the old one. I believe that based on the below, the old image would still be the one selected if I power cycle the device...
#show bootvar
BOOT variable = bootflash:cat4500-entservicesk9-mz.122-40.SG.bin,12;flash:cat4500-entservicesk9-mz.122-40.SG.bin,12;flash:cat4500-entservicesk9-mz.122-50.SG1.bin,12;flash:,12;
CONFIG_FILE variable does not exist
BOOTLDR variable does not exist
Configuration register is 0x2102
10-29-2009 09:03 AM
Pull both out and put them in the order you want them in the config , it is read from the top down so input the 12.2.50 boot statement first.
10-29-2009 09:54 AM
Hi.
I remember that in CatOS we had the "prepend" option when defining a new boot image. It would be great if that could be made to work in IOS as well...
Regards, Ingolf
10-29-2009 02:31 PM
Yup I liked that feature in catos . Catos had a lot features that was faster and easier to implement than some of the equivalent IOS commands.
10-30-2009 06:13 PM
I played with 3 4510r's one weekend trying to get them upgraded safely... I found that the systems would only boot from the first image in flash. So I formatted flash and uploaded the new one first, than the second / current IOS image following. I hoped that the bootloader would skip the first if there were any problems. I recommend you swap flash chips unless your boot loader supports multiple images. I had the boot variable set correctly, but didn't ever get the system to boot from the new/second image, even when I removed the old IOS from the boot variable.
10-30-2009 07:02 PM
It wouldn't boot right because default from the factory the config register is set at 0x2101 which means boot from the first file found in bootflash or flash. All that needed to be done is set the config register at 0x2102 and it will boot the images according to the order of your boot statements and you can have as many images as will fit in bootflash.
quote:
played with 3 4510r's one weekend trying to get them upgraded safely... I found that the systems would only boot from the first image in flash. So I formatted flash and uploaded the new one first, than the second / current IOS image following. I hoped that the bootloader would skip the first if there were any problems. I recommend you swap flash chips unless your boot loader supports multiple images. I had the boot variable set correctly, but didn't ever get the system to boot from the new/second image, even when I removed the old IOS from the boot variable.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide