Ubuntu Installation Guide for Beginners

Khimananda Oli 9 min read Virtualization
Ubuntu Installation Guide for Beginners

By Khimananda Oli | Last reviewed: August 2026

A failed OS installation often stems from skipping verification steps or misunderstanding disk layouts rather than the installer itself. This Ubuntu Installation Guide for Beginners provides a verified, engineer-approved workflow for deploying Ubuntu 24.04 LTS on bare metal or virtual hardware without data loss. Before touching your partition table, read our companion piece on initial Ubuntu server setup to secure a fresh VPS to understand the security baseline you must apply immediately after installation.

1. PrepareDownload ISOVerify SHA256Create USB2. ConfigureUEFI / BIOSSecure BootBoot Order3. InstallPartition DiskSet User & SSHBase Packages4. HardenUpdate SystemFirewall & SSHFail2Ban + Logs
Ubuntu Installation Guide for Beginners — four-phase workflow from preparation through post-install hardening

How do I prepare a verified Ubuntu 24.04 LTS bootable USB?

The most common point of failure in any Ubuntu Installation Guide for Beginners occurs before the installer even launches: corrupted installation media. A single flipped bit in the ISO can cause cryptic "squashfs error" messages or silent filesystem corruption that manifests weeks later. Always verify integrity before writing to USB.

Download and verify the ISO checksum

Navigate to the official Ubuntu releases page and download the 24.04 LTS Server or Desktop ISO depending on your use case. For production servers, always choose the minimal server image to reduce attack surface. After downloading, verify the SHA256 hash against Canonical's published checksums:

# Linux/macOS verification
sha256sum ubuntu-24.04-live-server-amd64.iso
# Compare output against SHA256SUMS file from releases.ubuntu.com

# Windows PowerShell verification
Get-FileHash .\ubuntu-24.04-live-server-amd64.iso -Algorithm SHA256

If hashes do not match exactly, delete and re-download. Do not proceed with mismatched media under any circumstances.

Create bootable media correctly

Use Rufus (Windows), BalenaEtcher (cross-platform), or the dd command (Linux/macOS). Avoid tools that modify the ISO structure unless you specifically need persistent storage. For UEFI systems—which comprise virtually all hardware shipped after 2015—ensure the tool writes in GPT mode targeting UEFI firmware:

# Linux dd method (replace sdX with actual device)
lsblk  # Identify correct device FIRST
sudo dd if=ubuntu-24.04-live-server-amd64.iso of=/dev/sdX bs=4M status=progress conv=fsync
sync

A common mistake is selecting the wrong target device and overwriting an existing drive. Triple-check device identifiers using lsblk or diskutil list before executing destructive commands.

What UEFI and BIOS settings are required before installing Ubuntu?

Modern hardware defaults to configurations optimized for Windows, which frequently conflict with Linux installations. Understanding these settings prevents boot failures and ensures proper hardware initialization during your Ubuntu Installation Guide for Beginners journey.

Disable Secure Boot or enroll MOK keys

Ubuntu 24.04 ships with signed shim loaders compatible with Microsoft's Secure Boot keys, so leaving Secure Boot enabled typically works. However, third-party kernel modules (NVIDIA drivers, ZFS, certain WiFi adapters) require Machine Owner Key enrollment. If you anticipate needing proprietary drivers, disable Secure Boot temporarily during installation and re-enable it afterward with proper key enrollment via mokutil.

Switch from RAID to AHCI mode

Many laptops ship with SATA controllers in Intel RST/RAID mode even when only one disk is present. Linux cannot access NVMe or SATA drives in this mode. Enter firmware setup (usually F2, F10, or DEL during POST), locate Storage Configuration, and switch to AHCI. Note: changing this setting may prevent an existing Windows installation from booting until you configure Windows Safe Mode to rebuild storage drivers.

Configure boot order and CSM/Legacy compatibility

Set USB as primary boot device. Disable CSM (Compatibility Support Module) unless you have specific legacy hardware requirements. Pure UEFI mode provides faster boot times, proper GPT support, and is mandatory for disks larger than 2TB. If dual-booting with an older Windows installation that uses MBR partitioning, you may need CSM enabled—but this is increasingly rare in 2026.

Physical Disk (/dev/nvme0n1)/boot/efiFAT32512 MBswaplinux-swapRAM × 1–1.5/ (root)ext4 / btrfs≥ 50 GB/homeext4 / btrfsRemaining space
Recommended partition layout for Ubuntu Installation Guide for Beginners with separate /home for safer upgrades

