Kahibaro
Discord Login Register

Partitioning

Understanding Disk Partitioning in Linux Installation

Partitioning is the step where you decide how your disk is divided into separate logical sections (partitions) before installing Linux. In this chapter you’ll focus on what you actually need to know and choose during installation, without going deep into advanced storage topics.

Why Partition at All?

During installation, the system needs:

Partitioning controls how these areas are separated on your disk. This affects:

Basic Terms You Will See in Installers

When using a graphical or text installer, you’ll often see these terms:

You usually do not need to work directly with fdisk or parted at installation time; the installer provides a GUI or menu-based partitioning tool built on top of these.

Partitioning Schemes: Automatic vs Manual

Most Linux installers offer two broad approaches:

Automatic (Guided) Partitioning

Typical options you’ll see:

Characteristics:

When to use it:

Manual (Custom / Something Else) Partitioning

Names vary:

Use this when:

Manual mode lets you:

Partition Table Types: MBR vs GPT (Just Enough to Choose)

The disk has a partition table describing how partitions are arranged.

For beginners, you usually just need to recognize two names:

On modern systems with UEFI firmware, installers normally choose GPT automatically. Unless you have an old machine or a specific reason, accept the default.

Typical Partitions in a Linux Install

You don’t have to memorize many layouts. For a simple desktop or laptop installation, you generally only need 2–3 partitions:

  1. Root (/) – required
  2. Swap – optional but recommended in many setups
  3. Home (/home) – optional but very useful

Other partitions like /boot, /boot/efi, or separate /var are more specialized and usually handled automatically by the installer in guided modes.

1. Root Partition (`/`)

Beginner recommendation: If you don’t want to think too much, give / at least 40 GB so you don’t run out of space quickly.

2. Swap Area

Swap is disk space used when RAM is full or for some power-saving features like hibernation.

You may see:

Many modern installers default to a swap file, so you might not need to create a separate swap partition manually. But if you do:

If unsure and using guided partitioning, just accept the default.

3. Home Partition (`/home`)

Beginner rule of thumb:

If you prefer simplicity, you can skip separate /home and just have everything under a single / partition; personal data will simply live inside /home on that partition.

Step-by-Step: A Simple Manual Layout Example

Imagine you have a 500 GB disk and want:

A reasonable manual layout:

  1. EFI System Partition (ESP) (if using UEFI, often created automatically)
    • Size: 300–500 MB
    • Filesystem: FAT32
    • Mount point: /boot/efi (installer will know this)
    • Usually do not format it if dual-booting with Windows; ok to format on Linux-only installs.
  2. Root (/)
    • Size: 40–60 GB
    • Filesystem: ext4
    • Mount point: /
    • Mark to format
  3. Swap
    • Size: 4–8 GB (depends on RAM and hibernation)
    • Type: swap
  4. Home (/home)
    • Size: all remaining space (e.g. ~430 GB)
    • Filesystem: ext4
    • Mount point: /home
    • Mark to format (unless reusing an existing /home carefully)

If using a BIOS/legacy system with MBR and no UEFI, you might skip the EFI partition and just have /, swap, and /home.

Dual-Boot Considerations (At Partition Level Only)

If you’re dual-booting with Windows or another OS, partitioning becomes more delicate. High-level things to keep in mind:

As a beginner, always double-check labels, sizes, and filesystems before clicking “Format” or “Install”.

Filesystem Choice (Just What You Need Here)

For basic installations, you can almost always choose:

Other filesystems (XFS, Btrfs, etc.) are suitable for more advanced setups and are covered elsewhere.

Common Installer Options You’ll Encounter

When editing or creating a partition in the installer, you typically set:

Safe beginner rules:

Minimal “Don’t-Panic” Checklist Before You Click Install

Before you start the actual installation:

  1. Confirm which disk you are using (e.g. /dev/sda vs /dev/sdb if multiple disks).
  2. Check that the partition with mount point / is:
    • Large enough (≥20–30 GB, ideally more)
    • Marked for ext4 (or your chosen filesystem)
    • Marked to format (for fresh install)
  3. Check that you have swap, either:
    • A swap partition, or
    • The installer says it will create a swap file
  4. If you created /home:
    • It has mount point /home
    • It uses ext4 (or another Linux filesystem)
  5. For dual-boot:
    • Windows partition is still listed, not marked to format
    • EFI System Partition (if present) is not incorrectly formatted unless you intend a clean Linux-only system

If all of that looks correct, you’re usually safe to proceed with installation.

Summary

Views: 25

Comments

Please login to add a comment.

Don't have an account? Register now!