Search results

  1. B

    How to get the serial number of nvme SSD?

    I have solved this question by calling "ioctl " function to send ioctl command to read the serial number from nvme disk in my c code. The code could refer to nvme-cli's code in nvme.c and nvme-ioctl.c. Thank you all here!
  2. B

    How to get the serial number of nvme SSD?

    May the Eru bless you :D ! And yes ,a tolkien fan, or a fan of Gandalf and amazing creature:). And thank you for replay my question! My linux distribution is ubuntu 14.04, I know the nvme-cli could help, but I do not want to install it if there are any other method. Thank you again!
  3. B

    How to get the serial number of nvme SSD?

    Thank you for reply! I tried the command "sudo lshw -C disk", and find it do not work with nvme disk, and I can not do this with a GUI application also. Our linux system is not easy to add some new application.
  4. B

    How to get the serial number of nvme SSD?

    I want to get the unique ID from a nvme hard disk without nvme-cli. The unique ID should not change when partition the nvme again, or change the filesystem's type. I've thought the "Partition unique GUID" of nvme0n1 or the Linux UUID of nvme0n1p1, but Partition unique GUID will change when...
  5. B

    what is the Disk identifier (GUID)?

    When I fire up command : `gdisk /dev/nvme0`, and input `p`, I got these: ``` Disk /dev/nvme0n1: 500118192 sectors, 238.5 GiB Logical sector size: 512 bytes Disk identifier (GUID): E37EBCC8-2251-420B-B2A6-3B515E3D2892 Partition table holds up to 128 entries First usable sector is 34, last usable...
Top