Discovering storage devices
Storage devices can be attached to different buses, so discovering them may be complicated. One useful command to discover everything that looks like a storage device is lsblk
from the util-linux
package (its name stands for list block devices):
$ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS zram0 251:0 0 959M 0 disk [SWAP] vda 252:0 0 25G 0 disk ├─vda1 252:1 0 1M 0 part ├─vda2 252:2 0 500M 0 part /boot ├─vda3 252:3 0 100M 0 part /boot/efi ├─vda4 252:4 0 4M 0 part └─vda5 252:5 &...