You are not logged in.
Pages: 1
Hello, quite often after an update with -Syu I encounter a system boot error: can't mount /boot. Just go as root and update the kernel, after which everything works fine. fstab is generated via genfstab and usually all system works. How do I troubleshoot system start issues that occur from time to time? Cause it's annoying from time to time. Thanks.
Offline
Post here:
$ lsblk -f
$ cat /etc/fstab
$ cat /proc/cmdline
$ mount | grep -E '^/dev/(s|n)' | sort
$ ls -l /boot<49,17,III,I> Fama di loro il mondo esser non lassa;
<50,17,III,I> misericordia e giustizia li sdegna:
<51,17,III,I> non ragioniam di lor, ma guarda e passa.
Offline
[anatoly@ThinkPad ~]$ lsblk -f
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS
sda
├─sda1
│ vfat FAT32 EE7A-825A 329,6M 36% /boot/efi
│ /boot
├─sda2
│ ext4 1.0 ff8ddcca-b4f2-4bef-8ab3-5be9bde42ee0 4,9G 78% /
├─sda3
│ ext4 1.0 28cc85ed-f463-4273-b931-ad1a6d52e13b 8,9G 84% /home
└─sda4
swap 1 ea8e56c4-5c37-4fd0-97f0-e73eb1428cad [SWAP]
[anatoly@ThinkPad ~]$ cat /etc/fstab
# Static information about the filesystems.
# See fstab(5) for details.
# <file system> <dir> <type> <options> <dump> <pass>
# <device> <dir> <type> <options> <dump> <fsck>
/dev/sda1 /boot vfat defaults 0 2
/dev/sda2 / ext4 defaults 0 1
/dev/sda3 /home ext4 defaults 0 2
/dev/sda4 none swap defaults 0 0
# /dev/sda2
UUID=ff8ddcca-b4f2-4bef-8ab3-5be9bde42ee0 / ext4 rw,relatime 0 1
# /dev/sda1
UUID=EE7A-825A /boot/efi vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro 0 2
# /dev/sda3
UUID=28cc85ed-f463-4273-b931-ad1a6d52e13b /home ext4 rw,relatime 0 2
# /dev/sda4
UUID=ea8e56c4-5c37-4fd0-97f0-e73eb1428cad none swap defaults 0 0
# /dev/sda2
UUID=ff8ddcca-b4f2-4bef-8ab3-5be9bde42ee0 / ext4 rw,relatime 0 1
# /dev/sda3
UUID=28cc85ed-f463-4273-b931-ad1a6d52e13b /home ext4 rw,relatime 0 2
# /dev/sda1
UUID=EE7A-825A /boot/efi vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro 0 2
# /dev/sda4
UUID=ea8e56c4-5c37-4fd0-97f0-e73eb1428cad none swap defaults 0 0
[anatoly@ThinkPad ~]$ cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=ff8ddcca-b4f2-4bef-8ab3-5be9bde42ee0 rw loglevel=3 quiet
[anatoly@ThinkPad ~]$ mount | grep -E '^/dev/(s|n)' | sort
/dev/sda1 on /boot/efi type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro)
/dev/sda1 on /boot type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro)
/dev/sda2 on / type ext4 (rw,relatime)
/dev/sda3 on /home type ext4 (rw,relatime)
[anatoly@ThinkPad ~]$ ls -l /boot
итого 185608
drwxr-xr-x 3 root root 4096 янв 1 1970 EFI
-rwxr-xr-x 1 root root 68603962 фев 4 11:44 initramfs-linux-fallback.img
-rwxr-xr-x 1 root root 13995484 фев 4 11:43 initramfs-linux.img
-rwxr-xr-x 1 root root 70049731 фев 4 11:44 initramfs-linux-zen-fallback.img
-rwxr-xr-x 1 root root 14156076 фев 4 11:44 initramfs-linux-zen.img
-rwxr-xr-x 1 root root 11208160 фев 4 11:43 vmlinuz-linux
-rwxr-xr-x 1 root root 12031488 фев 4 11:43 vmlinuz-linux-zen
[anatoly@ThinkPad ~]$ Offline
What did you do to your poor ArchLinux? Don't you feel bad for it? ![]()
Your fstab is a mess, I'm really pleasantly surprised that your system is even able to boot!! ![]()
You're mounting sda1 recursively into both /boot and /boot/efi
Please, boot off from ArchLinux USB to enter into Live Enviroment, make backups and fix your fstab accordingly in order to mount sda1 (BOOT+ESP) into /boot only.
Ask here for any doubts.
<49,17,III,I> Fama di loro il mondo esser non lassa;
<50,17,III,I> misericordia e giustizia li sdegna:
<51,17,III,I> non ragioniam di lor, ma guarda e passa.
Offline
I think the problem may have been caused by running genfstab multiple times. The installation guide directs the output using ">>", which would append any further invocations. The command should really be idempotent but I suppose the guide only says to run it once.
So the OP should probably just use ">" instead of ">>" when running genfstab from the live ISO (with the partitions correctly mounted ofc) to allow it to overwrite instead of append. The header comments will be lost but they're not really needed.
Jin, Jîyan, Azadî
Offline
Yes, you are all right, it was strange, I made a new fstab, fixed the system, all work, I think the problem is solved. Thanks a lot.
Offline
Pages: 1