Menu

Partitioning on the Linux command line (CLI)

Partitioning information in the official Alpine Linux User’s Handbook

Using parted

Easiest of the command line options, but requires adding a package on Alpine and others (some distros include parted by default, others do not).

Using fdisk

Available on many distributions as part of the core install. Not suitable for setting up a UEFI install when using the fdisk version baked into the boot media in Alpine (it is a very limited version of fdisk).

TODO: show how format hard drive using fdisk on rescue media

Using sfdisk

Also requires adding a package, but can be automated more easily than parted or fdisk.