今天对一个硬盘分区放在RHlinux es5es5服务器中并修改了/etc/fstab. 字段5,字段6分别设置成 1 2 , 系统重启後显示:[code]fsck.ext3:Bad magic number in puper-block while trying to open /dev/hda6 [failed]
***An error occured during the file system check.
***Dropping you to a shell; the system will reboot
***when you leave shell. up to 100000000 @ 8000-d000
Give root password for maintenance
(or type Control-D to continue);[/code]输入root根用户的密码进入 Repair filesystem:# 模式
vi 打开/etc/fstab之后, 修改了/dev/hd1时, 提示
-- INSERT -- w10: Warning: Changing a readonly file 。
解决方法:
重新启动电脑,按任何键到GNU GRUB 画面,根据画面的提示,按p,输入安装linux系统时设置的GRUB密码进入GRUB,按e进入编辑模式,在第二行(类似于 /kernel/xen.... )的后面加入 空格init=/bin/bash ,回车。即可获得一个bash的shell.按b启动系统。
进入刚才的Repair filesystem:# 模式
# mount -no remount,rw /
再vi /etc/fstab 将错误的fstab地发修改正确,ZZ保存退出。reboot 重启电脑即可正常进入linux OS。

