PHPKB Knowledge Base Software Logo  
Guru Corner
Online Knowledgebase System  
Knowledge Base Home Knowledge Base Home
Home > All Categories > Cisco Systems > Administrative, Password Reset, & Recovery > Upgrade Cisco IOS using a USB Drive
Question Title Upgrade Cisco IOS using a USB Drive

A little background...
Before we get started, let's review some of the specifics you need to know about using USB flash and CF cards with Cisco routers.

 

Many of the newer 800, 1800, 2800, and 3800 series routers support USB Flash. 800 series routers don't support CF, but they do support USB flash.

  • The Cisco IOS can only read FAT-formatted flash drives.
  • The IOS may not recognise the proper size of your USB flash drive. However, it doesn't really matter -- you have much more space with today's USB flash drives than you could ever use.
  • While using USB flash and CF cards are a great way to transfer data to and from a router, you obviously must have physical access to the router.
  • The USB ports on a router are usually USB 2.0, but check the specifications.

Ideally, USB flash can hold multiple copies of the Cisco IOS and multiple router configurations, and you can use it to easily move and copy those IOS files and configurations from router to router. And many times, when you're physically at the router, the copying process can take place several times faster than it would over a LAN or WAN.

Let's get started...

The USB drive need to be in FAT format -- the Cisco IOS only recognizes the FAT file system. To format the USB drive on the Cisco follow the steps below.  


Test-Router# format ?

   flash:      Filesystem to be formatted

   usbflash1:  Filesystem to be formatted

 

 Test-Router# format usbflash1:

 Format operation may take a while. Continue? [confirm]

 Format operation will destroy all data in "usbflash1:". Continue? [confirm]

 Format: Drive communication & 1st Sector Write OK...

 

 Format: All system sectors written. OK...

 

 Format: Total data sectors in formatted partition: 8191435

 Format: Total data bytes in formatted partition: -100952576

 Format: Operation completed successfully.

 

 Format of usbflash1 complete

 Test-Router#


At this point, as you can see below, you have a working USB flash drive.

Test-Router# dir usbflash1:

 Directory of usbflash1:/

 

 No files in directory

 

 No space information available

 Test-Router#

Next, backup the current IOS by copying the IOS from internal flash and to the USB flash.

Test-Router# dir

 Directory of flash:/

 

     2  -rwx    17227284   Aug 8 2006 17:16:53 +00:00 

c870-advipservicesk9-mz.124-11.T2.bin

     3  -rwx        3053  Aug 26 2006 20:24:58 +00:00  SDM_Backup

 

 23482368 bytes total (6246400 bytes free)

 

 Test-Router# copy c870-advipservicesk9-mz.124-11.T2.bin usbflash1:

 Destination filename [c870-advipservicesk9-mz.124-11.T2.bin]?

 Copy in progress...CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC

 (truncated)

 17227284 bytes copied in 14.440 secs (1193025 bytes/sec)

 

 Test-Router# dir usbflash1:

 Directory of usbflash1:/

 

     1  -rw-    17227284 

Aug 26 2006 21:07:00 +00:00  c870-advipservicesk9-mz.124-11.T2.bin

 

 No space information available

 Test-Router#

Now, delete the IOS on the internal flash if needed to free up space.

 

Test-Router# dir
Directory of flash:/

    2  -rwx    17227284   Aug 8 2006 17:16:53 +00:00 
c870-advipservicesk9-mz.124-11.T2.bin
    3  -rwx        3053  Aug 26 2006 20:24:58 +00:00  SDM_Backup

23482368 bytes total (6246400 bytes free)
Test-Router#  delete c870-advipservicesk9-mz.124-11.T2.bin
Delete filename [c870-advipservicesk9-mz.124-11.T2.bin]? 

Delete flash:c870-advipservicesk9-mz.124-11.T2.bin? [confirm]

Destination filename [c870-advipservicesk9-mz.124-11.T2.bin]?

Finally, copy the new IOS on the USB drive to flash.

 

Test-Router# copy usbflash1:c870-advipservicesk9-mz.124-24.T3.bin flash

Destination filename [c870-advipservicesk9-mz.124-24.T3.bin]?

Copy in progress...CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC

Test-Router# reload

Authored by: Guru Corner
Click Here to View all the questions in Administrative, Password Reset, & Recovery category.
File Attachments File Attachments
There are no attachment file(s) related to this question.
Article Information Additional Information
Article Number: 34
Created: 2008-11-04 10:51 PM
Rating: No Rating
 
Article Options Article Options
Print Question Print this Question
Export to Adobe PDF Export to PDF File
Export to MS Word Export to MS Word
 
Search Knowledge Base Search Knowledge Base
 
 

Powered by Guru Corner