You are not logged in.

#1 2024-05-02 05:32:35

huhn
Member
Registered: 2024-02-14
Posts: 17

[solved]unable to mount boot partition vfat

system is efi
in the past i made a mist take and mounted boot as /oot the system with worked just fine. so the system was just booting without a boot partition for a while.

now i wanted to get a software installed HDDtemp which was not possible because my linux is now to old so i needed to update which is not possible because the boot partition does not exist.
so i created a new fstab with boot this time and the system now throws the usual.
[FAILED] Failed to mount /boot.
[DEPEND] Dependency failed for Local File Systems.
and i can't mount the disc it does let me. so i can run a pacman -U linux which should fix the issue.
but i can't mount vfat.
i can comment out /boot from fstab and the system may boot and i can still not mount the disc.

i also took an arch linux install USB stick and could just mount the boot disk. using:
# mount /dev/root_partition /mnt
# mount --mkdir /dev/efi_system_partition /mnt/boot
and it gladly mount the disc and the content is jsut fine
followed by
# pacstrap -K /mnt base linux linux-firmware
# genfstab -U /mnt >> /mnt/etc/fstab

i did a lot more then this like reinstalling the grub and such but i can't remember i'm at this for some time now.

and it still can't mount the fat partition.
it seem dostools is missing and i'm forced to use efi so i need it but i can't install anything so i need a bit of help in that regard.

or should i just fresh install just to be save?

Last edited by huhn (2024-05-04 01:41:49)

Offline

#2 2024-05-02 06:07:01

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,003

Re: [solved]unable to mount boot partition vfat

i needed to update which is not possible because the boot partition does not exist

is a https://en.wikipedia.org/wiki/Non_sequi … ry_device)

i can comment out /boot from fstab and the system may boot and i can still not mount the disc.

stop there, don't mount the (non) "boot" partition?

The missing vfat suggests you're already booting an old kernel?

uname -a
pacman -Qs kernel
lsblk
cat /proc/cmdline

Offline

#3 2024-05-02 08:12:31

huhn
Member
Registered: 2024-02-14
Posts: 17

Re: [solved]unable to mount boot partition vfat

i needed a special kernel to make ZFS work.

i don't have have excess to a remote terminal right now else these would be perfect copies. i also have to shorten it a bit the PC is not accessible as it should be. everything is type of a blindly sorry.

uname -a
6.6.16-1-lts #1 SMP PREEMPT_DYNAMIC Mon, 05 FEb2024 21:20:21 +0000
pacman -Qs kernel
kmod 32-1
libnetfilter_commtrack 1.0.9.2
libnetfilter 1.0.2.2
libnetfilter-capture 46.0-1
linux 6.8.8.arch1
linux api-api-headers 6.7-1
linux-lts 6.6.29-1
zfs-linux-lts 2.2.3.6.6.29.1-1
zfs-utils 2.2.3-1 (archzfs-linux)
lsblk
nvme0n1 259:0 0 465.8g 0 disk
nvme0n1p1  259:1 0 1.1G 0 part
nvme0n1p2   259:2 0 106.3G 0 part /

nvme0n1p1 is the boot partition that doesn't want to be mounted.

cat /proc/cmdline
BOTT_IMAGE=/vmlinux-lts root=the UUID= RW loglevel=3 quiet

stop there, don't mount the (non) "boot" partition?

if i do:
#/dev/nvme0n1p1 /boot
the system will run just fine. well was running just fine.

Last edited by huhn (2024-05-02 19:10:10)

Offline

#4 2024-05-02 12:57:02

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,003

Re: [solved]unable to mount boot partition vfat

Please use [code][/code] tags. Edit your post in this regard.
Fyi, you can paste output directly into an online service, see the 1st link below.

You're booting 6.6.16-1-lts but the currently installed kernel is linux-lts 6.6.29-1
The reason is thatyou in fact /are/ booting from a boot partition (likely nvme0n1p1) but didn't mount it before you updated the kernel.

=> Boot an install iso, mount nvme0n1p2 into /mnt and then nvme0n1p1 into /mnt/boot, arch-chroot into /mnt and re-install the (lts) kernel.
You should™ be able to reboot into the installed system afterwards and either fix your fstab (add the boot partition) or in future don't forget to explicitly mount the /boot partition on kernel/mkinitcpio/grub updates.

Offline

#5 2024-05-02 19:30:54

huhn
Member
Registered: 2024-02-14
Posts: 17

Re: [solved]unable to mount boot partition vfat

seth wrote:

Please use [code][/code] tags. Edit your post in this regard.
Fyi, you can paste output directly into an online service, see the 1st link below.

i can't network isn't loaded anymore for some reason. but i will try to remember that for the future

[You're booting 6.6.16-1-lts but the currently installed kernel is linux-lts 6.6.29-1
The reason is thatyou in fact /are/ booting from a boot partition (likely nvme0n1p1) but didn't mount it before you updated the kernel.

now that you say that ZFS was behind and i had to go kernel fishing because ZFS really want you to have kernel X.

=> Boot an install iso, mount nvme0n1p2 into /mnt and then nvme0n1p1 into /mnt/boot, arch-chroot into /mnt and re-install the (lts) kernel.
You should™ be able to reboot into the installed system afterwards and either fix your fstab (add the boot partition) or in future don't forget to explicitly mount the /boot partition on kernel/mkinitcpio/grub updates.

i tried that i just forgot the LTS part...

well i mounted it as /oot like the huhn i am...
just to be sure?

mount /dev/nvme0n1p2 /mnt
mount -mkdir /dev/nvme0n1p1 /mnt/boot
genfstab -U /mnt >> /mnt/etc/fstab
arch-chroot
pacman -S linux linux-lts
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB

Offline

#6 2024-05-02 19:43:05

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,003

Re: [solved]unable to mount boot partition vfat

i can't network isn't loaded anymore for some reason.

"same reason" as vfat isn't loaded.

genfstab -U /mnt >> /mnt/etc/fstab

This is bad, you *appended* some fstab to the existing one, clean it up manually (als othis was likely unnecessary?)
grub-install is likewise likely pointless but other than that this should™ allow you to reboot the lts kernel of the installed system.

Offline

#7 2024-05-02 22:01:22

huhn
Member
Registered: 2024-02-14
Posts: 17

Re: [solved]unable to mount boot partition vfat

i skip the last to part and if the fstb is wrong i move and then run that command to create a new one.

thanks for your time.

Offline

Board footer

Powered by FluxBB