formatting
Creating a new, empty filesystem on a block device with a tool such as mkfs, which throws away what was there.
Formatting the wrong device silently destroys all of its data.
In more detail
Formatting changes the filesystem layer; mounting only changes where it appears. Confirm the device with lsblk before running mkfs, because the command succeeds on the wrong disk just as happily. Make the target device explicit in any change plan.
Related terms
- block device — A storage device, such as a disk or a partition, that the kernel reads and writes in fixed-size blocks.
- 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.
- ext4 — The default filesystem on many Linux distributions, a journaling filesystem that stores files in blocks tracked by inodes.
Taught in
- Disks, Filesystems And Mounting — Linux Fundamentals & Systems Administration