When Something Goes Wrong

Chapter 5 — The Installation Process

Your USB stick is written, your data is backed up, and you've confirmed the live session boots correctly. Now it's time to install. This chapter walks through the full installation step by step using Ubuntu 24.04 LTS as the reference — it's the most widely used distro and its installer is representative of what you'll find on Linux Mint and most Debian-based systems. Differences for Linux Mint, Fedora, and Debian are noted at the end.

Time to complete: the installation itself takes 10–20 minutes on most modern hardware. An SSD installs significantly faster than a traditional spinning hard drive. Plan for about 30 minutes end-to-end including reboots.

1. The Live Session

When you boot from the USB stick, Ubuntu gives you a choice: Try Ubuntu or Install Ubuntu. Always choose Try Ubuntu first.

The live session boots into a fully functional Ubuntu desktop running entirely from the USB stick. Nothing is written to your hard drive at this point. Use this opportunity to:

  • Check WiFi — click the network icon in the top-right corner. If your WiFi networks appear and you can connect, it will work after installing.
  • Check sound — open a video in Firefox or play audio via the Files app.
  • Check display resolution — it should match your monitor's native resolution. If it's wrong, it may need attention after installing (covered in Chapter 6).
  • Test the touchpad (laptops) — scroll, tap, and two-finger scroll.

Once you're satisfied everything works, find the "Install Ubuntu" icon on the desktop or in the application menu and double-click it to launch the installer.

No WiFi in the live session? Don't cancel the install — connect via Ethernet cable instead and the installer will download any missing drivers. Proprietary WiFi drivers can be installed after the fact through Ubuntu's "Additional Drivers" tool, which we cover in Chapter 6.

2. The Ubuntu Installer — Step by Step

  • 1
    Language selection. The installer opens with a language picker. Select your language and click Next.
  • 2
    Accessibility. Ubuntu 24.04 includes an accessibility options screen — screen reader, large text, high contrast. Configure these if needed, or click Next to skip.
  • 3
    Keyboard layout. The installer usually detects your keyboard correctly. Verify by typing a few characters — especially any special keys that differ between layouts (@ symbol, £ sign, accented characters). Click Next.
  • 4
    Network connection. If you're connected to WiFi or Ethernet, the installer will offer to download updates during installation. If you have a fast connection, tick "Download updates while installing Ubuntu" — it saves a step after install. If your connection is slow or metered, skip it and update afterwards.
  • 5
    Type of installation — Normal or Minimal. Ubuntu 24.04 offers two options:

    Ubuntu installer — Applications
    Default selection — includes a web browser, office suite, media player, and common utilities. Recommended for most users.
    Extended selection — adds additional office tools and media applications. Choose if you want a fuller suite out of the box.
    Choose Default selection unless you specifically want the extras. You can always install more software afterwards.
  • 6
    Third-party software and drivers. You'll see a checkbox: "Install recommended proprietary software". Tick this — it enables installation of NVIDIA drivers, WiFi firmware, and multimedia codecs (MP3 playback, H.264 video) that can't ship as open-source. Without it, some hardware and media won't work immediately after install.
  • 7
    Partitioning — the most important screen. See Section 3 below for a detailed explanation of the options here. For most people: if dual-booting, choose "Install Ubuntu alongside Windows"; if doing a full install, choose "Erase disk and install Ubuntu".
  • 8
    Time zone. The installer shows a world map. Click your location or type your city. This sets your system clock and the time zone used for scheduled tasks.
  • 9
    Create your user account.
    Ubuntu installer — Your account
    Your name
    Philip Osztromok
    Your full name — used for display purposes
    Computer name
    philip-laptop
    How this machine identifies itself on the network. No spaces; lowercase.
    Username
    philip
    Your login name. Lowercase letters, numbers, hyphens only. This cannot easily be changed later.
    Password
    ••••••••••••
    Use a strong password — this account has administrator (sudo) access to the system
    Choose your username carefully — it becomes your home directory name (/home/philip) and is used throughout the system. It cannot be easily changed after installation.
  • 10
    Review and confirm. Ubuntu 24.04 shows a summary screen listing all your choices before making any changes to your disk. Read through it carefully — especially the partitioning section. If anything looks wrong, use the Back button. Click Install when you're satisfied.
  • 11
    Installation runs. A progress bar advances as files are copied and configured. This takes 10–20 minutes. The computer does not need your attention during this time. Don't interrupt it or let the laptop battery die.
  • 12
    Restart now. When installation completes, a dialog asks you to restart. Click Restart Now. The installer will tell you to remove the USB stick and press Enter — do so. The computer reboots into your new Linux installation.

