I need to list all block devices installed in my system. There is a command named lsblk to show all block devices.
[kni@hist ttyid:0 pią kwi 13 17:56:26 ~]$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 16G 0 disk
├─sda1 8:1 0 1G 0 part /boot
└─sda2 8:2 0 13,5G 0 part
├─fedora_211829-root 253:0 0 10G 0 lvm /
├─fedora_211829-swap 253:1 0 1,5G 0 lvm [SWAP]
└─fedora_211829-home 253:2 0 2G 0 lvm /home
sr0 11:0 1 55,3M 0 rom /run/media/kni/VBox_GAs_5.2
[knis@hist ttyid:0 pią kwi 13 17:56:31 ~]$
This is the resault of lsblk command executed in my system. Is the sda disk the only one physical device in my system? Partitions and lvm are logical parts of the disk. Am I right?
Is there other way to print physical block devices?
sdaandsr0are the only physical block devices;sda1andsda2are indeed block devices, but they are logical and not physical.