在我添加了新驱动器并创建了一些分区后,下次启动时我得到:
[ 1.920835]
[ 4.999121] hid-generic 003:0D8C:005.0006: No inputs registered, leaving
[ 5.947015] snd_hda_intel 0000:00:1f.3: no codecs found!
You are in emergency mode. After logging in, type "journalctl -xb" to view system logs,
"systemctl reboot" to reboot, "systemctl default" or "exit" to boot into default mode.
Press Enter for maintenance
(or press Control-D to continue):
太棒了,我的机器无法启动。我尝试按 Control-D(就像我昨天那样,没有问题),结果得到:
Reloading system manager configuration
Starting default target
Failed to start default target: Transaction or graphical.target/start is destructive (emergency.target has 'start' job queued, but 'stop' is included in transaction).
它挂在那里(光标闪烁),所以我硬重置。同样的提示,我再次尝试 Control+D。它只是循环:
Reloading system manager configuration
Starting default target
You are in emergency mode. After logging in, type "journalctl -xb" to view system logs,
"systemctl reboot" to reboot, "systemctl default" or "exit" to boot into default mode.
Press Enter for maintenance
(or press Control-D to continue):
因此我进行了一些网络搜索,并来到这里,我从如下帖子中得到了如下印象:
... 还有一个我找不到的,建议我尝试修复 /etc/fstab 和/或运行 fsck。我不确定我的 fstab 是否需要修复,但它在这里:
LABEL=Torrents /home/username/Videos/Torrents defaults 0 0 0
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/mapper/vgkubuntu-root / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/nvme0n1p1 during installation
UUID=00A5-98A1 /boot/efi vfat umask=0077 0 1
/dev/mapper/vgkubuntu-swap_1 none swap sw 0 0
UUID=24ef61db-8bf1-47cd-90b0-1cb9c62c62a8 /media/username/Steam ext4 relatime 0 2
在 live 中运行 fsck(以避免必须卸载 ubuntu 正在运行的分区)似乎没有任何进展,因为它声称我有一个脏位,我告诉它修复它,但它仍然无法启动。
顺便说一下,我所有的驱动器安装/分区都是通过 KDE 分区管理器进行的,并且手动进行了零 fstab 编辑。
硬件:
CPU - I5 13600K 存储 - CT1000P3SSD8(/dev/nvme0n1) - SSDPEKNW010T8(/dev/nvme1n1) - WD80EAZZ-00BKLB0(/dev/sda)
软件:
库班图 LTS 22.04。?
答案1
所以我注释掉了 fstab 的第一行,现在它看起来像这样:
#LABEL=Torrents /home/username/Videos/Torrents defaults 0 0 0
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/mapper/vgkubuntu-root / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/nvme0n1p1 during installation
UUID=00A5-98A1 /boot/efi vfat umask=0077 0 1
/dev/mapper/vgkubuntu-swap_1 none swap sw 0 0
UUID=24ef61db-8bf1-47cd-90b0-1cb9c62c62a8 /media/username/Steam ext4 relatime 0 2
现在它启动了(一些错误消息出现得太快,我来不及看)。除了 KDE 分区管理器一定添加了不应该添加的第一行之外,仍然不知道哪里出了问题?