This tutorial provides a detailed guide on how to partition a single disk for installing Linux Mint Debian, and begins at the step where the disk is detected. The three step prior to this, representing the language selection, timezone settings, and keyboard layout selection have been omitted.
All images used here were taken from an installation in a virtual environment, and is intended to mimic installation on a computer with a single disk with no other operating system on it.
The image below represents the first step in the disk partitioning process. The light-green empty space where the cursor is represents the disk space. There are no existing partition on the disk. To create partitions, click on the Edit partitions button.
The disk partitioning tool is GParted. Since this disk is a new disk, it has not been initialized, that is, it has no partition table or disk label. You will recognize an uninitialized disk by the presence of a warning or alert symbol as shown in the image below. You will have to initialize the disk before you can create partitions. To do so, click on Device > Create Partition Table…
If the disk you are trying to install to already has existing partitions, this step will not be necessary.
You will get this friendly warning. Click Apply.
With the disk initialized, time to create partitions. Notice that the alert sign has disappeared. Click on the New icon to create the first partition, or double-click on the free space and select New. For this tutorial, I am going to create four partitions for the following file system directories:
- swap space
- /, the root file system
The first partition to create will be used for /boot. Note that at this step, you are only creating partitions. The mount points will be assigned after you exit GParted. So it is important to know what you are going to use the partition for since that will help you determine the amount of disk space to allocate to it. For the partition that will be used for /boot, 500 MB is recommended, and as the first partition, we are going to create it as a primary partition. The Label field is just to help you remember what this partition is for. You may leave it empty. Click Add when you are done.
With the first partition created, select the unallocated space and click to create the next one. Note: This step will have to be repeated for all other partitions you want to create.
This partition will be used for swap space. A size of 2 GB will do. For File system, make sure to select linux-swap. You may choose to create it as a primary or extended partition. Add.