1

How can I read both partition name and partition label, for a given drive with GPT partition table? I would like to do it on Windows 10. According to this post, both exist and are different on GPT (not MBR) drives:

What is the difference between a name and a label in gparted?

Using commands or software with GUI, either way will do provided it works.

2 Answers2

1

DISKPART can show the label and name for GPT partitions using the DETAIL argument:

diskpart
select disk 0
select partition 1
detail partition

I believe that MS calls these differently though. Reading here (https://social.technet.microsoft.com/Forums/windows/en-US/cd6eae06-fed7-4a12-a22c-bbab9ede3a42/set-gpt-labels-with-diskpart?forum=win10itprosetup) indicates that MS calls the Label "Type", and the Name "Label".

music2myear
  • 49,799
1

Finally I've found how to do it on Linux. No idea how to do it in Windows, it's a pain in the ass.

sudo lsblk -o name,fstype,mountpoint,label,partlabel,size