今天在试用硬盘配额时,在 etc/fstab文件中加入
LABEL=/home /home ext3 ........
这句话后,系统重启无法开机。直接进入repair filesystem。
在repair filesystem下所有文件为只读,网上找到解决方法。
只能通过输入root密码进入到repair filesystem中。编辑/etc/fstab文件,只读,应该是没有能够mount的问题。
但是mount /dev/sda1 /mnt无效。
通过google得到发现了一个解决方案:
(1)mount -w -o remount /
(2)然后通过 mount /dev/sda1 /mnt。
然后可以编辑/etc/fstab,恢复到原来,可以登录了。
环境: red hat enterprise Linux 5 参考博客:http://blog.youkuaiyun.com/wonderful19891024/article/details/6121358
另附:
repair filesystem 1 #一般是什么引起的和该怎样解决
第一种情况:非正常关机引起的磁盘分区问题 不能正常进入系统
第二种情况:由于/etc/fstab文件编辑错误 而引起的不能正常进入系统