Devices, Partitions and Mounting

Mounted Devices

  • All the active storages devices in Linux are part of the single file system starting at /.

  • The hard drive is identified by /dev/sda:

    • s identifier indicates that it is a sata drive

    • a indicates that it is the first drive (/dev/sdb would the the second drive if present)

    • the drive is divided into different volumes/partitions, each with its own ID mounted at a different location in the file system

      • First partition is /dev/sda1

      • Second partition is /dev/sda2, mounted at /boot/efi

      • Third partition is /dev/sda3, mounted at filesystem root /

    • Every file or directory that isn't in one of the subdirectory mount points, resides on the /dev/sda3 partition since it is at the filesystem root.

  • The virtual dvd drive is identified by the read-only /dev/sr0

Mounting Configuration

  • Each partition has a unique identifier UUID that the system uses.

mount

  • mount - command used to mount partitions, or shows the current mounted devices

df

  • df - displays the disk file system space usage of all the mounted partitions

du

  • du - display the disk usage of given files or directories

  • It can be combined with other commands with pipes.


Last updated

Was this helpful?