List of disks connected to the machine
How do I view the list of disks (i.e. /dev/sda, /dev/sdb, and so on) that are attached to the machine?
2
Author: Nicolas Chabanovsky, 2011-07-19
3 answers
There are several options:
lsblk
df -h
fdisk -l
3
Author: demshin, 2017-11-29 13:13:22
With root rights
Fdisk -l
2
Author: Егор Соколов, 2011-07-19 17:39:57
And also so:
hwinfo --disk --shortdisk: /dev/sda SAMSUNG HD103UJ /dev/sdb Generic USB SD Reader
To use it, you need to install hwinfo:
apt-get install hwinfo
2
Author: Nicolas Chabanovsky, 2011-07-20 09:04:44