blkid command
shows block device information
Typical usage: diagnosing problems, information gathering, storage management, system administration, troubleshootingIntroduction 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 system | Package name | Installation |
---|---|---|
AlmaLinux | util-linux-core |
|
Arch Linux | util-linux |
|
Debian | util-linux |
|
Fedora | util-linux-core |
|
Red Hat Enterprise Linux | util-linux-core |
|
Rocky Linux | util-linux-core |
|
openSUSE | util-linux |
|
Ubuntu | util-linux |
|
Your Linux distribution using a different package? Share your feedback.
Usage
Available options
Long option | Short option | Description |
---|---|---|
--info | -i | Show I/O information for a selected block device |
--list-filesystems | -k | Shown 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:
Command | Category | Summary |
---|---|---|
smem | memory | Show memory usage including swap |