You are not logged in.
Pages: 1
Topic closed
After I run
pacman -Syuand reboot, system loads in emergency mode:
[FAILED] Failed to mount /boot.
See 'systemctl status boot.mount' for details
[DEPEND] Dependency failed for Local File Systems.
[ OK ]...
[ OK ]...
[ OK ] Started Update is Completed.
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.
Give root password for maintenance
(or press Control-D to continue):systemctl status boot.mountreturns
arch linux mount: /boot: unknown filesystem type 'ntfs'I can fix it by loading from live USB and doing this:
mount /dev/sda6 /mnt
mount /dev/sda1 /mnt/boot
arch-chroot /mnt
pacman -S linux
mkinitcpio -p linux
exit
umount -R /mnt
rebootBut what should I do so system does not load in emergency mode after every upgrade?
Offline
Welcome to the arch linux forums vobla. Please post the output of the following
$ cat /etc/fstab
# blkid
# parted -lOffline
Thanks! Here it is:
$ cat /etc/fstab
/dev/sda1 /boot ntfs defaults,noatime 0 2
/dev/sda6 / ext4 noatime 0 1
/dev/sda5 none swap sw 0 0
/dev/cdrom /mnt/cdrom auto noauto,user 0 0# blkid
/dev/sda1: LABEL="SYSTEM" UUID="08645BFA645BE8C8" TYPE="ntfs" PARTUUID="35ff1802-01"
/dev/sda2: UUID="8836FC1136FBFE4E" TYPE="ntfs" PARTUUID="35ff1802-02"
/dev/sda4: LABEL="RECOVERY" UUID="5AC4D548C4D526D3" TYPE="ntfs" PARTUUID="35ff1802-04"
/dev/sda5: UUID="7c4344da-2284-4dab-a39d-d01cff4a588e" TYPE="swap" PARTUUID="35ff1802-05"
/dev/sda6: UUID="926047d1-d329-454a-9cc0-d0b1c1a79a3f" TYPE="ext4" PARTUUID="35ff1802-06"# parted -l
Model: ATA TOSHIBA MK3261GS (scsi)
Disk /dev/sda: 320GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 1049kB 210MB 209MB primary ntfs boot
2 210MB 200GB 200GB primary ntfs
3 200GB 305GB 105GB extended
6 200GB 303GB 103GB logical ext4
5 303GB 305GB 2147MB logical linux-swap(v1)
4 305GB 320GB 15.0GB primary ntfsOffline
Offline
Why is /boot an NTFS partition?
Not sure why. Looks like I made a bad choice.
Offline
Yes, but the reason your updates go south is (very most likely) that /boot is (attempted to be) mounted before / - change the fstab order.
The order of records in fstab is important because fsck(8), mount(8), and umount(8) sequentially iterate through fstab doing their thing.
Takeaway: rtfm ;-)
Offline
Yes, but the reason your updates go south is (very most likely) that /boot is (attempted to be) mounted before / - change the fstab order.
Thanks, didn't know that. It seems that the problem arose only when there was a kernel update during # pacman -Syu. So I'll put [SOLVED] once I've tested. Thank you again!
Offline
The order means nothing because the root dir is mounted in the initramfs before anything else anyway.
The issue is that the "ntfs" driver is read only, so mounting with that driver doesn't let the kernel and initramfs get updated. You need to use ntfs-3g at the very least.
Last edited by Scimmia (2018-08-07 22:35:17)
Offline
If I change ntfs to ntfs-3g in /etc/fstab, the system boots in emergency mode again.
Offline
Of course it does, you still have the old kernel and initramfs. You have to fix that first
Offline
OK, I see. Could you please point me to the direction how to fix that?
Offline
Rebuilding the initramfs should do.
/me checks whether the install iso has ntfs-3g.
Edit: yes, is.
You should btw, have gotten errors when updating, because the initramfs and kernel and grub config could not be written?
Last edited by seth (2018-08-08 12:57:32)
Offline
Rebuilding the initramfs should do.
How do I tell that I want ntfs-3g rather than ntfs during the rebuild? I changed the entry in /etc/fstab and ran mkinitcpio -p linux, but it didn't help.
You should btw, have gotten errors when updating, because the initramfs and kernel and grub config could not be written?
I had warnings like "warning: directory permissions differ on /boot/ filesystem 777 package 755" but not errors if I remember it correctly.
Offline
https://wiki.archlinux.org/index.php/Mk … _and_FILES
You'll probably need all libraries from fuse2 and all libs and exeutables from ntfs-3g.
Also ensure /boot is mounted ntfs-3g.
Alterntaively, you can probably make /boot "noauto,x-systemd.automount" to prevent the initial mount and have it mount on access only.
Offline
There are a lot of proposed hoops to jump through here to work around a problem that is itself easily fixed.
Is this boot partition shared with other OSs? If not, just make a new ext filesystem and put back the kernel and any bootloader files (either from a backup or from reinstalling them from a live medium).
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
rebuilding the initramfs alone won't do anything. This problem is not in the initramfs, either, so adding things do it isn't helpful.
You already know how to fix it, you posted the procedure in post #1.
Last edited by Scimmia (2018-08-08 23:57:29)
Offline
Hello, my friends. Im newbie in ArchLinux
I have same problem, after any update, i have to run from usb:
mount /dev/sda6 /mnt
mount /dev/sda1 /mnt/boot
arch-chroot /mnt
pacman -S linux
mkinitcpio -p linux
exit
umount -R /mnt
reboot
[javix@javiarch ~]$ cat /etc/fstab
# /dev/sda3
UUID=05438a23-ce0b-4500-9698-34706881ffff / ext4 rw,relatime 0 1
# /dev/sda2
UUID=0D55-EE6D /boot/efi vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 2
# /dev/sda4
UUID=cac03599-90c4-4861-908e-8a6d93b500f4 none swap defaults 0 0
[javix@javiarch ~]$ blkid
[javix@javiarch ~]$ sudo su -
[sudo] password for javix:
[root@javiarch ~]#
[root@javiarch ~]#
[root@javiarch ~]#
[root@javiarch ~]#
[root@javiarch ~]# cat /etc/fstab
# /dev/sda3
UUID=05438a23-ce0b-4500-9698-34706881ffff / ext4 rw,relatime 0 1
# /dev/sda2
UUID=0D55-EE6D /boot/efi vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 2
# /dev/sda4
UUID=cac03599-90c4-4861-908e-8a6d93b500f4 none swap defaults 0 0
I've this configuration
[root@javiarch ~]# blkid
/dev/nvme0n1p1: PARTLABEL="Microsoft reserved partition" PARTUUID="0cff4d85-6c3a-4071-98cc-5d9af1071080"
/dev/nvme0n1p2: BLOCK_SIZE="512" UUID="2ABC025DBC022443" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="e61c0f71-891c-4040-9ea0-31caa57c71e6"
/dev/nvme0n1p3: BLOCK_SIZE="512" UUID="2CE849FFE849C7B2" TYPE="ntfs" PARTUUID="bbab4a49-76f1-4f5b-ac66-410a1cffc42f"
/dev/sda1: UUID="301A-397C" BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="ee5bf59d-3a52-4fae-bfaf-b2c1d2370f81"
/dev/sda2: UUID="0D55-EE6D" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="f4b6d6f6-0a6a-d448-b877-de0a6bf8e1d7"
/dev/sda3: UUID="05438a23-ce0b-4500-9698-34706881ffff" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="77ba52d3-c2b2-7741-bcf9-1951738bd397"
/dev/sda4: UUID="cac03599-90c4-4861-908e-8a6d93b500f4" TYPE="swap" PARTUUID="f01dd2b3-3388-1946-92ab-b8bc04925627"
/dev/sdb1: PARTLABEL="Microsoft reserved partition" PARTUUID="ec4cdfea-9606-4837-b8d4-45ec0c4d641b"
/dev/sdb2: LABEL="Mecanico" BLOCK_SIZE="512" UUID="CEB66DFDB66DE685" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="ea390812-b685-4758-b4ad-59f08fb44fcc"
/dev/sdc1: LABEL="ARCH_202010" UUID="5253-7FDB" BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="Main Data Partition" PARTUUID="291dc4b1-01eb-4cf6-9254-446e311cb3b1"
[root@javiarch ~]# parted -l
Model: ATA ADATA SU630 (scsi)
Disk /dev/sda: 240GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 106MB 105MB fat32 EFI system partition boot, esp
2 106MB 1717MB 1611MB fat32 boot, esp
3 1717MB 219GB 217GB ext4
4 219GB 240GB 21.4GB linux-swap(v1)
you can helpme? thank you very much!
Offline
Please open your own thread and post these outputs wrapped in
[code]code/output here[/code]instead of necrobumping 2 year old threads.
https://wiki.archlinux.org/index.php/Co … bumping%22
Closing.
Last edited by V1del (2020-11-07 13:14:48)
Offline
Pages: 1
Topic closed