You are not logged in.

#1 2024-06-28 18:13:57

peperonnii
Member
Registered: 2024-06-28
Posts: 3

Failed to mount /boot/efi. Dependency failed for Local File Systems.

Hello,

I just put in a new nvme ssd into my system so and i figured I should also (randomly) update my bios (msi b450 tomahawk max). So i did that and grub disappeared from the bios bootloader. Fired up systemrescue and reinstalled grub according to chatgpt's instructions.

Then i tried to boot into arch and was met by this error saying I am in emergency mode. I have no idea what's happening, any help would be apprewciated.

Heres some of info that chatgpt was asking for
lsblk:

NAME    MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
loop0     7:0    0 809.5M  1 loop /run/archiso/sfs/airootfs
sda       8:0    0 232.9G  0 disk 
├─sda1    8:1    0   175G  0 part #this is my root
├─sda2    8:2    0     4G  0 part #swap
├─sda3    8:3    0     1G  0 part #this is the boot
├─sda4    8:4    0    16M  0 part 
└─sda5    8:5    0  52.9G  0 part 
sdb       8:16   1  57.3G  0 disk 
├─sdb1    8:17   1   898M  0 part /run/archiso/bootmnt
└─sdb2    8:18   1   1.4M  0 part 
nvme0n1 259:0    0 931.5G  0 disk #this is the new ssd
fdisk -l
Disk /dev/sda: 232.89 GiB, 250059350016 bytes, 488397168 sectors
Disk model: Samsung SSD 840 
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: E93C2687-0F8B-4998-8B68-47D90F38B38D

Device         Start       End   Sectors  Size Type
/dev/sda1       2048 367003647 367001600  175G Linux filesystem
/dev/sda2  367003648 375392255   8388608    4G Linux swap
/dev/sda3  375392256 377489407   2097152    1G EFI System
/dev/sda4  377489408 377522175     32768   16M Microsoft reserved
/dev/sda5  377522176 488396799 110874624 52.9G Microsoft basic data
blkid /dev/sda3
/dev/sda3: UUID="0C9A-D620" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="d0f4e0a1-ea36-42a6-8747-1c9fcc21a74b"

perhaps its something to do with my fstab? i dont know chatgpt told me to modify it
this is my fstab

UUID=8b1fa36c-fc72-484b-afab-ba24bfd15cfe /           ext4    defaults,noatime 0 1
UUID=0C9A-D620        /boot/efi   vfat    defaults,umask=0077 0 2
UUID=d115c3af-cf38-4fce-88d5-5e57d8220fb3 none        swap    sw 0 0

Offline

#2 2024-06-28 18:32:38

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,726

Re: Failed to mount /boot/efi. Dependency failed for Local File Systems.

peperonnii wrote:

Fired up systemrescue and reinstalled grub according to chatgpt's instructions.

Major, major mistake right there. Don't trust anything ChatGPT tells you. Follow the wiki.

Where did you have the ESP mounted when you reinstalled GRUB? How, exactly, did you reinstall it?

Offline

#3 2024-06-28 18:41:29

peperonnii
Member
Registered: 2024-06-28
Posts: 3

Re: Failed to mount /boot/efi. Dependency failed for Local File Systems.

hello thanks for the reply.
Yeah i get that, but i am pretty experienced with arch and i know when its talking shit... but youre probably right

The ESP was mounted in the live SystemRescue usb. This was the mount process

mount /dev/sda3 /mnt/linux/boot/efi

and other relevant mounts:

mount --bind /dev /mnt/linux/dev
mount --bind /proc /mnt/linux/proc
mount --bind /sys /mnt/linux/sys
mount --bind /run /mnt/linux/run
mount -t efivarfs efivarfs /mnt/linux/sys/firmware/efi/efivars
chroot /mnt/linux

i then used

grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB
grub-mkconfig -o /boot/grub/grub.cfg

i was then able to get into grub.
the issue of the error booting into linux remains.

however launching windows from grub works, if that's noteworthy.

Offline

#4 2024-06-28 19:52:53

peperonnii
Member
Registered: 2024-06-28
Posts: 3

Re: Failed to mount /boot/efi. Dependency failed for Local File Systems.

update --

i chrooted into my root partition (dev/sda1) and I did

yay -Syu
and pacman -S linux-zen linux-zen-headers

I tried booting up my install and the old error went away and it is now:
"Failed to mount /dev/sdb1"
"Dependency Failed for local file system"

Issue with the kernel? Fstab now not working? i'll remove the fstab entry for my sdb1 device and see what happens

Offline

Board footer

Powered by FluxBB