How should I partition my disk during Ubuntu installation?

Partition strategy depends entirely on whether you're deploying a desktop workstation, a development machine, or a production server. The Ubuntu Installation Guide for Beginners approach below balances safety, flexibility, and simplicity for most users.

Guided vs manual partitioning

For single-disk installations where no existing data needs preservation, "Guided - Use Entire Disk" with LVM is the safest choice. LVM enables online volume resizing, snapshots, and easier future expansion. Choose manual partitioning only when dual-booting, preserving existing data partitions, or implementing specific compliance-mandated layouts.

  • /boot/efi (512 MB, FAT32): Required for UEFI systems. Even if current firmware doesn't strictly require it, future bootloader updates and multi-OS scenarios depend on a properly sized EFI System Partition.
  • Swap (RAM × 1 to 1.5): With modern RAM capacities, swap serves primarily as hibernation backing store and emergency overflow. For servers with ≥32GB RAM, 8GB swap is usually sufficient. Use a swap file instead of a partition if you want resize flexibility.
  • / root (50–100 GB, ext4 or btrfs): Contains the operating system, applications, and logs. Btrfs offers transparent compression and snapshotting but adds complexity; ext4 remains the conservative default for production workloads.
  • /home (remaining space): Separating user data from the OS allows clean reinstalls and distribution upgrades without risking personal files. On servers, consider mounting network storage or encrypted volumes here instead.

Encryption considerations

Enable LUKS full-disk encryption during installation if the device contains sensitive data or leaves physical premises. Encryption protects against theft but adds ~5% I/O overhead and complicates recovery. Store the LUKS header backup and passphrase securely offline—losing both means permanent data loss. For Nepal-based teams handling financial or health data, encryption is effectively mandatory under emerging data protection frameworks discussed in our data protection basics for Nepal fintech article.

What post-installation steps make Ubuntu production-ready?

A fresh Ubuntu installation is functional but not secure or optimized. These steps transform a base install into a hardened, maintainable system aligned with professional DevOps standards.

Update packages and enable automatic security patches

sudo apt update && sudo apt full-upgrade -y
sudo apt install unattended-upgrades -y
sudo dpkg-reconfigure --priority=low unattended-upgrades

Automatic security updates are non-negotiable for internet-facing systems. Configure unattended-upgrades to install security patches daily and reboot automatically during maintenance windows if required by kernel updates.

Harden SSH and firewall

Disable password authentication, enforce key-based login, and restrict SSH access. Then configure UFW as documented in our detailed guide to configuring a firewall with UFW on Ubuntu:

# /etc/ssh/sshd_config.d/hardening.conf
PasswordAuthentication no
PermitRootLogin no
MaxAuthTries 3
ClientAliveInterval 300
ClientAliveCountMax 2

# Apply and verify
sudo systemctl restart sshd
sudo ufw default deny incoming
sudo ufw allow ssh
sudo ufw enable

Install essential observability and management tools

Every production system needs baseline monitoring and log management. Install fail2ban for brute-force protection, chrony for accurate time synchronization (critical for distributed systems and audit logs), and basic diagnostics:

sudo apt install fail2ban chrony htop iotop ncdu curl wget git -y
sudo systemctl enable --now fail2ban chrony
Post-Install TaskDesktop PriorityServer PriorityWhy It Matters
Security UpdatesCriticalCriticalPatches known CVEs within hours of release
SSH HardeningLowCriticalEliminates primary remote attack vector
UFW FirewallMediumCriticalDefault-deny reduces exposed services to zero
Fail2BanOptionalHighBlocks automated credential stuffing attacks
Time Sync (chrony)MediumCriticalPrevents log correlation failures and auth errors
Automated BackupsHighCriticalNo system survives without tested recovery paths
❌ Default Installation• Password SSH enabled• No firewall active• Root login permitted• Auto-updates disabled• No intrusion detection• Time sync unreliable• No backup configuredRisk: Compromise in days✅ Hardened System• Key-only SSH access• UFW default-deny active• Root login disabled• Daily security patches• Fail2Ban + audit logging• Chrony NTP synchronized• Automated offsite backupsResult: Audit-ready baseline
Ubuntu Installation Guide for Beginners — security posture comparison between default and hardened configurations

How do I troubleshoot common Ubuntu installation failures?

Even with careful preparation, installations sometimes fail. Recognizing patterns accelerates resolution dramatically.

