07-01-2011 01:12 PM - edited 03-07-2019 01:03 AM
Hi All,
On 4507R-E switch, i noticed the output of commands "dir bootflash:" and "show bootflash" are different.
Can someone please explain me on below 3 points:
Q1. "show bootflash:" lists 2 files, where as "dir bootflash:" lists only 1 file ........what are the difference between these 2 commands.
Q2. I believe when there is no bootvar configured the switch should pick the 1st IOS and boot....am i right?
Q3. Even thought file 1 (IOS) is higher version, my switch did bootup with lower version IOS, there is not bootvar configured. I would like to know why the switch didnt boot with higher version.
Switch# show bootflash: <<<< 2 files were listed
-#- ED ----type---- --crc--- -seek-- nlen -length- ---------date/time--------- name
1 .D image CA34E81D 1161A7C 39 17963516 May 2 2011 10:48:54 +00:00 cat4500-entservicesk9-mz.122-53.SG4.bin
2 .. image 43A8AF73 22567AC 38 17779888 May 16 2011 10:34:11 +00:00 cat4500-entservicesk9-mz.122-53.SG.bin
25543020 bytes available (35798676 bytes used)
Switch#
Switch# dir bootflash: <<<< 1 file was listed
Directory of bootflash:/
2 -rwx 17779888 May 16 2011 10:34:11 +00:00 cat4500-entservicesk9-mz.122-53.SG.bin
61341696 bytes total (25543020 bytes free)
Switch#
Solved! Go to Solution.
07-01-2011 01:52 PM
Hi,
Q1. "show bootflash:" lists 2 files, where as "dir bootflash:" lists only 1 file ........what are the difference between these 2 commands
Q2. I believe when there is no bootvar configured the switch should pick the 1st IOS and boot....am i right?
1 .D image CA34E81D 1161A7C 39 17963516 May 2 2011 10:48:54 +00:00 cat4500-entservicesk9-mz.122-53.SG4.bin
D is for delete. This file has been deleted,. that is why it is not booting from the first image.
If the image was not deleted, then you are correct it would boot from the first one on the flash
This also answer q number 3. It is not about higher or lower IOS image number. If there is not boot loader specified, it will boot from the first image on the flash
HTH
Reza
07-01-2011 10:03 PM
Hi,
Q1 "show bootflash:" lists 2 files, where as "dir bootflash:" lists only 1 file ........what are the difference between these 2 commands.
A: I believe you should see the same result as "show bootflash" when using a "dir /all" command. "dir bootflash:" won't show files marked as delete aka "D" flag.
#######################################################
Q2. I believe when there is no bootvar configured the switch should pick the 1st IOS and boot....am i right?
A: Config-register 0x2101 will boot your first image for sure. Config-register 0x2102 will point to a "boot system flash" command.
#######################################################
Q3. Even thought file 1 (IOS) is higher version, my switch did bootup with lower version IOS, there is not bootvar configured. I would like to know why the switch didnt boot with higher version
A: Your higer version is marked as delete aka "D" flag. You may notice that your space is used up to 35 Mb approximately (2 images). If you want to use the higher version one,try using an "undelete" command to bring it back. If you have 2 images in your bootflash,I'd recommend you to use a "boot system flash" command and change config-register to 0x2102. If you really want to delete the file,just use "squeeze bootflash:" to get your available space back from files marked as delete.
HTH,
Toshi
07-01-2011 01:52 PM
Hi,
Q1. "show bootflash:" lists 2 files, where as "dir bootflash:" lists only 1 file ........what are the difference between these 2 commands
Q2. I believe when there is no bootvar configured the switch should pick the 1st IOS and boot....am i right?
1 .D image CA34E81D 1161A7C 39 17963516 May 2 2011 10:48:54 +00:00 cat4500-entservicesk9-mz.122-53.SG4.bin
D is for delete. This file has been deleted,. that is why it is not booting from the first image.
If the image was not deleted, then you are correct it would boot from the first one on the flash
This also answer q number 3. It is not about higher or lower IOS image number. If there is not boot loader specified, it will boot from the first image on the flash
HTH
Reza
07-01-2011 10:03 PM
Hi,
Q1 "show bootflash:" lists 2 files, where as "dir bootflash:" lists only 1 file ........what are the difference between these 2 commands.
A: I believe you should see the same result as "show bootflash" when using a "dir /all" command. "dir bootflash:" won't show files marked as delete aka "D" flag.
#######################################################
Q2. I believe when there is no bootvar configured the switch should pick the 1st IOS and boot....am i right?
A: Config-register 0x2101 will boot your first image for sure. Config-register 0x2102 will point to a "boot system flash" command.
#######################################################
Q3. Even thought file 1 (IOS) is higher version, my switch did bootup with lower version IOS, there is not bootvar configured. I would like to know why the switch didnt boot with higher version
A: Your higer version is marked as delete aka "D" flag. You may notice that your space is used up to 35 Mb approximately (2 images). If you want to use the higher version one,try using an "undelete" command to bring it back. If you have 2 images in your bootflash,I'd recommend you to use a "boot system flash" command and change config-register to 0x2102. If you really want to delete the file,just use "squeeze bootflash:" to get your available space back from files marked as delete.
HTH,
Toshi
04-13-2018 03:46 AM
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