安装过程中断电后,根文件系统检查失败
在升级的“安装”阶段,出现电源故障。 再次启动后,会报告以下错误:
init: udevtrigger main process (420) terminated with status 1 init: udevtrigger post-stop process (428) terminated with status 1 init: udevmonitor main process (419) killed by TERM signal The disk drive for / is not ready yet or not present Continue to wait; or press S to skip mounting or M for manual recovery
按M给我以下消息:
Root filesystem check failed. A maintenance shell will now be started. CONTROL-D will terminate this shell and reboot the system.
我遇到了同样的情况 – 升级期间电源故障。
转到维护shell,试试这个:
sudo mount -o remount,rw / sudo dpkg --configure -a sudo mount -o remount,ro / sudo sync sudo reboot
(最后的重新安装/同步可能只是偏执狂,但以防万一…)
当你到达这个root shell时,输入fdisk -l
来获取系统中的驱动器列表,然后对/
执行fsck
(使用列表中的名称,例如/dev/sd5
partition。
要强制进行磁盘检查,请使用sudo fsck -f
。
我有同样的问题(升级期间电源故障)。 在我的情况下,系统在显示错误消息后被冻结:按S或M(或任何其他键)没有任何效果。
我按照@ scott-wood的说明修复了它。 只需一点补遗:要进入维护shell,您需要从实时磁盘启动并选择以下选项:
- 拯救破碎的系统;
- 选择要用作根文件系统的设备(通常是第一个条目);
- 选择“在/ dev / …中执行shell”作为救援操作。
我忘了执行mount和sync命令,系统恢复成功,所以我认为跳过它们是安全的。
最后记得通过运行“reboot”来重启系统。 或者,您需要通过键入“exit”或按CTRL + D退出shell; 一旦您离开shell,请选择“重新启动系统”选项。
我也遇到过这个错误,但是我的问题(以及修复)也不同了。
成功安装Ubuntu 11.04后,我运行了dist-upgrade。 无论出于何种原因,在升级过程中,它会随机更改/ etc / fstab中的驱动器号,以查找UUID未识别的所有分区。
编辑/ etc / fstab并修复驱动器号为我解决了问题。