You are not logged in.

#1 2022-12-02 19:46:19

x4rkz
Member
Registered: 2019-06-22
Posts: 10

[SOLVED] Failed to mount /boot. Dependency failed for Local File Syste

Hi,

I installed arch just fine yesterday. Because of sound issues (from the computer but no the headset nor an external screen), I decided to resintall it. However this I can't even boot in my system, I get an error which seems very classic

[FAILED] Failed to mount /boot.
[DEPEND] Dependency failed for Local File Systems.

I've read several topics about this issue (for instance [link]https://bbs.archlinux.org/viewtopic.php?id=254644[/link] but I still don't understand how to fix it. I suspect that my linux kernel has different versions due to the fact that i reinstalled it.

I would post my uname -a and anything that your require but I'm not sure where I should put the command (the archiso chrooted to my system? Or in my system which couldnt load /boot?). Topics talk about checking fstab files, or that I mounted correctly the /boot partition during the installation but I'm not sure how to check that, I juste followed the guide and did the same the second time I tried to install it.

For instance, when I chroot to my system and try to reinstall my linux (pacman -S linux) it just says "reinstalling" and I'm not sure that it changes anything.

I would appreciate your help.

Thank you and have a good week-end.

P.S. If you need me to copy paste the results of some commands, could you refer to me which pastebin software I should install?

Last edited by x4rkz (2022-12-03 14:41:23)

Offline

#2 2022-12-02 21:21:58

seth
Member
Registered: 2012-09-03
Posts: 51,056

Re: [SOLVED] Failed to mount /boot. Dependency failed for Local File Syste

Comment the /boot entry in your fstab (it's not relevant for a system boot) and post your fstab as well as the output of "lsblk -f"
You can just

(lsblk -f; cat /mnt/etc/fstab) | curl -F 'file=@-' 0x0.st

Offline

#3 2022-12-03 09:09:42

x4rkz
Member
Registered: 2019-06-22
Posts: 10

Re: [SOLVED] Failed to mount /boot. Dependency failed for Local File Syste

I launched your command from the archiso

NAME        FSTYPE   FSVER            LABEL       UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
loop0       squashfs 4.0                                                                     0   100% /run/archiso/airootfs
sda         iso9660  Joliet Extension ARCH_202212 2022-12-01-11-52-20-00                              
├─sda1      iso9660  Joliet Extension ARCH_202212 2022-12-01-11-52-20-00                              
└─sda2      vfat     FAT16            ARCHISO_EFI 5DCD-146B                                           
nvme0n1                                                                                               
├─nvme0n1p1 vfat     FAT32            SYSTEM      AC90-FC03                              22.4M    91% /mnt/boot
└─nvme0n1p2 ext4     1.0                          97ff83f1-8faa-4385-aff4-87aefa1ec563  442.6G     0% /mnt
# Static information about the filesystems.
# See fstab(5) for details.

# <file system> <dir> <type> <options> <dump> <pass>
# /dev/nvme0n1p2
UUID=97ff83f1-8faa-4385-aff4-87aefa1ec563	/         	ext4      	rw,relatime	0 1

# /dev/nvme0n1p1 LABEL=SYSTEM
#UUID=AC90-FC03      	/boot     	vfat      	rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro	0 2

Commenting the /boot line makes the OS start correctly. I can't pastebin from the system itself for now as I have issues detecting the networks (which I had not on the first installation, maybe related to my current issue).
Is this what you need ?

Why is it possible to boot on my system when my /boot is commented? What's the point of uncommenting it as some point? I really feel like I don't understand anything big_smile

Last edited by x4rkz (2022-12-03 09:10:06)

Offline

#4 2022-12-03 10:04:11

seth
Member
Registered: 2012-09-03
Posts: 51,056

Re: [SOLVED] Failed to mount /boot. Dependency failed for Local File Syste

I have issues detecting the networks

Along the failign vfat mount (/boot) this most likely means you're booting an old kernel.
Compare the output of

uname -a

and

pacman -Qs linux

Also post

cat /proc/cmdline

to see whether you're booting from the root or /boot partition.

Offline

#5 2022-12-03 10:16:06

x4rkz
Member
Registered: 2019-06-22
Posts: 10

Re: [SOLVED] Failed to mount /boot. Dependency failed for Local File Syste

Here are the results of thoses commands:

uname -a

Linux Professeur 5.15.80-1-lts #1 SMP Sat, 26 Nov 2022 20:23:30 +0000 x86_64 GNU/Linux

pacman -Qs linux

local/archlinux-keyring 20221123-1 (base-devel)
    Arch Linux PGP keyring
local/base 3-1
    Minimal package set to define a basic Arch Linux installation
local/efibootmgr 18-1
    Linux user-space application to modify the EFI Boot Manager
local/ell 0.54-1
    Embedded Linux library
local/filesystem 2022.10.18-1
    Base Arch Linux files
local/iptables 1:1.8.8-2
    Linux kernel packet control tool (using legacy interface)
local/keyutils 1.6.3-1
    Linux Key Management Utilities
local/kmod 30-3
    Linux kernel module management tools and library
local/libcap-ng 0.8.3-1
    A library for Linux that makes using posix capabilities easy
local/linux 6.0.10.arch2-1
    The Linux kernel and modules
local/linux-api-headers 5.18.15-1
    Kernel headers sanitized for use in userspace
local/linux-firmware 20221109.60310c2-2
    Firmware files for Linux
local/linux-firmware-whence 20221109.60310c2-2
    Firmware files for Linux - contains the WHENCE license file which documents the vendor license details
local/linux-headers 6.0.10.arch2-1
    Headers and scripts for building modules for the Linux kernel
local/pacman-mirrorlist 20221016-1
    Arch Linux mirror list for use by pacman
local/util-linux 2.38.1-1
    Miscellaneous system utilities for Linux
local/util-linux-libs 2.38.1-1
    util-linux runtime libraries

cat /proc/cmdline

BOOT_IMAGE=/vmlinuz-linux-lts root=UUID=97ff83f1-8faa-4385-aff4-87aefa1ec563 rw loglevel=3 quiet

Offline

#6 2022-12-03 10:37:56

seth
Member
Registered: 2012-09-03
Posts: 51,056

Re: [SOLVED] Failed to mount /boot. Dependency failed for Local File Syste

You're booting the linux-lts kernel, but the only one installed is "linux 6.0.10.arch2-1" (from the boot partition)
No idea why that's still hanging out there, but you need to boot the regular kernel or re-install the lts kernel (to get back the modules for that kernel)

Offline

#7 2022-12-03 10:44:41

x4rkz
Member
Registered: 2019-06-22
Posts: 10

Re: [SOLVED] Failed to mount /boot. Dependency failed for Local File Syste

Thank you. How would I manage to do that?

By regular kernel, you mean the kernel without lts?

EDIT: when I pacman -S linux, it reinstalls the arch version of the kernel (done from arch-chroot in archiso because I can't get an internet connection from my system yet)

EDIT: I ran pacman -S linux-lts and I uncommented the /boot line from my fstab file. The OS starts fine and my internet connection works fine.

Does that mean my problem is fixed? Should I use linux or linux-lts ?

Last edited by x4rkz (2022-12-03 12:13:14)

Offline

#8 2022-12-03 14:14:39

seth
Member
Registered: 2012-09-03
Posts: 51,056

Re: [SOLVED] Failed to mount /boot. Dependency failed for Local File Syste

You can use whatever kernel you want, but you need to have the kernel package for the kernel you want to boot installed.

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

Board footer

Powered by FluxBB