3. Partitioning Options Explained

The partitioning screen is where most first-timers feel nervous. Here are the options you'll see and when to choose each one.

Install alongside Windows

The installer detects Windows and shrinks it to make space. It creates the Linux partitions automatically. A slider lets you adjust how much space each OS gets. Choose this for dual-boot if you already made space in Chapter 3, or let the installer do it.

Erase disk and install Ubuntu

Wipes the entire selected disk and installs Ubuntu on it. The simplest option — Ubuntu handles all the partition creation for you. Choose this for a full install replacing Windows. Warning: destroys all existing data on the disk.

Manual partitioning

Shows a full partition editor where you create, resize, and assign partitions yourself. Needed if the automatic options don't suit your situation — for example, installing to specific partitions on a drive with an unusual layout, or creating a separate /home partition. Recommended only if you're comfortable with the concepts from Chapter 3.

LVM / Encryption options

Ubuntu offers LVM (Logical Volume Manager) and full-disk encryption (LUKS). LVM makes it easier to resize partitions later. Encryption protects your data if the laptop is stolen — at the cost of a passphrase on every boot. Both are optional and can be combined. Encryption is worthwhile on laptops that leave the house.

Using manual partitioning for dual-boot

If "Install alongside Windows" doesn't appear (sometimes happens with unusual disk layouts), use manual partitioning. The unallocated space you freed in Chapter 3 will appear as free space. Create the following partitions in it:

  • Root partition (/) — select the free space, click +, set size (minimum 20 GB, ideally 40–50 GB), file system: ext4, mount point: /
  • Swap partition — size equal to your RAM (up to 8 GB), file system: swap area
  • /home partition (optional) — remaining free space, file system: ext4, mount point: /home
  • EFI partition — on UEFI systems, select the existing Windows EFI partition and mark it as "boot" / EFI System Partition without formatting it. Do not create a new one or format the existing one — that would break Windows boot.
In manual mode, never format the Windows partition or the EFI partition. In the partition editor, the "Format" checkbox must be unticked for both the Windows NTFS partition (C:) and the existing EFI System Partition. Only format the new partitions you create in the unallocated space.

4. Full-Disk Encryption (Optional but Recommended for Laptops)

If you select "Erase disk and install Ubuntu" and tick "Encrypt the new Ubuntu installation for security", the entire Linux partition is encrypted using LUKS (Linux Unified Key Setup). A passphrase is set during installation; every time the machine boots, you type this passphrase before Linux loads.

  • Benefit: if the laptop is stolen or lost, the data on it cannot be read without the passphrase — even if the thief removes the drive.
  • Drawback: forgotten passphrase = unrecoverable data. There is no bypass and no recovery email. Write the passphrase down and store it somewhere safe and offline.
  • Performance impact: negligible on modern hardware with AES acceleration.
Enable encryption on laptops. Desktop computers that never leave your home may not need it, but any machine that travels — work laptop, university computer — should be encrypted. The setup cost is one extra passphrase at boot.

5. First Boot

After the installer finishes and the machine restarts, you'll see the GRUB boot menu — a text or graphical menu listing all available operating systems. On a dual-boot system this will show Ubuntu and Windows Boot Manager. The default selection (Ubuntu) counts down from 10 seconds and boots automatically if you don't press anything.

Ubuntu loads to a login screen. Enter the password you set during installation.

What you'll see on first login

Ubuntu may launch a welcome screen offering to set up online accounts (Ubuntu One, Google, etc.), configure Ubuntu Pro, and take a quick tour. All of these are optional. You can close the welcome screen immediately if you prefer.

Checking the GRUB menu (dual-boot)

On a dual-boot system, the GRUB menu defaults to Ubuntu. To boot Windows, use the arrow keys to select "Windows Boot Manager" and press Enter. GRUB remembers the last selection by default on some distros — if you find it always boots the wrong OS, you can change the default in /etc/default/grub (covered in Chapter 6).

Windows may run chkdsk on first boot after install. This is normal — Windows noticed that something modified its partition table and runs a disk check as a precaution. Let it complete; don't interrupt it.

6. If Something Goes Wrong

Installation problems are rare but they do happen. Here are the most common issues and what to do about them.

"No bootable device found" after installing

The computer can't find a bootloader. Most common cause on UEFI systems: the installer ran in Legacy/BIOS mode but the computer is set to UEFI, or vice versa. Go into UEFI settings and look for a Boot Override or Boot Order section — Ubuntu's GRUB should appear as an entry. If it doesn't, boot from the USB stick again and select "Try Ubuntu", then run boot-repair (install it from the terminal with sudo apt install boot-repair, then run it).

GRUB menu doesn't appear (dual-boot)

Windows Boot Manager may have taken priority over GRUB in the UEFI boot order. Go into UEFI settings, find the Boot Order, and move "ubuntu" above "Windows Boot Manager". Save and restart.

Installation freezes or crashes

Usually caused by a corrupted ISO or a bad USB write. Verify the ISO checksum (Chapter 4), rewrite the USB stick, and try again. If it crashes at the same point repeatedly, check whether your RAM is faulty by running the memory test available in the GRUB menu of the live USB.

"Ubuntu" entry missing from GRUB after a Windows update

Windows updates sometimes overwrite the UEFI boot order. Boot from your Ubuntu USB stick in live mode, open a terminal, and run sudo update-grub after mounting the installed system. The boot-repair tool mentioned above automates this process.

7. Differences for Other Distros

Aspect Ubuntu 24.04 Linux Mint 21 Fedora 40 Debian 12
Installer name Ubiquity / new Flutter installer Ubiquity (same as older Ubuntu) Anaconda Debian Installer
Live session first? Yes — Try before installing Yes — Try before installing Yes — Try Fedora option No — boots straight to installer
Partitioning screen Simple options + manual mode Identical to Ubuntu's options Anaconda's disk configuration tool — different UI but same concepts Text-based; more detailed but more options
Default file system ext4 ext4 Btrfs (with subvolumes) ext4
Codecs & drivers Optional tick-box during install Included by default in Mint Must install RPM Fusion after install for MP3/H.264 Non-free firmware ISO required for some hardware
Encryption option During install (LUKS) During install (LUKS) During install (LUKS) During install (LUKS)
Difficulty level Easy Easy (slightly friendlier) Medium (Anaconda is less intuitive for beginners) Medium–Hard (text installer, more decisions)

A note on Fedora's Anaconda installer

Fedora uses its own installer called Anaconda, which looks quite different from Ubuntu's. The main difference is that you configure each section (time zone, partitioning, user account) by clicking tiles on a hub screen, rather than stepping through them sequentially. The concepts are identical — it just takes a moment to get used to the layout. Notably, partitioning in Anaconda requires you to click "Done" twice to confirm — easy to miss.

A note on Debian's installer

Debian's installer is text-based and asks more questions than Ubuntu's, including selecting which software groups to install (desktop, web server, etc.). For a desktop install, choose "Debian desktop environment" plus the specific desktop (GNOME, KDE, etc.). Debian also has a separate "non-free firmware" ISO that includes proprietary WiFi and GPU drivers — download that version rather than the standard ISO for the smoothest hardware experience.

Chapter Summary

StepWhat to do
Live session Choose "Try Ubuntu" first. Verify WiFi, sound, and display before launching the installer.
Partitioning Dual-boot: "Install alongside Windows". Full install: "Erase disk and install Ubuntu". Manual only if needed.
Third-party software Tick the box for proprietary drivers and codecs during install. Saves setup time afterwards.
Encryption Enable LUKS encryption for any laptop that leaves the house. Record the passphrase somewhere safe — it cannot be recovered.
Username Choose your username carefully — it becomes your home directory path and is difficult to change later.
First boot GRUB menu appears for dual-boot. Ubuntu loads; close the welcome screen and log in. Windows may run chkdsk once — let it finish.
Troubleshooting Boot problems: check UEFI boot order. Missing GRUB: use boot-repair from live USB. Crashes during install: verify the ISO checksum and rewrite the USB.
Next: Chapter 6 — First boot and essential setup. Linux is installed and running. Now we run the first update, fix any hardware issues, set the correct display resolution, configure the hostname, and create additional user accounts.