It is process of preparing a storage device for initial data use
It has following 3 steps
Low-level formatting
Partitioning
High-level formatting
Low-Level Formatting
The process of dividing the physical storage medium surface into basic hardware components
Done by Hardware manufacturer
Cannot be done by OS
End users generally cannot perform a low-level format
# NVMe# Rebuilds internal controller mapping tables and layout structures# can be used to convert 512e --> 4Knnvme format# SATA# aka Fast Format (not to be confused by OS Quick Format)# natively switches enterprise SATA HDDs from 512e --> 4KnSET SECTOR CONFIGURATION EXT# SCSI# can modify block size or countFormat Unit
In modern context, “Low-level formatting” may mean actual Low level Formatting or Reinitialization or Disk Filling
Reinitialization
It refers to processes that return a disk to a factory-like configuration: no data, no partitioning, all blocks available to use
It is process of overwriting every logical sector on the disk with a fixed value
# Linux/macOSsudo dd if=/dev/zero of=/dev/sda bs=4k status=progress# WindowsdiskpartDISKPART> list diskDISKPART> select disk 1DISKPART> clean all# macOSdiskutil secureErase 0 disk2
Partitioning
aka Disk Slicing
The process of dividing a single physical block device’s flat, linear LBA array into one or more isolated logical regions called Partitions (or Volumes)