由于一些原因,我的 arch(今天升级到最新的软件包)无法正常启动。
[ 0.658449] nvme nvme0: missing or invalid SUBNQN field.
[ 0.851921] nvme nvme0: 16/0/0 default/read/poll queues
[ 0.857780] nvme0n1: p1 p2
[ 9.541817] systemd-fstab-generator[440]: Checking was requested for "/dev/nvme0n1p1", but it is not a device.
它停在救援控制台。我可以登录并手动挂载 /dev/nvme0n1p1,然后继续正常启动。
mount /dev/nvme0n1p1 /boot
我尝试使用 来寻址设备,但UUID
出现PARTUUID
同样的错误。这真的很烦人。有没有什么办法可以解决这个问题?
我的 fstab 如下所示:
/dev/nvme0n1p1 /boot vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 0 2
/dev/mapper/root / ext4 defaults 0 1
/dev/mapper/tmp /tmp tmpfs defaults 0 0
/dev/mapper/swap none swap sw 0 0
附加信息:
$ ls -l /dev/nvme0n1p1
brw-rw---- 1 root disk 259, 1 3. Mär 07:49 /dev/nvme0n1p1
$ file /dev/nvme0n1p1
/dev/nvme0n1p1: block special (259/1)
$ file -s /dev/nvme0n1p1
/dev/nvme0n1p1: DOS/MBR boot sector, code offset 0x58+2, OEM-ID "mkfs.fat", sectors/cluster 8, Media descriptor 0xf8, sectors/track 32, heads 64, hidden sectors 2048, sectors 1046529 (volumes > 32 MB), FAT (32 bit), sectors/FAT 1024, reserved 0x1, serial number 0x1560e429, unlabeled
答案1
我改变了我的 fstab
/dev/nvme0n1p1 /boot vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 0 2
/dev/mapper/root / ext4 defaults 0 1
/dev/mapper/tmp /tmp tmpfs defaults 0 0
/dev/mapper/swap none swap sw 0 0
到
# nvme0n1p1
/dev/nvme0n1p1 /boot vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 0 2
/dev/mapper/root / ext4 defaults 0 1
/dev/mapper/tmp /tmp tmpfs defaults 0 0
/dev/mapper/swap none swap sw 0 0
现在它又能正常工作了。
我不明白。