Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
GRUB can probe NVME, but occasionally the Linux kernel can't
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
Cheyenne
n00b
n00b


Joined: 05 Jan 2005
Posts: 33

PostPosted: Tue Mar 05, 2024 3:53 pm    Post subject: GRUB can probe NVME, but occasionally the Linux kernel can't Reply with quote

This is an intermittent problem, happens on a couple of my systems with NVME drives (both efi and non-efi based systems).

Every now and then if I do a reboot, I will get the grub menu, the system will boot into the kernel, but then the kernel either hangs or fails to find the nvme drive(s). I need to do a full power-off instead of the reboot to get past this.

Any ideas?

EDIT:

The system hangs if the root volume is on the NVME, otherwise it just fails to see the NVME drive while coming up.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4162
Location: Bavaria

PostPosted: Tue Mar 05, 2024 6:30 pm    Post subject: Reply with quote

Cheyenne wrote:
Any ideas?

Do you have enabled "Fast Boot" in your BIOS ? (If yes, then please disable it)
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
Cheyenne
n00b
n00b


Joined: 05 Jan 2005
Posts: 33

PostPosted: Tue Mar 05, 2024 6:37 pm    Post subject: Reply with quote

I don't think I have fastboot enabled, but will need to double check on the next boot of the system(s).
Back to top
View user's profile Send private message
frostschutz
Advocate
Advocate


Joined: 22 Feb 2005
Posts: 2977
Location: Germany

PostPosted: Tue Mar 05, 2024 7:17 pm    Post subject: Reply with quote

You are using UUIDs? Because nvme drives, like sata/usb drives, don't have fixed device names.

If you can reproduce it on a Live CD, or get into Initramfs / rescue shell, check dmesg, lspci, /proc/partitions if there's anything.
Back to top
View user's profile Send private message
Cheyenne
n00b
n00b


Joined: 05 Jan 2005
Posts: 33

PostPosted: Wed Mar 06, 2024 12:09 am    Post subject: Reply with quote

frostschutz wrote:
You are using UUIDs? Because nvme drives, like sata/usb drives, don't have fixed device names.

If you can reproduce it on a Live CD, or get into Initramfs / rescue shell, check dmesg, lspci, /proc/partitions if there's anything.


The problem isn't with device names (I crossed that path ages ago :)

It's just that the device itself isn't showing up.

When it's the root device, somtimes the kernel hangs immediately (no output on loglevel=7 earlyprintk=vga), other times it gets to the point that it says it can't find a block device. If it's not the root device the system will boot up, but the nvme is not even in /dev. If I do a restart, it still doesn't show, if I do a power-off, count to 5 power-on it appears.
Back to top
View user's profile Send private message
logrusx
Veteran
Veteran


Joined: 22 Feb 2018
Posts: 1541

PostPosted: Wed Mar 06, 2024 6:55 am    Post subject: Reply with quote

Sounds like a hardware issue. Anything interesting in the smart data of the disk?

Best Regards,
Georgi
Back to top
View user's profile Send private message
gentoo_ram
Guru
Guru


Joined: 25 Oct 2007
Posts: 474
Location: San Diego, California USA

PostPosted: Wed Mar 06, 2024 6:43 pm    Post subject: Reply with quote

I definitely had this problem on some early 6.6.x kernels. Not sure which kernel version you are trying. The issue is that they changed the NVME drive initialization to be more asynchronous and I would run into this problem. I haven't noticed the issue on 6.7.x kernels.

Maybe try adding the "rootwait" parameter to the kernel command-line.
Back to top
View user's profile Send private message
Cheyenne
n00b
n00b


Joined: 05 Jan 2005
Posts: 33

PostPosted: Thu Mar 07, 2024 3:17 am    Post subject: Reply with quote

gentoo_ram wrote:
I definitely had this problem on some early 6.6.x kernels. Not sure which kernel version you are trying. The issue is that they changed the NVME drive initialization to be more asynchronous and I would run into this problem. I haven't noticed the issue on 6.7.x kernels.

Maybe try adding the "rootwait" parameter to the kernel command-line.


That could very well be it.. All my systems are on a 6.6.x kernel
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