User Guide

Chapter 6. Managing the Router 225
FLASH Memory Recovery Procedures
Recovering Kernels for Routers with Configuration Switches
In the unlikely event that the FLASH file system should become corrupted, there is a series of steps that you can
take to attempt to recover. Perform the following procedures in the order listed:
1. Try to repair the file system by issuing the
msfs
command. While logged in, issue a
sync
command followed
by an
msfs
command. If the display shows that the file system is corrupted, verify that no other console (via
Telnet) is currently modifying the file system with the
ps
command. Then attempt to repair the file system
typing the following commands:
msfs fix
sync
2. If the file system is still corrupted (i.e., you cannot write a file) you will have to reformat the file system.
First, attempt to save your configuration files as explained in the section
Backup and Restore Configuration
Files, on page 224
. Then, while logged in, enter the following commands:
format disk
save
copy tftp@xxx.xxx.xxx.xxx:kernel.f2k kernel.f2k
sync
The above command sequence assumes that the software presently running from RAM is correctly configured
and is still functional. The
save
command re-creates all the configuration files (except the FILTER.DAT file,
which you may re-create manually by typing
save filter
). The
copy
command reinstalls the operational
software on the FLASH file system, and
sync
commits all this information to disk.
3. In the event that the software running from RAM is not sufficiently functional to perform those steps, you
will have to boot from the network using a TFTP server, as explained in the section
Software Kernel
Upgrades, on page 221
.
If you cannot issue the
format
command (as explained in the previous step), you will have to erase the
FLASH file system from the boot code.
a. Flip configuration switch 6 to the
down position and reboot the router (by powering down and up again,
for example).
b. At the manual boot menu, select
5
.
“Configure boot system”
, and enter the “magical” number 98. Then,
move switch 6 back to its up position.
c. Reboot from the network following the steps described in the Software Upgrade Procedure. You will
notice error messages indicating that the file system is not formatted. Then log in and enter:
format disk
d. Recreate the configuration files either by re-entering the information or by restoring them from a TFTP
server. Re-install the operational software by entering the command:
copy tftp@xxx.xxx.xxx.xxx:kernel
.f2k kernel.f2k
This assumes that TCP/IP routing is enabled and that an IP address has been assigned to the Ethernet
interface.