[ILUGC] GNU/Linux commands - blkid

  • From: Dhanasekar <tkdhanasekar@xxxxxxxxx>
  • To: ilugc@xxxxxxxxxxxxx, kanchilug@xxxxxxxxxxxxx
  • Date: Wed, 28 Sep 2016 11:01:13 +0530

Hi,
blkid - locate/print block device attributes

1. The blkid command lists all available block devices

# blkid

/dev/sda1: UUID="c8718e6d-75e7-4620-90cc-cb217b14693b" TYPE="ext4"
/dev/sda5: UUID="0e246465-e70b-4b89-a6c6-743efb54fbf3" TYPE="swap"
/dev/sda6: UUID="4ba15d19-d915-4fde-bfbe-e4e99ae9405b" TYPE="ext4"

2. To display information about a particular device only

# blkid /dev/sda1

/dev/sda1: UUID="c8718e6d-75e7-4620-90cc-cb217b14693b" TYPE="ext4"

3. To display I/O Limits (I/O topology) information

# blkid -i /dev/sda

4. To view more details of devices use udev with -po option

# blkid -po udev /dev/sda1



regards,

T.Dhanasekar


_____________________________________
ILUGC List: http://www.freelists.org/list/ilugc
ILUGC Web: http://ilugc.in/

Other related posts: