Boot system flash command

I copied an IOS file to flash but it already had an image but when I reloaded the switch the old image was loaded.

I went into config mode and entered "boot system flash:SomeIdentifer.bin" and saved the config.

Reloaded the switch and the advipservices image booted.

I looked in the config and the line "boot system flash:SomeIdentifer.bin" was no longer in there.

Is this IOS set to boot in NVRAM now?

Will the switch continue to boot this IOS until another "boot system ..." command is entered in config t?

Can I safely delete the original ipbase IOS from flash?
Dragon0x40Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Istvan KalmarHead of IT Security Division Commented:
Hi,

The show boot conmand tells the booting evironment, what it show?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Dragon0x40Author Commented:
thanks ikalmar,

Switch>en
Switch#sh boot
BOOT path-list      : flash:SomeIdentifer.bin
Config file         : flash:/config.text
Private Config file : flash:/private-config.text
Enable Break        : no
Manual Boot         : no
HELPER path-list    :
Auto upgrade        : yes
Auto upgrade path   :
Timeout for Config
          Download:    0 seconds
Config Download
       via DHCP:       disabled (next boot: disabled)
0
Dragon0x40Author Commented:
Is the boot settings stored in the file multiple-fs?


Switch>sh flash

Directory of flash:/

    2  -rwx         556  Mar 10 1993 23:49:35 +00:00  vlan.dat
    4  -rwx        2072   Mar 1 1993 00:12:55 +00:00  multiple-fs
    5  -rwx    10761792   Mar 1 1993 00:38:58 +00:00  SomeIdentifer.bin
    6  drwx         192   Mar 1 1993 00:07:27 +00:00  ADifferentIdentifier

32514048 bytes total (12120576 bytes free)
0
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

Dragon0x40Author Commented:
I did a write erase and it still boots from the new file.
0
Istvan KalmarHead of IT Security Division Commented:
in this case you safely delete the older image from flash
0
Dragon0x40Author Commented:
Switch#delete flash:SomeIdentifer
Delete filename [SomeIdentifer]?
Delete flash:SomeIdentifer [confirm]
%Error deleting flash:SomeIdentifer (Is a directory)
0
Istvan KalmarHead of IT Security Division Commented:
you need force delete:

delete /force ?
  /recursive  Recursive delete
  flash:      File to be deleted
  nvram:      File to be deleted

delete /force flash:SomeIdentifer
0
Dragon0x40Author Commented:
I found this and it looks like I may need the /recursive switch command.

delete /force /recursive flash:SomeIdentifer

 Q: How do I delete files and directories from flash of a router or switch with minimum fuss?
A:

If you want to get rid of everything in flash, just use erase flash:.

Otherwise, you can use delete /force /recursive flash:{target}. The /force qualifier will keep you from getting prompted before deleting each object, and /recursive will give you the ability to delete directories and subdirectories even when they are not empty.

http://ciscofaq.blogspot.com/2007/04/how-do-i-delete-files-and-directories.html
0
Dragon0x40Author Commented:
I was able to delete the other IOS image by using the /recursive switch because it is a directory.
Switch(config)#delete ?
% Unrecognized command
Switch(config)#exit
Switch#delet
*Mar  1 00:07:00.143: %SYS-5-CONFIG_I: Configured from console by consolee?
delete

Switch#delete?
delete

Switch#delete ?
  /force      Force delete
  /recursive  Recursive delete
  flash1:     File to be deleted
  flash:      File to be deleted
  nvram:      File to be deleted

Switch#delete /force ?
  /recursive  Recursive delete
  flash1:     File to be deleted
  flash:      File to be deleted
  nvram:      File to be deleted

Switch#delete /force flash:SomeIdentifer ?
  <cr>

Switch#delete /force flash:SomeIdentifer
%Error deleting flash:SomeIdentifer (Is a directory)
Switch#delete ?
  /force      Force delete
  /recursive  Recursive delete
  flash1:     File to be deleted
  flash:      File to be deleted
  nvram:      File to be deleted

Switch#delete ?
  /force      Force delete
  /recursive  Recursive delete
  flash1:     File to be deleted
  flash:      File to be deleted
  nvram:      File to be deleted

Switch#delete /recursive flash:SomeIdentifer
Delete filename [SomeIdentifer]? n
%Error deleting flash:n (No such file or directory)
Switch#delete /recursive ?
  /force   Force delete
  flash1:  File to be deleted
  flash:   File to be deleted
  nvram:   File to be deleted

Switch#delete /recursive /force ?
  flash1:  File to be deleted
  flash:   File to be deleted
  nvram:   File to be deleted

Switch#delete /recursive /force flash:SomeIdentifer
Switch#sh flash

Directory of flash:/

    2  -rwx         556  Mar 10 1993 23:49:35 +00:00  vlan.dat
    4  -rwx        2072   Mar 1 1993 00:12:55 +00:00  multiple-fs
    5  -rwx    10761792   Mar 1 1993 00:38:58 +00:00  SomeIdentifer.bin
0
Dragon0x40Author Commented:
the /recursive switch alone would have deleted the file but the /force switch does not prompt you with to confirm the "Delete filename [SomeIdentifer]?" to which you should just hit the enter key because if you type a y, yes, n or no the IOS will try to find a fiile to delete named y, yes, no or no. I guess if you type a filename that is currently in flash it would delete that file.

If I were writing the code it would look like this: Delete filename [SomeIdentifer]?[enter | no | filename]. I guess after a while you get used to it and if Cisco changed then people would be more confused!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Switches / Hubs

From novice to tech pro — start learning today.