"SquashFS error" or "Unable to find live filesystem"

This almost always indicates corrupted installation media. Re-verify the ISO checksum, recreate the bootable USB with a different tool, and test with another USB stick. Faulty RAM can also cause this—run memtest86+ from the GRUB menu before retrying.

Installer hangs at logo or black screen

Add nomodeset to kernel boot parameters by pressing 'e' at the GRUB menu and appending it to the linux line. This disables GPU acceleration during installation and resolves issues with NVIDIA and some AMD graphics. After installation, install proper proprietary drivers and remove the parameter.

Disk not detected or partition errors

Verify SATA mode is set to AHCI in firmware. For NVMe drives, ensure the kernel has loaded the nvme module (lspci -k | grep -i nvme). If dual-booting with Windows, disable Fast Startup in Windows Power Options—it locks NTFS partitions and prevents the Linux installer from accessing shared disks.

Network unavailable during installation

Some WiFi adapters lack open-source drivers included in the base ISO. Use wired Ethernet during installation, then install proprietary firmware packages (linux-firmware, vendor-specific DKMS modules) post-install. For servers, always use wired connections anyway—WiFi introduces unacceptable latency variance and security risks.

Next Steps After Your Ubuntu Installation

Completing this Ubuntu Installation Guide for Beginners gives you a functional operating system, but production readiness requires deliberate hardening and automation. Your immediate priorities should be enabling automatic security updates, configuring SSH key authentication, activating UFW with default-deny policies, and establishing verified backups before running any application workloads. For teams managing multiple servers, explore infrastructure-as-code approaches covered in our infrastructure as code with Terraform practical guide to eliminate manual configuration drift from day one. If you need hands-on assistance securing your new Ubuntu deployment or designing compliant infrastructure for regulated workloads, reach out directly to discuss your specific requirements.

Frequently Asked Questions

You need a 2 GHz dual-core processor, 4 GB RAM, and 25 GB storage for the desktop edition. Server installs run on less, but these specs ensure smooth performance for beginners following this Ubuntu Installation Guide for Beginners in 2026.

Yes.

Download Rufus or BalenaEtcher, select your Ubuntu 24.04 ISO, and flash it to an 8GB+ USB stick. Verify the checksum before writing to prevent corrupted installations that confuse beginners during their first setup attempt.

Normal includes office suites, media players, and games for immediate productivity. Minimal installs only core utilities, letting you customize later. Beginners usually prefer normal to avoid hunting for basic tools right after completing their Ubuntu installation.

Yes.

Use ext4 for root partitions as it offers the best balance of stability and performance for new users. Btrfs supports snapshots but adds complexity. Avoid XFS unless you have specific enterprise storage requirements beyond typical beginner workloads.

Connect via Ethernet first since some WiFi adapters lack open-source drivers in the installer. After installation, run sudo ubuntu-drivers autoinstall to fetch proprietary firmware. This common issue frustrates many following an Ubuntu Installation Guide for Beginners.

Yes, disable Fast Startup and BitLocker in Windows first. The Ubuntu installer detects Windows automatically and creates GRUB entries. Always back up critical data before resizing NTFS partitions to prevent accidental loss during dual-boot configuration.

Add nomodeset to kernel boot parameters by pressing e at the GRUB menu. This disables GPU acceleration temporarily, allowing installation with basic graphics. Post-install, update NVIDIA or AMD drivers to resolve display issues permanently.

Yes.

Expect fifteen to thirty minutes on NVMe SSDs with USB 3.0 media. Mechanical drives or USB 2.0 can extend this to forty-five minutes. Slow writes often indicate faulty media rather than system problems during beginner installations.

Execute sudo apt update && sudo apt full-upgrade to patch security vulnerabilities. Then install build-essential and curl for development tasks. These three steps harden your fresh system and prepare it for real work after any Ubuntu installation.

Compare SHA256 checksums using certutil -hashfile on Windows or sha256sum on Linux against official values from releases.ubuntu.com. Mismatched hashes indicate tampered or corrupted files that will fail verification or cause mysterious installation errors.

Select LVM with encryption during guided partitioning to enable full-disk LUKS encryption. You must enter the passphrase at every boot. Back up the recovery key separately since losing it means permanent data loss without recovery options.

Check /var/log/installer/syslog on the live USB terminal for error codes. Search Ask Ubuntu with exact messages. The official Ubuntu Discourse forum also provides vetted solutions specifically tailored for newcomers troubleshooting failed installations.