1.3. 问题的出现
1.3.1. 在重启时遇到问题

图1.1
系统发现fstab中的LABEL=/other卷标不存在。
2. 故障的解决过程
2.1. 进入运行级别1
输入root用户密码,进入运行级别1

图2.1
此时试图修改/etc/fstab文件

图2.2
此时发现文件系统是只读的
重新mount /

图2.3
再次修改fstab文件

图2.4
修改完成,重启系统(init 6)。
系统可以正常启动,问题解决了。

图2.5
3. 问题总结
以上问题的出现是由于错误配置了/etc/fstab文件,在系统重启时,无法识别卷标(/other),从而导致无法正常启动。如果在修改/etc
/fstab文件后,运行mount -a命令验证一下配置是否正确,则可以避免此类问题。
问题的修复方法不仅适用于以上所描述的问题,同样可以处理由于错误修改配置导致系统无法启动的其他问题。
问题的解决过程中,重新mount /是比较关键的一步(mount -n -o remount,rw
/)。如果没有此步操作,则文件系统处于只读状态,导致不能修改配置文件并保存,修复存在的问题。
阅读(1657) | 评论(0) | 转发(0) |