GNU, linux based systems, free software and other computer related things...

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

You can freely copy, change or create derivative works from this page contents, only requisite is adding a link to this web page.