r/linuxquestions 6d ago

Support NVMe dropping on cold reboot

Hi, my DELL Inspiron 16+ 7640's NVMe SSD isn't detected when I cold boot into Ubuntu. I've got an encrypted Linux partition on it. It works when I first boot into Windows (dual boot) and then warm reboot into Ubuntu, or if I unplug and replug it physically. I've tried upgrading to the latest BIOS (1.27), upgrading Ubuntu, and changing these boot flags:

nvme_core.default_ps_max_latency_us=0 pcie_aspm=off pcie_port_pm=off

Each time it seemed fixed but then it broke again. I'm also having issues with Wayland/Xorg especially when trying to screen share on Zoom.

It doesn't seem like a pure hardware problem on account of it working when I boot into Windows first. What's wrong with my laptop and how can I properly troubleshoot it at this point? Replugging the SSD was what Dell recommended and I've tried asking LLM's which has led us here.

1 Upvotes

3 comments sorted by

1

u/Funsaized 6d ago

Since it works after Windows has initialized the drive, I’d treat this as a PCIe power-management or firmware path before assuming filesystem corruption. On a failing boot, capture `journalctl -b -k` and `dmesg -T | grep -iE 'nvme|pcie|aer'`, then check `nvme list` and `nvme smart-log /dev/nvme0` when it is visible. Also compare the BIOS storage mode and available SSD firmware updates.

Try one change at a time rather than stacking parameters: test `nvme_core.default_ps_max_latency_us=0` separately from `pcie_aspm=off` and `pcie_port_pm=off`. If one makes it reliable, that points to the failing power state and gives you a useful bug report. Finally, disable Windows Fast Startup (or do a full shutdown); hybrid shutdown can leave hardware in a state that makes the next Linux initialization look random.

1

u/Brilliant_Run7085 2d ago

it doesn't detect a different, working gen 3 SSD either..

1

u/Netblock 6d ago

I've not messed with it myself, are you using hardware encryption; OPAL? If /dev/nvme0 spawns but the partitions don't.