blkid command

shows block device information

Typical usage: diagnosing problems, information gathering, storage management, system administration, troubleshooting

Introduction into blkid

The blkid command can be used to show block device information on a Linux system. It shows similar information like /etc/fstab and specifics about the used block devices, such as block sizes.

Installation

When blkid is not installed by default, it can be added to the system using the relevant software package.

Package information for blkid

Operating systemPackage nameInstallation
AlmaLinuxutil-linux-core
dnf install util-linux-core
Arch Linuxutil-linux
pacman -S util-linux
Debianutil-linux
apt install util-linux
Fedorautil-linux-core
dnf install util-linux-core
Red Hat Enterprise Linuxutil-linux-core
dnf install util-linux-core
Rocky Linuxutil-linux-core
dnf install util-linux-core
openSUSEutil-linux
zypper install util-linux
Ubuntuutil-linux
apt install util-linux

Your Linux distribution using a different package? Share your feedback.

Usage

Available options

Long optionShort optionDescription
--info-iShow I/O information for a selected block device
--list-filesystems-kShown known file systems and RAID types

Missing an option in this overview? Share your feedback.

Examples using blkid

Show available block devices

blkid

Show I/O limits

blkid --info /dev/vda5

Frequently Asked Questions

What is the blkid command and its purpose?

The blkid command is a command-line tool to show information about block devices.

Which package provides the blkid command?

The command blkid is provided by the util-linux or util-linux-core package.

Relevant articles using the blkid command

The following articles include an example on how to use blkid and might be worth further exploring.

Related and similar commands

Linux has a lot of tools and commands available and sometimes you just need that little other tool. Here is a list of commands that are similar or related to blkid:

Related and similar commands to blkid
CommandCategorySummary
smemmemoryShow memory usage including swap