blkid & lsblk Flashcards

1
Q

blkid

A

The blkid program is the command-line interface to working with the libblkid(3) library

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

blkid -i /dev/sda1

A

This command displays the I/O limits for sda1

i, –infor, Gather info about I/O limits.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

blkid -p /dev/sda

A

This command displays additional information straight from the superblock.

-p, –probe, Low-level superblock probing(cache bypass)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

blkid -l -t LABEL=/home

A

This command looks up the parameters for a specific search criteria.

  • l, –list-one, Look up only first device with token specified by -t.
  • t, –match-token <token>, Fond device with a specific token (NAME=value pair)</token>
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

blkid -t TYPE=ext2

A

This command will display all of the disks with a TYPE of ext2.

NAME=value:

TYPE=

LABEL=

UUID=

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

blkid -L /home

or

blkid -U 6e0acfe3-81ed-4f9f-8ab5-0d65ba1f0ef2

A

These commands are used to search for Labels and UUIDs.

  • L, –label label, Look up the device that uses this fs label.
  • U, –uuid uuid, Look up the device that uses this fs uuid.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

blkid -o full

A

The -o flag is to set the output format, this command is the same as using blkid with no arguments.

blkid -o:

full, value, list, device, udev, export

How well did you know this?
1
Not at all
2
3
4
5
Perfectly