The difference between partitioning and formatting a disk

formattingpartitioning

I have formatted and partitioned many disks, many times, and while I know the tools and effects are different, I don't fully understand why both are necessary.

In short, partitioning seems to pertain to how a disk is divided up. But isn't that formatting too, as formatting determines how the space on the disk is actually used? All this happens above the operating system, which is actually the thing that keeps track of files. What is the exact relation between formatting and partitioning?

UPDATE: please see new question Why does deleting a partition cause data to be lost?

Best Answer

Partitions specify boundaries of areas on the disk.

Formatting is creating a filesystem volume. This does things like creating a table for storing filesystem volume objects (like files and directories), creating a root directory, and creating a volume label.

When you format (which means creating/initializing the filesystem volume), the typical method is for the new filesystem volume to take up the entire available space, which is either an entire partition or an entire disk. (For example, an entire partition on an SSD or a hard drive, or an entire disk if using a floppy disk.)

Related Question