Block Devices and Partitions
Quick answer
A disk provides addressable blocks. A partition describes a range of those blocks; a filesystem organizes data within storage. A filesystem can also occupy a whole device or a regular image file without a partition table.
Prepare the practice environment
Run python3 lab-fixtures/storage/setup.py from the extracted root as an ordinary user. Enter the printed fresh private path and check pwd. Use fresh fixtures, Bash with set -e -o pipefail, LC_ALL=C and umask 077. Only disposable regular files may be written. Optional examples require an authorized snapshot VM. Never substitute actual devices or modify mounts, system configuration or active swap. Review the lab guide.
How it works
lsblk reads device topology, while blkid probes signatures such as filesystem type, label and UUID. A device name can change between boots. A filesystem UUID is not the same as a partition UUID, and cloning can duplicate identifiers. Containers may report device information that does not represent their writable storage. Read the columns explicitly, including TYPE and FSTYPE, rather than inferring a partition from its name.
In the fictional tree, the disk is the parent and each partition occupies part of its address space. A filesystem type shown beside a partition describes a detected signature, not necessarily a healthy or mounted filesystem. Compare the inventory with the VM attachment record and mount information before choosing any target. A matching capacity alone is not enough to distinguish two disks.
Try the examples
The fixture has one disk and two partitions, not three disks.
Expected stdout:
labdisk disk -labdisk1 part vfatlabdisk2 part ext4lsblk --list-columns | grep -E '^ *FSTYPE ' | awk '{print $1}'On util-linux 2.41.5, --list-columns confirms column availability, not topology. Older versions may list columns in --help instead.
Expected stdout:
FSTYPEVM only: compare the output to the virtual disk inventory; do not modify any devices.
Manual example; not executed locally. Follow its stated environment restrictions.
Common mistakes
Never infer a safe target from a device name alone. An empty FSTYPE does not prove that the device contains no important data.
Practice
Use devices.txt to label the disk, partitions and filesystem types. Explain how UUID differs from a device name; list three checks before any disk operation.
Related references
Study: lsblk, blkid. These are reference names, not deployed links.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Block devices and partitions — Knowledge Check
Apply storage concepts to synthetic fixtures and VM-only scenarios.
What does a partition describe?
Which column identifies filesystem type?
Can cloned filesystems share a UUID?
What proves a disk is disposable?