Jump to Navigation

111 - Linux Rescue Mode

The official Red Hat DVD (disk 1) can serve as a bootable emergency disk for most modern PCs with BIOS that can boot from DVDs.
It includes file system tools for emergency system administration. Using this disc you can attempt to recover from file system-related crashes.

When your system crashes due to a power failure or any other dire reasons, you may find your file system to be corrupt, and Red Hat Linux
might refuse to boot as normal. In such a case do the following:

1. Insert Red Hat CD-ROM (disc 1) in your DVD or CD-ROM and boot your computer.

2. Enter "linux rescue" at the boot prompt to boot the system in rescue mode.

boot: linux rescue

You will be asked to select the language, which defaults to English. Select the appropriate language and press OK to continue.

You will be asked to select the keyboard type, which defaults to us (USA). Select the appropriate keyboard type and press OK to continue.

Linux notes that the rescue mode will attempt to mount your existing partitions under /mnt/sysimage directory.
You should select the Skip button because if you are trying to fix a file system problem.

Once you are at the shell prompt, run the fsck partition_name command to perform a file system check for your hard drive. For example,
to check the first partition of your first IDE/EIDE disk, run the `fsck /dev/hda1` command. Similarly, to check the first partition of your first
SCSI disk run the `fsck /dev/sda1` command. This will display errors that the fsck program finds in the named partition and ask you to take
an action. If you are not interested in getting prompted for one or more file system errors and want the fsck program to fix whatever it can,
you can run this same command with a "-p" option. For example, the `fsck -p /dev/hda1` command runs the fsck program on the first
IDE/EIDE hard drive partition and tries to fix everything it can.

If your disk has bad blocks, you can locate bad blocks in a disk by running the badblocks device_name command. For example, to find
bad blocks on the second partition of the first IDE/EIDE disk run the `badblocks /dev/hda2` command.

Repeat the previous steps as many times necessary to check all your file system partitions.


Main menu 2

Story | by Dr. Radut