Skip to content

Bug Report: Ubuntu 24.04 LTS with 6.1 kernel NVMe issues - with fix #1307

@platima

Description

@platima

What happened?

I found that with 5.10, 6.12 and 6.17 my Crucial P310 NVMe M.2 SSD appears under lsblk, but with the 6.1 kernel such as your 24.04 images, it does not.

echo 1 | sudo tee /sys/class/nvme/nvme0/rescan_controller results in it appearing, but adjusting the kernel boot parameters to account for the known timing issues does not fix it.

To fix it, I created a new system service:

[Unit]
Description=Rescan NVMe controller for P310 namespace detection
After=local-fs-pre.target
Before=local-fs.target
DefaultDependencies=no

[Service]
Type=oneshot
ExecStartPre=/bin/sleep 1
ExecStart=/bin/sh -c 'echo 1 > /sys/class/nvme/nvme0/rescan_controller'
ExecStartPost=/bin/sleep 1
RemainAfterExit=yes
StandardOutput=journal
StandardError=journal

[Install]
WantedBy=local-fs-pre.target

Kernel version

6.1.0-1025-rockchip

SBC model

ArmSoM Sige7

What operating system are you seeing this problem on?

Ubuntu 24.04 LTS (Noble Nombat)

Relevant logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions