BalrogMithrandir
New Member
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 re-partion the hard disk, and the LinuxUUID will change when change the file system?
So I think the Serial Number is the ID I want , but I can not get it.
I also find the "Disk identifier (GUID): E37EBCC8-2251-420B-B2A6-3B515E3D2892", but I do not sure will it chang?
How could i do ? Thank you !
I've thought the "Partition unique GUID" of nvme0n1 or the Linux UUID of nvme0n1p1, but Partition unique GUID will change when re-partion the hard disk, and the LinuxUUID will change when change the file system?
So I think the Serial Number is the ID I want , but I can not get it.
I also find the "Disk identifier (GUID): E37EBCC8-2251-420B-B2A6-3B515E3D2892", but I do not sure will it chang?
How could i do ? Thank you !