Product SiteDocumentation Site

16.3. Viewing Block Devices and File Systems

16.3.1. Using the lsblk Command

The lsblk command displays a list of available block devices, for example:
~]$ lsblk
NAME                            MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda                               8:0    0 465.8G  0 disk
|-sda1                            8:1    0     2G  0 part
|-sda2                            8:2    0    64G  0 part
| |-vg_rhel-lv_root (dm-1)      253:1    0    16G  0 lvm
| `-vg_rhel-lv_home (dm-2)      253:2    0    48G  0 lvm
|-sda3                            8:3    0     4G  0 part [SWAP]
`-sda4                            8:4    0 395.8G  0 part
  `-vg_test-lv_fedora_16 (dm-0) 253:0    0    20G  0 lvm  /
sr0                              11:0    1  1024M  0 rom
By default, lsblk lists block devices in a tree-like format. To display the information as an ordinary list, add the -l command line option:
~]$ lsblk -l
NAME                        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda                           8:0    0 465.8G  0 disk
sda1                          8:1    0     2G  0 part
sda2                          8:2    0    64G  0 part
vg_rhel-lv_root (dm-1)      253:1    0    16G  0 lvm
vg_rhel-lv_home (dm-2)      253:2    0    48G  0 lvm
sda3                          8:3    0     4G  0 part [SWAP]
sda4                          8:4    0 395.8G  0 part
vg_test-lv_fedora_16 (dm-0) 253:0    0    20G  0 lvm  /
sr0                          11:0    1  1024M  0 rom
For a complete list of available command line options, refer to the lsblk(8) manual page.