Man Page: blkid
MAN PAGE: BLKID
EXECUTIVE SUMMARY
Blkid is a command-line utility used to locate and print block device attributes. It is an essential tool for system administrators managing storage on RHEL and Fedora systems. Its primary use case is identifying the universally unique identifier (UUID) and filesystem type (TYPE) of partitions and volumes, which is required for configuring persistent mounts safely in the /etc/fstab file.
BASIC SYNTAX[sudo] blkid [options] [device]
TEN COMMON USAGES (MOST USEFUL FIRST)
1. Display All Devices: sudo blkid2. Specific Device Info: sudo blkid /dev/sda13. List Format Output: sudo blkid -o list4. Show Only UUID: sudo blkid -s UUID /dev/vdb15. Show Only Value: sudo blkid -s UUID -o value /dev/vdb16. Find Device by UUID: sudo blkid -U [UUID_STRING]7. Find Device by Label: sudo blkid -L [LABEL_STRING]8. Print Device Names Only: sudo blkid -o device9. Bypass Cache (Force): sudo blkid -p /dev/sda110. Garbage Collect Cache: sudo blkid -g
CORE FLAGS TO MEMORIZE
-o | Output format; specifies how information is displayed (e.g., list, value, device)-s | Show tag; restricts output to a specific attribute like UUID, TYPE, or LABEL-U | UUID; searches for and prints the device matching the specified UUID-L | Label; searches for and prints the device matching the specified filesystem label
Keywords: RHEL, Fedora, Linux, blkid, Storage, Filesystem, Djere Service Group
