hardinfo does not detect NVMe drive

Bug #1841037 reported by Jeffrey Walton
28
This bug affects 5 people
Affects Status Importance Assigned to Milestone
hardinfo (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I have a Dell XPS 8930 running Ubuntu 18.03 LTS. https://www.amazon.com/gp/product/B078N85NCR .

The machine has a 256GB NVMe drive, and a 2TB classic hard drive. The OS and home directories are on the NVMe drive, and I use the hard drive for miscellaneous storage, like VMs.

It looks like hardinfo is not detecting the NVMe drive:

  $ grep Storage -A 5 ~/Desktop/hardinfo_report.html
  ...
  </table><table><tr><td colspan="2" class="stitle">Storage</td></tr>
  <tr><td colspan="2" class="sstitle">SCSI Disks</td></tr>
  <tr><td class="field">ATA ST2000DM001-1ER1</td><td class="value"></td></tr>
  <tr><td class="field">HL-DT-ST DVD+-RW GU90N</td><td class="value"></td></tr>
  <tr><td class="field">Multiple Card Reader</td><td class="value"></td></tr>
  </table><table><tr><td colspan="2" class="stitle">DMI</td></tr>

However:

  $ sudo blkid | grep -v loop
  /dev/nvme0n1p1: UUID="104A-E9C4" TYPE="vfat" PARTLABEL="EFI System Partition" PARTUUID="91452c19-7bab-428e-ac60-8feccf6a8ef1"
  /dev/nvme0n1p2: UUID="cf81d3e6-77eb-4d8f-bc58-b86396fe8f74" TYPE="ext4" PARTUUID="03157139-0ca0-4206-ba49-2a5fe42d6871"
  /dev/sda1: UUID="17844a61-9ced-4a5c-ab82-3c82c50dc12d" TYPE="ext4" PARTUUID="f8598b58-01"
  /dev/sda2: UUID="564cef3e-fe0e-49ef-9f5b-0e72e32ab068" TYPE="swap" PARTUUID="f8598b58-02"
  /dev/nvme0n1: PTUUID="bba9b3e2-0f78-43c1-ac57-a1f755030d96" PTTYPE="gpt"

This may be a little clearer:

  $ sudo fdisk -l
  (loop devices removed)

  Disk /dev/nvme0n1: 238.5 GiB, 256060514304 bytes, 500118192 sectors
  Units: sectors of 1 * 512 = 512 bytes
  Sector size (logical/physical): 512 bytes / 512 bytes
  I/O size (minimum/optimal): 512 bytes / 512 bytes
  Disklabel type: gpt
  Disk identifier: BBA9B3E2-0F78-43C1-AC57-A1F755030D96

  Device Start End Sectors Size Type
  /dev/nvme0n1p1 2048 1050623 1048576 512M EFI System
  /dev/nvme0n1p2 1050624 500117503 499066880 238G Linux filesystem

  Disk /dev/sda: 1.8 TiB, 2000398934016 bytes, 3907029168 sectors
  Units: sectors of 1 * 512 = 512 bytes
  Sector size (logical/physical): 512 bytes / 4096 bytes
  I/O size (minimum/optimal): 4096 bytes / 4096 bytes
  Disklabel type: dos
  Disk identifier: 0xf8598b58

  Device Boot Start End Sectors Size Id Type
  /dev/sda1 2048 3898640383 3898638336 1.8T 83 Linux
  /dev/sda2 3898640384 3907028991 8388608 4G 82 Linux swap / Solaris

------

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.3 LTS
Release: 18.04
Codename: bionic

$ apt-cache show hardinfo
Package: hardinfo
Architecture: amd64
Version: 0.5.1+git20180227-1
Priority: optional
Section: universe/x11
Origin: Ubuntu
Maintainer: Simon Quigley <email address hidden>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 836
Depends: pciutils (>= 1:2.1.11-10), zlib1g-dev, libc6 (>= 2.27), libgdk-pixbuf2.0-0 (>= 2.22.0), libglib2.0-0 (>= 2.43.2), libgtk2.0-0 (>= 2.18.0), libpango-1.0-0 (>= 1.14.0)
Recommends: lm-sensors
Suggests: mesa-utils
Filename: pool/universe/h/hardinfo/hardinfo_0.5.1+git20180227-1_amd64.deb
Size: 319100
MD5sum: 9a9d66ad2cd2a91f9a77be3f6445ab80
SHA1: b495ff39626a5c8f70a00d78689676ec53b3222f
SHA256: 79644f2e49d6b485f91c7dcdb3c68cccd50fe325075ec9bc2fef1c72e7c0873d

Revision history for this message
Jeffrey Walton (noloader) wrote :

Screen capture of Storage devices.

Revision history for this message
Jeffrey Walton (noloader) wrote :

hardinfo_report HTML

Revision history for this message
Leandro A. F. Pereira (lafp) wrote : Re: [Bug 1841037] [NEW] hardinfo does not detect NVMe drive
Download full text (4.0 KiB)

This has been fixed upstream. We're preparing a new release after 10 years
of no updates.

On Thu, Aug 22, 2019, 10:50 Jeffrey Walton <email address hidden> wrote:

> Public bug reported:
>
> I have a Dell XPS 8930 running Ubuntu 18.03 LTS.
> https://www.amazon.com/gp/product/B078N85NCR .
>
> The machine has a 256GB NVMe drive, and a 2TB classic hard drive. The OS
> and home directories are on the NVMe drive, and I use the hard drive for
> miscellaneous storage, like VMs.
>
> It looks like hardinfo is not detecting the NVMe drive:
>
> $ grep Storage -A 5 ~/Desktop/hardinfo_report.html
> ...
> </table><table><tr><td colspan="2" class="stitle">Storage</td></tr>
> <tr><td colspan="2" class="sstitle">SCSI Disks</td></tr>
> <tr><td class="field">ATA ST2000DM001-1ER1</td><td
> class="value"></td></tr>
> <tr><td class="field">HL-DT-ST DVD+-RW GU90N</td><td
> class="value"></td></tr>
> <tr><td class="field">Multiple Card Reader</td><td
> class="value"></td></tr>
> </table><table><tr><td colspan="2" class="stitle">DMI</td></tr>
>
> However:
>
> $ sudo blkid | grep -v loop
> /dev/nvme0n1p1: UUID="104A-E9C4" TYPE="vfat" PARTLABEL="EFI System
> Partition" PARTUUID="91452c19-7bab-428e-ac60-8feccf6a8ef1"
> /dev/nvme0n1p2: UUID="cf81d3e6-77eb-4d8f-bc58-b86396fe8f74" TYPE="ext4"
> PARTUUID="03157139-0ca0-4206-ba49-2a5fe42d6871"
> /dev/sda1: UUID="17844a61-9ced-4a5c-ab82-3c82c50dc12d" TYPE="ext4"
> PARTUUID="f8598b58-01"
> /dev/sda2: UUID="564cef3e-fe0e-49ef-9f5b-0e72e32ab068" TYPE="swap"
> PARTUUID="f8598b58-02"
> /dev/nvme0n1: PTUUID="bba9b3e2-0f78-43c1-ac57-a1f755030d96" PTTYPE="gpt"
>
> This may be a little clearer:
>
> $ sudo fdisk -l
> (loop devices removed)
>
> Disk /dev/nvme0n1: 238.5 GiB, 256060514304 bytes, 500118192 sectors
> Units: sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
> Disklabel type: gpt
> Disk identifier: BBA9B3E2-0F78-43C1-AC57-A1F755030D96
>
> Device Start End Sectors Size Type
> /dev/nvme0n1p1 2048 1050623 1048576 512M EFI System
> /dev/nvme0n1p2 1050624 500117503 499066880 238G Linux filesystem
>
> Disk /dev/sda: 1.8 TiB, 2000398934016 bytes, 3907029168 sectors
> Units: sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 4096 bytes
> I/O size (minimum/optimal): 4096 bytes / 4096 bytes
> Disklabel type: dos
> Disk identifier: 0xf8598b58
>
> Device Boot Start End Sectors Size Id Type
> /dev/sda1 2048 3898640383 3898638336 1.8T 83 Linux
> /dev/sda2 3898640384 3907028991 8388608 4G 82 Linux swap /
> Solaris
>
> ------
>
> $ lsb_release -a
> No LSB modules are available.
> Distributor ID: Ubuntu
> Description: Ubuntu 18.04.3 LTS
> Release: 18.04
> Codename: bionic
>
> $ apt-cache show hardinfo
> Package: hardinfo
> Architecture: amd64
> Version: 0.5.1+git20180227-1
> Priority: optional
> Section: universe/x11
> Origin: Ubuntu
> Maintainer: Simon Quigley <email address hidden>
> Bugs: https://bugs.launchpad.net/ubuntu/+filebug
> Installed-Size: 836
> Depends: pciutils (...

Read more...

Revision history for this message
Jeffrey Walton (noloader) wrote :

@leonardo,

> This has been fixed upstream. We're preparing a new release after 10 years
> of no updates.

Thanks. That was a hell of a run.

I'd like to get to one month. I can't imagine what 10 years is like.

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

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

Changed in hardinfo (Ubuntu):
status: New → Confirmed
Revision history for this message
Romain LOUTREL (r-loutrel+dev) wrote :

Should https://bugs.launchpad.net/ubuntu/+source/hardinfo/+bug/1940749 not be marked as duplicate of this bug, so that the users find easily the current bug (and can mark themself as 'affected' here)?

I read this as been fixed, but not in the official repos of 22.04. Is there an alternative repository?

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.