Lsblk
lsblk lists information on selected or all block devices in a system. The tree-view is helpful for complex plate-constructions with LVM or RAID. With lsblk, it can be controlled which suspension point, sector size or Scheduler has a device.
The following output of lsblk shows a set up RAID1 and a Installing Operating Systems on UEFI Systems. Both /dev/sda und /dev/sdb devices are unused:
:~$ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sdb 8:16 0 223.6G 0 disk sda 8:0 0 186.3G 0 disk sdc 8:32 0 74.5G 0 disk ├─sdc1 8:33 0 143.1M 0 part /boot/efi ├─sdc2 8:34 0 18.5G 0 part │ └─md0 9:0 0 18.5G 0 raid1 / ├─sdc3 8:35 0 46.6G 0 part │ └─md1 9:1 0 46.6G 0 raid1 /home └─sdc4 8:36 0 9.3G 0 part └─md2 9:2 0 9.3G 0 raid1 [SWAP] sdd 8:48 0 74.5G 0 disk ├─sdd1 8:49 0 143.1M 0 part ├─sdd2 8:50 0 18.5G 0 part │ └─md0 9:0 0 18.5G 0 raid1 / ├─sdd3 8:51 0 46.6G 0 part │ └─md1 9:1 0 46.6G 0 raid1 /home └─sdd4 8:52 0 9.3G 0 part └─md2 9:2 0 9.3G 0 raid1 [SWAP]
lsblk output of characteristics
The following information can be called up by the devices:[1]
:~$ lsblk --help
[..]
Available columns:
NAME device name
KNAME internal kernel device name
MAJ:MIN major:minor device number
FSTYPE filesystem type
MOUNTPOINT where the device is mounted
LABEL filesystem LABEL
UUID filesystem UUID
RO read-only device
RM removable device
MODEL device identifier
SIZE size of the device
STATE state of the device
OWNER user name
GROUP group name
MODE device node permissions
ALIGNMENT alignment offset
MIN-IO minimum I/O size
OPT-IO optimal I/O size
PHY-SEC physical sector size
LOG-SEC logical sector size
ROTA rotational device
SCHED I/O scheduler name
RQ-SIZE request queue size
TYPE device type
DISC-ALN discard alignment offset
DISC-GRAN discard granularity
DISC-MAX discard max bytes
DISC-ZERO discard zeroes data
References
- ↑ lsblk man page (linux.die.net)
|
Translator: Alina Ranzinger Alina has been working at Thomas-Krenn.AG since 2024. After her training as multilingual business assistant, she got her job as assistant of the Product Management and is responsible for the translation of texts and for the organisation of the department.
|
Related articles
ACPI BIOS Error (bug) Could not resolve symbol
Check TCP Port 80 (http) with telnet
Install logwatch

