红帽linux rescue模式,Redhat Linux Rescue Mode

The official Red Hat CD-ROM (disk 1) can serve as a bootable emergency disk for most modern PCs with BIOS that can boot from CD-ROMs. 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:

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

After the system starts booting from the CD-ROM you will see a screen that displays a boot prompt. Enter "linux rescue" at the boot prompt to boot the system in rescue mode.

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 (most file system tools do not work on mounted file systems for security reasons).

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.

--------------------------

Tip :

If you have a problem accessing the partition, try the `rescuept device_name` command to restore the partition.

--------------------------

Press Ctrl+Alt+Del to reboot the system and make sure to remove the CD-ROM so that your system can boot from your hard drive.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值