-
-
Notifications
You must be signed in to change notification settings - Fork 1
Linux blkid Guide
Mattscreative edited this page Dec 5, 2025
·
2 revisions
Complete beginner-friendly guide to blkid on Linux, covering Arch Linux, CachyOS, and other distributions including block device identification, UUID lookup, and filesystem information.
blkid prints block device attributes.
Uses:
- Device info: Get block device information
- UUID lookup: Find device UUIDs
- Filesystem info: Get filesystem details
- Device identification: Identify devices
Why it matters:
- Device identification: Identify devices
- UUID lookup: Find UUIDs for fstab
- Filesystem info: Get filesystem details
Basic usage:
# List all block devices
sudo blkid
# Shows all devices with infoDevice info:
# Specific device
sudo blkid /dev/sda1
# Shows device informationGet UUID:
# UUID only
sudo blkid -s UUID /dev/sda1
# -s = show (specific field)Get label:
# Label only
sudo blkid -s LABEL /dev/sda1
# Shows filesystem labelComplete info:
# All information
sudo blkid /dev/sda1
# Shows:
# UUID, LABEL, TYPE, PARTUUID, etc.Script-friendly:
# Export format
sudo blkid -p /dev/sda1
# -p = probe (re-reads device)Check installation:
# Check blkid
which blkid
# Usually in util-linux
# Install if missing
sudo pacman -S util-linuxThis guide covered blkid usage, device identification, and filesystem information for Arch Linux, CachyOS, and other distributions.
- lsblk Guide - List block devices
- mount Guide - Mounting devices
- Filesystem Management - Filesystem setup
-
blkid Documentation:
man blkid
This guide covers Arch Linux, CachyOS, and other Linux distributions. For distribution-specific details, refer to your distribution's documentation.