Caffeinated Coder
Book an appointment
Lesson 12 · The system

Disks, partitions and mounts

Linux names every disk as a block device in /dev: sda, sdb, nvme0n1. A partition table slices a disk into partitions, a filesystem such as ext4 turns a partition into a place for files, and mount attaches it to a folder of the one directory tree that starts at /. Follow a new, empty disk from lsblk to sfdisk, mkfs.ext4, mount, a copy, df, /etc/fstab and umount.

12 min10 steps5 questionsIntermediate
Fig 12 · Interactive
Loading figure…
or ← →

Quiz Unlocks after the last step.