4.1 Disks and Partitions
Identifying Devices
Section titled “Identifying Devices”In Linux, everything is a file. Devices live in /dev.
- SATA/SCSI:
/dev/sda,/dev/sdb… - NVMe:
/dev/nvme0n1,/dev/nvme0n2… - Virtual (VirtIO):
/dev/vda…
To see what you have attached:
Partitioning Tools
Section titled “Partitioning Tools”We take a raw disk (e.g., /dev/sdb) and slice it into partitions (e.g., /dev/sdb1).
Traditional tool working with MBR (and basic GPT).
Modern tool designed specifically for GPT (GUID Partition Table).
parted
Section titled “parted”Scriptable command line tool.