Cisco 1721 nvram error?

Posted on 2006-05-27
Last Modified: 2012-05-05
Hi everyone

I have a problem with a Cisco 1721 router. The router was reloaded and apparently lost its startup-config file in the nvram. These are the following errors i get:

Router#show startup-config
Using 16516 out of 29688 bytes
%Error opening nvram:/startup-config (Bad file number)


Router#copy running-config startup-config
Destination filename [startup-config]?
startup-config file open failed (Bad file number)


When i try to erase the nvram i get:
Router#erase nvram
Erasing the nvram filesystem will remove all configuration files! Continue? [confirm]
%Error erasing nvram: (Bad file number)

Any ideas, why i cant save my running config?
Question by:Shaohs
    LVL 79

    Expert Comment

    Sounds like the memory chip has slipped out of the seat slightly, else it went bad.

    Author Comment

    Isnt the chip builtin the mainboard?
    LVL 79

    Expert Comment

    There is a mini flash card that holds the IOS and config
    I'm pretty sure this is where the boot image (config) is stored, but so is the IOS. Is the router booting into the full IOS, or the mini IOS?
    What message do you get from "show flash:"  or "dir flash:"
    LVL 2

    Expert Comment

    What do you get if you do a "show file systems"? Is the nvram: file system mounted read-write (rw)? Can you paste the output here?

    Author Comment

    This is the output:

    Router#show file systems
    File Systems:

         Size(b)     Free(b)      Type  Flags  Prefixes
               -           -    opaque     rw   archive:
               -           -    opaque     rw   system:
               -           -     nvram     rw   nvram:
               -           -    opaque     rw   null:
               -           -   network     rw   tftp:
               -           -   network     rw   snmp:
               -           -    opaque     ro   xmodem:
               -           -    opaque     ro   ymodem:
    *   33292284     7270732     flash     rw   flash:
               -           -    opaque     wo   syslog:
               -           -   network     rw   rcp:
               -           -   network     rw   ftp:
               -           -   network     rw   http:
               -           -   network     rw   scp:
               -           -   network     rw   https:
               -           -    opaque     ro   cns:
    LVL 2

    Expert Comment

    Hmmm, this says you have no nvram. Can you also post the output from the following commands? "show version", "show running-config" (with the passwords removed). If the nvram is broken, we can resolve it by getting the configuration from a tftp server when it boots :-)

    Author Comment

    Router#show version
    Cisco IOS Software, C1700 Software (C1700-ADVSECURITYK9-M), Version 12.4(3), RELEASE SOFTWARE (fc2)
    Technical Support:
    Copyright (c) 1986-2005 by Cisco Systems, Inc.
    Compiled Fri 22-Jul-05 12:04 by hqluong

    ROM: System Bootstrap, Version 12.2(7r)XM2, RELEASE SOFTWARE (fc1)

    Router uptime is 2 weeks, 4 days, 8 hours, 16 minutes
    System returned to ROM by power-on
    System image file is "flash:c1700-advsecurityk9-mz.124-3.bin"

    This product contains cryptographic features and is subject to United
    States and local country laws governing import, export, transfer and
    use. Delivery of Cisco cryptographic products does not imply
    third-party authority to import, export, distribute or use encryption.
    Importers, exporters, distributors and users are responsible for
    compliance with U.S. and local country laws. By using this product you
    agree to comply with applicable laws and regulations. If you are unable
    to comply with U.S. and local laws, return this product immediately.

    A summary of U.S. laws governing Cisco cryptographic products may be found at:

    If you require further assistance please contact us by sending email to

    Cisco 1721 (MPC860P) processor (revision 0x400) with 60957K/4579K bytes of memory.
    Processor board ID FOC08530P3A (4222153392), with hardware revision 0000
    MPC860P processor: part number 5, mask 2
    1 Ethernet interface
    1 FastEthernet interface
    32K bytes of NVRAM.
    32768K bytes of processor board System flash (Read/Write)

    Configuration register is 0x2102

    I cannot post an entire running config here, because there is too many sensitive informations in it, even if with omitted password. Is there a specific line/s you want?
    LVL 79

    Expert Comment

    Can you post result of
    Router#dir flash:
    or  show flash:

    Author Comment

    Router#dir flash:
    Directory of flash:/

        1  -rw-    13359840  Dec 13 2005 21:03:13 +00:00  c1700-advsecurityk9-mz.124-3.bin
        9  -rw-      304549  Jan 06 2006 17:05:06 +00:00  crashinfo_20060106-170506
       10  -rw-        1038  Apr 29 2006 09:41:43 +00:00  home.shtml
       11  -rw-        1830  Apr 29 2006 09:41:44 +00:00  sdmconfig-1721.cfg
       12  -rw-      102400  Apr 29 2006 09:41:45 +00:00  home.tar
       13  -rw-      242285  Apr 29 2006 09:41:48 +00:00  attack-drop.sdf
       14  -rw-     1052160  Apr 29 2006 09:42:07 +00:00  common.tar
       15  -rw-     4734464  Apr 29 2006 09:43:10 +00:00  sdm.tar

    33292284 bytes total (7270732 bytes free)
    LVL 79

    Accepted Solution

    > 9  -rw-      304549  Jan 06 2006 17:05:06 +00:00  crashinfo_20060106-170506
    Delete this crashinfo file
    router#delete flash:crashinfo*
    Then you should be OK.

    Author Comment

    Why is that?
    LVL 79

    Expert Comment

    When a router crashes unexpectedly sometimes it creates a complete memory dump and saves it as a crashinfo file. This file is just taking up space and not leaving you enough room to do what you need to.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    This solves the problem of diagnosing why an internet connection is no longer working. It also helps identify the likely cause of the lost connection if the procedure fails to re-establish your internet connection. It helps to pinpoint the likely co…
    Sometimes you have to pull out old tricks to get a new firewall to work… While we were installing a new Sonicwall at a customers site we found that sites they were able to visit before were not working.  It seemed random and we could not understa…
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now