Networks Training

  • About
  • My Books
  • IP Tools
  • HOME
  • Cisco Networking
    • Cisco General
    • Cisco IOS
    • Cisco VPN
    • Cisco Wireless
  • Cisco ASA
    • Cisco ASA General
    • Cisco ASA Firewall Configuration
  • Certifications Training
    • CCNA Training
    • Cisco Certifications
    • I.T Training
  • General
    • Tech News
    • General Networking
    • IP Telephony
    • Network Security
    • Product Reviews
    • Software
  • Cisco Routers
  • Cisco Switches
You are here: Home / Cisco Routers / Booting a Cisco IOS Router from a USB Flash Drive in Rommon Mode

Booting a Cisco IOS Router from a USB Flash Drive in Rommon Mode

Edited By Harris Andrea

Cisco routers typically store a copy of the device’s operating system (Cisco IOS) in their flash memory, and load this operating system image into RAM during the boot-up process. The flash memory of Cisco routers is usually internal or can be a removable flash card on higher end routers.

However, it may happen that for various reasons the operating system image may not be available, maybe due to file corruption, flash memory corruption, accidental deletion, etc.

In this case the device does not have a valid image to load and therefore the router boots into ROM monitor mode (rommon). This mode gives a reduced set of commands that essentially allow the administrator to manually run the boot sequence.

For such cases, and using commands in the ROMMON mode, the Cisco ISR routers have 1 or 2 USB ports that can be used to load the IOS image from a USB flash drive.

Table of Contents

Toggle
  • How to Boot from USB
  • Some Considerations about USB on Cisco IOS Routers
  • How to format a USB drive from IOS
    • Related Posts

How to Boot from USB

The obvious prerequisite of this procedure is to have a valid IOS image, which is suitable for the device you want to put into operation, stored on a USB flash drive.

Once we have this resource, we must enter into ROM Monitor mode (rommon). If the device did not have a valid IOS image in the internal flash memory, it will go directly in that mode. If not, we can force entry into rommon mode by interrupting the boot sequence using “Ctrl + Break”.

MORE READING:  BlackHat 2009 Router Exploitation Presentation

From this point, we can see the rommon mode prompt:

rommon 1>

In this mode we can see the list of available commands using the question mark or help command:

rommon 1>?
or
rommon 1> help

Then we can check our image stored on USB flash drive:

rommon 2> dir usbflash0:
program load complete, entry point: 0x8000f000, size: 0x3d240
Directory of usbflash0:
2 …… 14871760-… ..- rw-ipbase c2800nm-mz.124-3.bin

Note: The command is dir usbflashx: where x assumes a value of 0 or 1 depending on which USB port of the router you are using.

Then run the command that orders the router to boot from the image stored on USB flash:

rommon 3> boot usbflash0: c2800nm-ipbase-mz.124-3.bin
program load complete, entry point: 0x8000f000, size: 0x3d240
program load complete, entry point: 0x8000f000, size: 0xe2eb30
Self decompressing the image:
################################################## ########################################
################################################## ############# [OK]

Once the router has booted up, you can now work with the normal IOS command line interface. You can copy the image we have in our USB flash into the internal router’s flash memory:

Router> enable
Router # copy usbflash0: c2800nm-ipbase-mz.124-3.bin flash: c2800nm-ipbase-mz.124-3.bin

From now on, the router will be booting up from the internal flash memory.

Some Considerations about USB on Cisco IOS Routers

Related to the information above let me add some more information about how USB Drives can be managed and used in Cisco IOS routers:

  • USB interfaces are supported from IOS release 12.3 (14) T IP Base and later.
  • All ISR and ISR G2 routers support USB flash drives.
  • Devices that have 2 USB ports, can use both USB memory sticks simultaneously.
  • You can use a USB extension cable; however USB hubs are not supported.
  • The IOS version supported on the router is independent of the type of USB (i.e doesn’t matter if USB is version 1.1 or 2). The older ISRs use USB type 1.1 while the newest ISR machines use USB 2.0 types.
  • After inserting the USB flash memory into the corresponding port, the IOS software automatically recognizes it and generates a message on the console as shown below:
MORE READING:  Cisco new Router Series ASR 1000

Mar 10 09:10:20.251: %USBFLASH-5-CHANGE: usbflash1 has-been inserted!

  • These routers also support the use of eTokens from Aladdin (security USB tokens).
  • The USB can be used to store and read both IOS images and configuration files.
  • The files stored on USB sticks are not encrypted.
  • Officially, Cisco routers support only USB devices from Cisco. However, it is possible to use any USB memory stick which does not require installation of specific drivers.
  • The only format supported by IOS is FAT16. NTFS file format on the USB drive is not supported yet.
  • USB flash drives can be formatted from IOS before being used.

How to format a USB drive from IOS

The formatting process is relatively simple using IOS:

Router # format ?
flash: Filesystem to be formatted
usbflash1: Filesystem to be formatted

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

From this point the USB flash drive can be used with all file system commands in the Cisco IOS.

Spread the love

Related Posts

  • How to Configure Port Forwarding on Cisco Router (With Examples)
  • Redistribution and OSFP – Discussion With Cisco Commands Examples
  • Cisco HSRP States and Troubleshooting (With Commands)
  • Cisco Router Login – GUI Login and How to Secure Your Access
  • Route Filtering and OSPF – Workaround With Distribute List Filtering

Filed Under: Cisco Routers

Download Free Cisco Commands Cheat Sheets

Enter your Email below to Download our Free Cisco Commands Cheat Sheets for Routers, Switches and ASA Firewalls.

By subscribing to our email list you will be receiving technical tutorials and industry news from time-to-time. You can unsubscribe at any time.

About Harris Andrea

Harris Andrea is an Engineer with more than two decades of professional experience in the fields of TCP/IP Networks, Information Security and I.T. Over the years he has acquired several professional certifications such as CCNA, CCNP, CEH, ECSA etc.

He is a self-published author of two books ("Cisco ASA Firewall Fundamentals" and "Cisco VPN Configuration Guide") which are available at Amazon and on this website as well.

Comments

  1. romel says

    December 3, 2020 at 2:56 pm

    Hello haris
    i have a question i bought a cisco 4321 ISR router but without any ram and flash memory in it,,, what can i do now, even i buy a new ram a flash memory how can i install and boot IOS?? pls help

  2. Harris Andrea says

    December 3, 2020 at 5:55 pm

    You have to open the chassis and insert the RAM and flash chips on the motherboard.

  3. Albano Bernardo says

    August 29, 2021 at 11:55 pm

    Ho boot IOS on cisco ASR903 from USB in rommon mode?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Search this site

About Networks Training

We Provide Technical Tutorials and Configuration Examples about TCP/IP Networks with focus on Cisco Products and Technologies. This blog entails my own thoughts and ideas, which may not represent the thoughts of Cisco Systems Inc. This blog is NOT affiliated or endorsed by Cisco Systems Inc. All product names, logos and artwork are copyrights/trademarks of their respective owners.

Amazon Disclosure

As an Amazon Associate I earn from qualifying purchases.
Amazon and the Amazon logo are trademarks of Amazon.com, Inc. or its affiliates.

Search

BLOGROLL

Tech21Century
Firewall.cx

Copyright © 2026 | Privacy Policy | Terms and Conditions | Contact | Amazon Disclaimer | Delivery Policy