• 1-888-289-2246
  • 24x7x365 Presence

How to find block device attributes in Linux


There is a useful command-line utility called “blkid” to locate/print block device attributes.

Its syntax is:-

# blkid

command output example :-

# blkid
/dev/sda1: UUID=”12229e12-62cb-4f8f-adab-b2ad274bc834″ TYPE=”ext4″
/dev/sda2: UUID=”8a9d58de-5f3d-4a12-8b41-bfd0216fab60″ TYPE=”ext4″
/dev/sda3: UUID=”4d1bfd9e-fca9-4097-86a1-48268660167a” TYPE=”swap”
/dev/sda5: UUID=”eeb23385-7cff-4abf-a6e4-e9b407d5211d” TYPE=”ext4″
/dev/sda6: UUID=”qNHpFl-swWF-VSe6-3oZv-R5i3-2lxw-ERDWs9″ TYPE=”LVM2_member”
/dev/mapper/vg_linplsksh1-LogVol00: UUID=”c3d46a77-4CV8-4b6e-b622-2d6d4996abc2″ TYPE=”ext4″
/dev/sdb1: UUID=”RY1sWc-ySNv-TTEV-EXHn-bDqR-xY5X-a6PYAh” TYPE=”LVM2_member”

]]>


Leave a Reply

Your email address will not be published. Required fields are marked *