RECOMMENDED ARTICLES
LIST ALL STORAGE DEVICES IN THE SYSTEM
udev daemon creates a symlink list in /dev/disk directory showing all storage devices in the system.
We use ls command to show /dev/disk directory content.
$ls -lR /dev/disk
/dev/disk is populated with symlinks to device files. e.g:
/dev/disk/by-label/Swap: symbolic link to `../../sda1'
-
ls output shows devices classified into four directories:
- by-id #identifiers
- by-label #device or partition labels
- by-path #path (hardware interfaces where device is attached to)
- by-uuid #volume identifiers