Linux 原本服务器有两个磁盘,一个系统盘和一个数据盘。前几天把挂载的数据库卸载了,今天重启完服务器系统启动不了了,VNC登陆后才知道是/etc/fstab没有去除挂载信息导致的。
[TIME ] Timed out waiting for device dev-vdbl.device. [DEPEND] Dependency failed for /home. [DEPEND] Dependency failed for Local File Systems. [DEPEND] Dependency failed for Migrate local... structure to the new structure. p a dri [DEPEND] Dependency failed for Relabel all filesystems, if necessary.
(1)、根据提示进入系统:
Give root password for maintenace (or press Control-D to continue):
输入自己的root密码进入系统
(2)、编辑开机自动挂载文件/etc/fstab,删除最后一行,我的内容如下:
保存文件,reboot重启服务器后,可以正常启动服务器了。
如果编辑/etc/fstab文件,提示“readonly”,无法保存的情况。
修复模式下(read-only system)文件是被保护的不能修改,运行下面命令,把系统文件权限改成可读写(rw)。mount -o remount,rw /执行完上述命令,重试编辑vi /etc/fstab文件。
扫码赞赏,鼓励支持