NVME model does not show up

Bug #1724370 reported by Jeremy Soller
38
This bug affects 7 people
Affects Status Importance Assigned to Milestone
gnome-disk-utility (Ubuntu)
Expired
Undecided
Unassigned
systemd (Ubuntu)
Expired
Undecided
Unassigned
udisks2 (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

The Model field for NVME drives is blank. I believe this issue comes from udisks2, and then from udev.

udisks2 has a function for getting the model which returns blank, udisks_drive_get_model

udev has a parameter that should be returned for a disk if it has a model, ID_MODEL

The Linux kernel exposes the true model in a sys file, /sys/block/nvme0n1/device/model

This data should be displayed in GNOME Disks when available, but is not.

Revision history for this message
Jeremy Soller (jackpot51) wrote :

Attached is a screenshot of the expected behavior, with a model set

Revision history for this message
Jeremy Soller (jackpot51) wrote :

Attached is the current behavior, no Model is set

Revision history for this message
Jeremy Soller (jackpot51) wrote :

Here is the information from a SATA drive:

$ udevadm info /dev/sda
P: /devices/pci0000:00/0000:00:17.0/ata2/host1/target1:0:0/1:0:0:0/block/sda
N: sda
S: disk/by-id/ata-Samsung_SSD_850_EVO_M.2_250GB_S33CNX0HC13989R
S: disk/by-id/wwn-0x5002538d418ea893
S: disk/by-path/pci-0000:00:17.0-ata-2
E: DEVLINKS=/dev/disk/by-id/ata-Samsung_SSD_850_EVO_M.2_250GB_S33CNX0HC13989R /dev/disk/by-path/pci-0000:00:17.0-ata-2 /dev/disk/by-id/wwn-0x5002538d418ea893
E: DEVNAME=/dev/sda
E: DEVPATH=/devices/pci0000:00/0000:00:17.0/ata2/host1/target1:0:0/1:0:0:0/block/sda
E: DEVTYPE=disk
E: ID_ATA=1
E: ID_ATA_DOWNLOAD_MICROCODE=1
E: ID_ATA_FEATURE_SET_HPA=1
E: ID_ATA_FEATURE_SET_HPA_ENABLED=1
E: ID_ATA_FEATURE_SET_PM=1
E: ID_ATA_FEATURE_SET_PM_ENABLED=1
E: ID_ATA_FEATURE_SET_SECURITY=1
E: ID_ATA_FEATURE_SET_SECURITY_ENABLED=0
E: ID_ATA_FEATURE_SET_SECURITY_ENHANCED_ERASE_UNIT_MIN=8
E: ID_ATA_FEATURE_SET_SECURITY_ERASE_UNIT_MIN=2
E: ID_ATA_FEATURE_SET_SMART=1
E: ID_ATA_FEATURE_SET_SMART_ENABLED=1
E: ID_ATA_ROTATION_RATE_RPM=0
E: ID_ATA_SATA=1
E: ID_ATA_SATA_SIGNAL_RATE_GEN1=1
E: ID_ATA_SATA_SIGNAL_RATE_GEN2=1
E: ID_ATA_WRITE_CACHE=1
E: ID_ATA_WRITE_CACHE_ENABLED=1
E: ID_BUS=ata
E: ID_MODEL=Samsung_SSD_850_EVO_M.2_250GB
E: ID_MODEL_ENC=Samsung\x20SSD\x20850\x20EVO\x20M.2\x20250GB\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20
E: ID_PART_TABLE_TYPE=gpt
E: ID_PART_TABLE_UUID=793482a2-46b0-4a38-902d-2f9a014c177e
E: ID_PATH=pci-0000:00:17.0-ata-2
E: ID_PATH_TAG=pci-0000_00_17_0-ata-2
E: ID_REVISION=EMT21B6Q
E: ID_SERIAL=Samsung_SSD_850_EVO_M.2_250GB_S33CNX0HC13989R
E: ID_SERIAL_SHORT=S33CNX0HC13989R
E: ID_TYPE=disk
E: ID_WWN=0x5002538d418ea893
E: ID_WWN_WITH_EXTENSION=0x5002538d418ea893
E: MAJOR=8
E: MINOR=0
E: SUBSYSTEM=block
E: TAGS=:systemd:
E: USEC_INITIALIZED=1479938

Revision history for this message
Jeremy Soller (jackpot51) wrote :

Here is the information from an NVME drive. Note that ID_MODEL is missing:

$ udevadm info /dev/nvme0n1
P: /devices/pci0000:00/0000:00:1d.0/0000:6f:00.0/nvme/nvme0/nvme0n1
N: nvme0n1
S: disk/by-id/nvme-Samsung_SSD_950_PRO_256GB_S2GLNX0H717763V
S: disk/by-id/nvme-eui.0025385761b084ef
S: disk/by-path/pci-0000:6f:00.0-nvme-1
E: DEVLINKS=/dev/disk/by-path/pci-0000:6f:00.0-nvme-1 /dev/disk/by-id/nvme-Samsung_SSD_950_PRO_256GB_S2GLNX0H717763V /dev/disk/by-id/nvme-eui.0025385761b084ef
E: DEVNAME=/dev/nvme0n1
E: DEVPATH=/devices/pci0000:00/0000:00:1d.0/0000:6f:00.0/nvme/nvme0/nvme0n1
E: DEVTYPE=disk
E: ID_PART_TABLE_TYPE=gpt
E: ID_PART_TABLE_UUID=713ba820-c08d-478b-bd6c-e589cc8159e3
E: ID_PATH=pci-0000:6f:00.0-nvme-1
E: ID_PATH_TAG=pci-0000_6f_00_0-nvme-1
E: ID_SERIAL=Samsung SSD 950 PRO 256GB_S2GLNX0H717763V
E: ID_SERIAL_SHORT=S2GLNX0H717763V
E: ID_WWN=eui.0025385761b084ef
E: MAJOR=259
E: MINOR=0
E: SUBSYSTEM=block
E: TAGS=:systemd:
E: USEC_INITIALIZED=1212332

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gnome-disk-utility (Ubuntu):
status: New → Confirmed
Changed in systemd (Ubuntu):
status: New → Confirmed
Changed in udisks2 (Ubuntu):
status: New → Confirmed
Revision history for this message
Jeremy Soller (jackpot51) wrote :

Finally, the kernel model from a SATA drive:

$ cat /sys/block/sda/device/model
Samsung SSD 850

And from an NVME drive:

$ cat /sys/block/nvme0n1/device/model
Samsung SSD 950 PRO 256GB

Revision history for this message
Rex Tsai (chihchun) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Please execute the following command only once, as it will automatically gather debugging information, in a terminal:
apport-collect BUGNUMBER

When reporting bugs in the future please use apport by using 'ubuntu-bug' and the name of the package affected. You can learn more about this functionality at https://wiki.ubuntu.com/ReportingBugs.

Changed in udisks2 (Ubuntu):
status: Confirmed → Incomplete
Changed in systemd (Ubuntu):
status: Confirmed → Incomplete
Changed in gnome-disk-utility (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for gnome-disk-utility (Ubuntu) because there has been no activity for 60 days.]

Changed in gnome-disk-utility (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for systemd (Ubuntu) because there has been no activity for 60 days.]

Changed in systemd (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for udisks2 (Ubuntu) because there has been no activity for 60 days.]

Changed in udisks2 (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.