Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Failed to mount UEFI, failed to enter into Gentoo from grub
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
RIA77
Guru
Guru


Joined: 24 Feb 2016
Posts: 409

PostPosted: Tue May 27, 2025 1:40 pm    Post subject: Failed to mount UEFI, failed to enter into Gentoo from grub Reply with quote

Hello to all and thank you in advance.
I reinstalled grub with another Linux distro.
Now I can't enter into Gentoo.
Actually I can with grub disc. But as a regular user, I can't.
"You have to load kernel first".
When I am into Gentoo,

Code:
Мount: /boot/efi: wrong fs type, bad option, bad superblock on /dev/nvme0n1p7, missing codepage or helper program, or other error.
       dmesg(1) may have more information after failed mount system call.


Efi is formatted properly. I can see it from Peppermint OS and it's formated.

Code:
/dev/nvme0n1p6      /      ext4      noatime,defaults      0 1
/dev/nvme0n1p7             /boot/efi      vfat    noauto,noatime  1 2
#efivarfs /sys/firmware/efi/efivars efivarfs rw,nosuid,nodev,noexec,relatime 0 0
#tmpfs    /tmp/portage    tmpfs    rw,nosuid,nodev,size=10G,mode=775,uid=portage,gid=portage,x-mount.mkdir=775 0 0
tmpfs      /var/tmp/portage      tmpfs   size=10G,uid=portage,gid=portage,mode=775   0 0
Back to top
View user's profile Send private message
bstaletic
Guru
Guru


Joined: 05 Apr 2014
Posts: 517

PostPosted: Wed May 28, 2025 2:06 am    Post subject: Reply with quote

Considering
RIA77 wrote:
Code:
        dmesg(1) may have more information after failed mount system call.
can you access the dmesg log?
What options is peppermint using to mount ESP and what options is gentoo trying to use?
Back to top
View user's profile Send private message
Goverp
Advocate
Advocate


Joined: 07 Mar 2007
Posts: 2257

PostPosted: Wed May 28, 2025 8:58 am    Post subject: Reply with quote

RIA77 wrote:
...
Code:
Мount: /boot/efi: wrong fs type, bad option, bad superblock on /dev/nvme0n1p7, missing codepage or helper program, or other error.
       dmesg(1) may have more information after failed mount system call.


Efi is formatted properly. I can see it from Peppermint OS and it's formated.

Code:
/dev/nvme0n1p6      /      ext4      noatime,defaults      0 1
/dev/nvme0n1p7             /boot/efi      vfat    noauto,noatime  1 2
...
IIUC the output you show above is from /etc/fstab, which is irrelevant at this stage since the kernel isn't loaded. You need to use some other tool such as blkid from a running Linux system (emergency repair, install disk, Peppermint (not something I know about)) to prove nvme0n1p7 is actually vfat.
You may have done this already, it's just that /etc/fstab shows what you intend, not necessarily what is the actual case.

<edit>Another possibility - your Gentoo kernel is missing built-in VFAT support - perhaps it's a module, or even entirely missing.
_________________
Greybeard
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 55308
Location: 56N 3W

PostPosted: Wed May 28, 2025 11:04 am    Post subject: Reply with quote

Goverp,

Something is calling the mount command.
Code:
Мount: /boot/efi: wrong fs type, bad option, bad superblock on /dev/nvme0n1p7, missing codepage or helper program, or other error.
       dmesg(1) may have more information after failed mount system call.
and the kernel is running or dmesg would not exist.

As the ESP need not be mounted to boot linux, so that failure should not stop booting.

RIA77,

We need to see
Code:
df -T
output with /boot/efi mounted.

You could try
Code:
/dev/nvme0n1p7             /boot/efi      vfat    noauto,noatime,nofail  1 2

in fstab. That adds the nofail option, or even commenting out the /boot/efi entry, so that it can't even try to mount /boot/efi.

The idea is only to get Gentoo started, so we can have a look around.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
RIA77
Guru
Guru


Joined: 24 Feb 2016
Posts: 409

PostPosted: Wed May 28, 2025 4:00 pm    Post subject: Reply with quote

Update - just logged in from Peppermint OS.
Mounted Gentoo in chroot as well as UEFI partition.
Sucessfully installed Gentoo as Grub menu.
But os-prober can't detect any other OS.
Tried with Peppermint OS grub, but "you have to load kernel first" when I try to log in into Gentoo.
When I log into Gentoo, I can't mount uefi, but when I mount via chroot (from Peppermint) it's possible..
So I can enter into Gentoo but not with Peppermint grub menu. Only with Gentoo grub entry

Code:
Found Gentoo Linux on /dev/nvme0n1p6
/usr/sbin/grub-probe: error: unknown filesystem.

This is error after refreshing Grub from Peppermint.

Code:
/dev/nvme0n1p7             /boot/efi      vfat    noauto,noatime,nofail  1 2

Thank you. Tried, but there is no change. I can't log from Peppermint grub OS.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum