引导失败:无法启动重新挂载根和内核文件系统

egy*_*egy 8 boot 16.04

我突然让我的台式机在没有明显原因的情况下无法启动。自上次关闭以来,我没有进行任何重大更改/更新。这是发生的事情:

正常的启动顺序让我无法使用 tty1。登录成功后:

/usr/lib/ubuntu-release-upgrader/release-upgrader-motd: 31: /usr/lib/ubuntu-release-upgrader/release-upgrader-motd: cannot create /usr/lib/ubuntu-release-upgrader/release-upgrader-available: Read-only file system
/usr/lib/update-notifier/update-motd-fsck-at-reboot: 33: cannot create /usr/lib/update-notifier/update-motd-fsck-at-reboot: Read-only file system

Welcome to Ubuntu 16.04.1 LTS! (<kernel_version>)

0 packages can be updated

0 updates are security updates

*** /dev/sda2 should be checked for errors ***


user@user:^$ _
Run Code Online (Sandbox Code Playgroud)

注意:切换到 tty7 不起作用。屏幕有点空白,然后就是这样

通过恢复模式并运行 fsck 给出:

recovery_mode_fsck

通过 root shell 发出显示的命令 (systemctl ...) 给出:

命令发出

任何帮助表示赞赏

hey*_*ema 9

让我们首先检查您的文件系统是否有错误。

对于 Ubuntu 17.10 或更早版本...

  • 启动到 GRUB 菜单
  • 选择 Advanced Options
  • 选择 Recovery mode
  • 选择 Root access
  • #提示符下,键入sudo fsck -f /
  • fsck如果有错误,请重复该命令
  • 类型 reboot

对于 Ubuntu 18.04 或更新版本...(或者如果上述步骤对您不起作用)...

  • 在“Try Ubuntu”模式下启动到 Ubuntu Live DVD/USB
  • terminalCtrl+ Alt+打开一个窗口T
  • 类型 sudo fdisk -l
  • 确定您的“Linux 文件系统”的 /dev/sdXX 设备名称
  • 键入sudo fsck -f /dev/sda2,替换sdXX为您之前找到的数字
  • fsck如果有错误,请重复该命令
  • 类型 reboot

  • 您不想禁用 fsck 检查。干杯,阿尔 (2认同)

sni*_*s2k 9

对我来说,这个问题是在我安装了带有错误/旧 fstab UUID 的备份之后出现的。我必须查看正确的 UUIDsudo blkid并相应地更新我的/etc/fstab文件。