Partitioning Tools
After you connect a drive to your Linux system, you’ll need to create partitions on it (even if there’s only one partition). Linux provides several tools for working with raw storage devices to create partitions. This section covers the most popular partitioning tools you’ll run across in Linux.
Working with fdisk
The most common command line partitioning tool is the fdisk utility. The fdisk program allows you to create, view, delete, and modify partitions on any drive that uses the MBR method of indexing partitions; it can’t work with GPT indexed partitions.
To use the fdisk program, you must specify the drive device name (not the partition name) of the device you want to work with:
The fdisk program uses its ...
Get Linux Fundamentals, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.