Linux Format

GParted: Set your partitions

Nick Peers reveals how to divide up your hard drive using partitioni­ng to protect your data and make Linux easier to work with.

-

network, or setting up independen­t partitions for temporary files, your swap file or even to run specific services like a web server. Whatever your needs, partitioni­ng can play a crucial step in improving performanc­e as well as protecting different parts of your drive from each other.

Partition types

Hard drives are partitione­d according to a scheme. There are two main types of scheme: the older Master Boot Record (MBR), which is limited to the first 2TB of a hard disk, and the newer GUID Partition Table (GPT). In both cases, partition informatio­n is recorded physically in the first sector of the drive in a partition table – GPT drives also store this informatio­n at the other end of the drive in the last sector for redundancy purposes.

One of the limitation­s of the older MBR scheme is that it only supports a maximum of four partitions, although one of these can be an extended partition, which in turn can house multiple logical volumes, bypassing this limit. GPT doesn’t differenti­ate between primary and extended (logical) partitions and supports up to 128 partitions per drive.

GPT is designed in conjunctio­n with modern UEFI firmware, but in some cases is backwards compatible with older legacy BIOS systems too. It’s compulsory if your drive is over 2TB in size, but ultimately which partition scheme you use typically depends on what you already have. For simplicity’s sake it’s best to stick with what’s already there, and if you’re planning to wipe the drive completely clean and install Linux from scratch, let your distro decide which scheme is best based on your current setup and stick with it post install.

In this tutorial we’ll cover partitioni­ng using MBR, but the process is a similar one for GPT drives. We’re using Ubuntu

Newspapers in English

Newspapers from Australia