Easier to read with cream paper, a tint, more contrast or larger text? Choose your colours and text, once, for every page.

Preview

DS 2.10: Partitions, MBR and GPT

This is the first page of the lesson. Read it and have a go at the activities. The rest is in the full lesson.

60 minutes

One disk, two jobs

A technician has one big new disk. The system should live in one place, and the user's files in another. Then a bad update can be fixed without touching the files.

The answer is to cut the disk into parts. Each part is called a partition.

Key words

WordWhat it means
Partitiona separate section of a drive
Partition tablethe list on a drive that says where each partition starts and ends
MBRmaster boot record: an older partition table with a limit of four main entries
GPTGUID partition table: a newer table that allows many partitions and huge drives
Primary partitiona main partition that the computer can start from
Extended partitiona container that holds logical partitions
Logical partitiona partition made inside an extended partition
Basic diska disk that uses a plain partition table

The cells students fill in are left blank in this preview.

By the end of this lesson

Note

I can describe basic and dynamic disks, primary, extended and logical partitions, and GPT.

Starter

Have a go

Starter

3 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Your answers are marked here and are not kept. A college account keeps every student’s marks.

The older way: MBR

An MBR table has room for only four entries. These are primary partitions. A PC can start from a primary partition.

What if you need more than four? One entry can be an extended partition. It does not hold files itself. It is a container for logical partitions, and you can make many inside it.

Build an MBR image with three partition kinds

Command
truncate -s 64M old.img && parted -s old.img mklabel msdos mkpart primary ext4 1MiB 20MiB mkpart extended 20MiB 100% mkpart logical ext4 21MiB 40MiB mkpart logical ext4 41MiB 60MiB && parted -s old.img print

A command for the lesson’s lab terminal. It is shown here and not run.

The newer way: GPT

GPT is the modern table. It allows up to 128 partitions in common use, and drives much bigger than MBR can handle. Every GPT partition is an ordinary partition. There is no primary, extended or logical.

Most new PCs use GPT, with a modern start-up system.

Build a GPT disk image with two partitions

Command
truncate -s 64M disk.img && parted -s disk.img mklabel gpt mkpart boot fat32 1MiB 17MiB mkpart system ext4 17MiB 100% && parted -s disk.img print

A command for the lesson’s lab terminal. It is shown here and not run.

MBR and GPT compared

MBRGPT
Main entriesFourUp to 128 in common use
Needs an extended partition for more?YesNo
Partition typesPrimary, extended, logicalJust partitions
Very large drivesLimited to about 2 TBSupported
AgeOlderNewer, now the usual choice

The cells students fill in are left blank in this preview.

The lesson goes on

6 more parts of this lesson are in the full curriculum, with the tasks, the final check and the labs. A college account gives your students all of it.