block device
A storage device, such as a disk or a partition, that the kernel reads and writes in fixed-size blocks.
In more detail
It appears as a device node such as /dev/sda or /dev/nvme0n1, and lsblk lists them with their sizes and mount points. A block device by itself holds only blocks; a filesystem must be created on it before it can store named files. Writing to the wrong one destroys whatever is on it.
Related terms
- disk partition — A section of a disk that the system treats as a separate block device, such as /dev/sda1.
- filesystem — The way an operating system organises files and folders on a disk or in memory.
- filesystem mount — Attaching a filesystem to a directory in the tree so its files appear under that path.
- device node — A special file, usually under /dev, that stands for a device so programs can open, read and write it like a file.
Taught in
- Disks, Filesystems And Mounting — Linux Fundamentals & Systems Administration