cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
25770
Views
33
Helpful
19
Replies

IOS Image Boot Sequence

kamrannaseem
Level 1
Level 1

Hi All,

I am using cisco 3750G switch i have got two images in flash, I want to make second image as my defeult boot image, how do i do that ?

Any help will be much appriciated.

Many thanks,

Kamran.

3 Accepted Solutions

Accepted Solutions

Kamran,

Sure we will try to help you here.

First thing to check whats the boot system currently configured and you can check this by running the following cmd:

1- show run | i boot

If you happen to see any boot sytem file is set then kindly remove the same by following command:

boot system flash:/c3750-ipbasek9-mz.122-35.SE4 >> Found SE4 image on my switch.

2- Remove this image:

config t

Switch(config)#no boot system flash:/c3750-ipbasek9-mz.122-35.SE4 >>> Remvoing SE4 image from the boot.

3- configure the boot system with the image name which you want the device to boot with:

config t

Switch(config)#boot system flash:/c3750-ipbasek9-mz.122-35.SE5>> SE5 is the new image whcih i want my device to boot.

4- Save (Wr mem / copy run start)

5- Reboot.

Once the device is bootup it will come up iwth the new image.

HTH

Regards

Inayath

***Plz rate all usefull posts.

View solution in original post

Hi,

Can you also post here the outputs of this 2 commands?

     dir /all

     dir flash:c3750-ipbasek9-mz.122-35.SE5/

Kind Regards,
Ivan Shirshin

**Please grade this post if you find it useful.

Kind Regards,
Ivan

View solution in original post

Hi,

Do the following steps:

conf t

boot system flash:/c3750-ipbasek9-mz.122-35.SE5/c3750-ipbasek9-mz.122-35.SE5.bin

end

write

reload

The switch should load with new image then. Check with "show version" after it boots up.

Kind Regards,
Ivan Shirshin

**Please grade this post if you find it useful.

Kind Regards,
Ivan

View solution in original post

19 Replies 19

Ivan Shirshin
Cisco Employee
Cisco Employee

Hi,

1. Check configured boot strings:

     show run | i boot

2. Delete all boot lines from config:

     conf t

          no boot system ...

3. Configure first the boot string for the default image:

         boot system ...

then configure 2nd, etc. boot string if needed.

4. Save configuration:

     copy run start

Kind Regards,
Ivan Shirshin

**Please grade this post if you find it useful.

Kind Regards,
Ivan

Hi Ivan,

Got this error:

Loading "flash:c3750-ipbasek9-mz.122-35.SE5"...flash:c3750-ipbasek9-mz.122-35.SE5: is a directory

Error loading "flash:c3750-ipbasek9-mz.122-35.SE5"

many thanks.

Kamran.

Hi Kamran,

It is as it says  - you specified directory instead of file in the boot string. File is inside those dirs.

Attach the following outputs, please:

sh run | i boot

dir /all

dir flash:c3750-ipbasek9-mz.122-35.SE5/

Kind Regards,
Ivan Shirshin

**Please grade this post if you find it useful.

Kind Regards,
Ivan

Hi Ivan,

Sorry I am bit confused.

Should i issue this command:

Switch(config)#boot system flash:/c3750-ipbasek9-mz.122-35.SE5

Many thanks.

Kamran.

Kamran,

AS Ivan stated you need to specifiy the boot system to take the image which you want to be loaded up with.

Eg:

IOS will boot system images in the order the are written.

so

Line 1:

boot system flash: c3750-ipbasek9-mz.122-35.SE5.bin

line 2:

boot system flash: c3750-i9-mz.122.se3.bin

HTH

Regards

Inayath

Hi Sharieff,

Could you please explain that in detail how do i change that, its my first time i am doing this.

dont have an idea how to change it .

thanks.

Kamran.

Kamran,

Sure we will try to help you here.

First thing to check whats the boot system currently configured and you can check this by running the following cmd:

1- show run | i boot

If you happen to see any boot sytem file is set then kindly remove the same by following command:

boot system flash:/c3750-ipbasek9-mz.122-35.SE4 >> Found SE4 image on my switch.

2- Remove this image:

config t

Switch(config)#no boot system flash:/c3750-ipbasek9-mz.122-35.SE4 >>> Remvoing SE4 image from the boot.

3- configure the boot system with the image name which you want the device to boot with:

config t

Switch(config)#boot system flash:/c3750-ipbasek9-mz.122-35.SE5>> SE5 is the new image whcih i want my device to boot.

4- Save (Wr mem / copy run start)

5- Reboot.

Once the device is bootup it will come up iwth the new image.

HTH

Regards

Inayath

***Plz rate all usefull posts.

Hi Sharieff,

it shows me the following when i issue the command

Switch#sh run | i boot

boot-start-marker

boot-end-marker

Many thanks.

Kamran.

Hi,

Can you also post here the outputs of this 2 commands?

     dir /all

     dir flash:c3750-ipbasek9-mz.122-35.SE5/

Kind Regards,
Ivan Shirshin

**Please grade this post if you find it useful.

Kind Regards,
Ivan

Hi,

Switch#dir /all
Directory of flash:/

    2  -rwx    12930816   Jan 1 1970 00:30:38 +00:00  c3750-ipservicesk9-mz.122-55.SE1.bin
    3  -rwx        3096   Mar 1 1993 00:23:45 +00:00  multiple-fs
    5  -rwx        2692   Mar 1 1993 00:04:34 +00:00  config.text
    6  -rwx        1941   Mar 1 1993 00:04:35 +00:00  private-config.text
    7  drwx         192   Mar 1 1993 00:14:06 +00:00  c3750-ipbasek9-mz.122-35.SE5

32514048 bytes total (9366016 bytes free)

Switch#dir flash:c3750-ipbasek9-mz.122-35.SE5/
Directory of flash:c3750-ipbasek9-mz.122-35.SE5/

    8  -rwx     7755515   Mar 1 1993 00:13:05 +00:00  c3750-ipbasek9-mz.122-35.SE5.bin
    9  drwx        4224   Mar 1 1993 00:13:41 +00:00  html
  510  -rwx         614   Mar 1 1993 00:14:06 +00:00  info

32514048 bytes total (9366016 bytes free)

Many thanks,

Then, Just one command is needed :

Switch(config)#boot system flash:c3750-ipbasek9-mz.122-35.SE5

Save and reboot and let us know the result.

Hi Inayath,

This is dir

    7  drwx         192   Mar 1 1993 00:14:06 +00:00  c3750-ipbasek9-mz.122-35.SE5

Kamran has to specify full path.

Kind Regards,
Ivan Shirshin

**Please grade this post if you find it useful.

Kind Regards,
Ivan

Hi,

Do the following steps:

conf t

boot system flash:/c3750-ipbasek9-mz.122-35.SE5/c3750-ipbasek9-mz.122-35.SE5.bin

end

write

reload

The switch should load with new image then. Check with "show version" after it boots up.

Kind Regards,
Ivan Shirshin

**Please grade this post if you find it useful.

Kind Regards,
Ivan

Ivan,

Oops missed that. Yup you are right.

Regards

Inayath

Review Cisco Networking products for a $25 gift card