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

Taught in

References