Is there a command to list all partition labels?
I can list the partitions with
sudo fdisk -l
but it doesn't show the labels of unmounted partitions.
Is there a command to list all partition labels?
I can list the partitions with
sudo fdisk -l
but it doesn't show the labels of unmounted partitions.
lists all devices with labels:
Simply labels?
Or better:
If you're willing to use
sudo
(whichblkid
requires), then you could also use thelsblk
command:Use the command
You will get a list of fields that are most useful for your requirement.