Linux installation means replacing or sharing your hard drive with a new operating system

Installing Linux means putting a new operating system on your computer — either replacing Windows or macOS entirely, or setting up a separate partition so both systems live on the same machine. The process itself is straightforward: you create installation media (usually a USB drive), boot your computer from that drive, and follow the installer's prompts. The real decision comes before you start: which Linux version to use, whether to wipe your existing system, and whether your hardware will work with it.

Most people install Linux in one of three ways. Full replacement means erasing your current operating system and using only Linux — fastest and simplest, but you lose Windows or macOS. Dual boot means partitioning your drive so both systems coexist; you choose which one to load when you start the computer. Virtual machine means running Linux as a program inside your existing system — no risk, but slower performance. This guide covers full replacement and dual boot, since those are the most common.

Key Takeaways

  • You need a USB drive with at least 4 GB of space, a computer that can boot from USB, and a Linux installer image (usually downloaded free from the project's website).
  • Full replacement is simpler but erases your existing system; dual boot requires partitioning your drive and takes longer to set up.
  • Before you start, back up any files you want to keep, check that your hardware (especially graphics cards and wifi) has Linux drivers, and decide whether you want to keep your current system.
  • The installer walks you through disk setup, user account creation, and timezone selection; most installations finish in 15 to 30 minutes.
  • After installation, you may need to install additional drivers or software depending on your hardware and what you plan to use the computer for.

Choosing a Linux version before you start

Linux itself is free software that many organizations have packaged into complete systems called distributions. Ubuntu, Fedora, Linux Mint, and Debian are the most common for beginners. Each one includes the Linux kernel plus a desktop environment (the visual interface), a package manager (software installer), and pre-installed programs. The differences matter less than you might think — all of them can do the same core tasks, but they differ in how often they release updates, which software comes pre-installed, and how the installer works.

Ubuntu is the most widely used and has the most online help available. Fedora updates more frequently and includes newer software, which means more features but sometimes more bugs. Linux Mint is designed to feel familiar to Windows users. Debian is older and more conservative — updates are slower but the system is very stable. For a first installation, Ubuntu or Linux Mint are the safest choices because their installers are the most straightforward and you will find answers to almost any problem online.

Download your chosen distribution from its official website — Ubuntu from ubuntu.com, Fedora from fedoraproject.org, Linux Mint from linuxmint.com, Debian from debian.org. You will download an ISO file, which is a complete image of the installation disc. Save it somewhere you can find it again.

Creating a bootable USB drive

You need a USB drive with at least 4 GB of space (8 GB is safer). The drive will be erased, so move any files off it first. Then you need software to write the ISO file onto the USB drive — this is different from just copying the file. The most common tool is Balena Etcher, which works on Windows, macOS, and Linux. Download it from balena.io/etcher, install it, and run it.

Open Balena Etcher. Click "Select image" and choose the ISO file you downloaded. Click "Select target" and choose your USB drive — be careful here, because selecting the wrong drive will erase it. Click "Flash" and wait for the process to finish (usually 5 to 10 minutes). When it is done, safely eject the USB drive from your computer.

On Windows, you can also use Rufus (rufus.ie), which works similarly. On macOS, Etcher is the standard choice. All three tools do the same thing: they write the ISO file to the USB drive in a way that makes the computer treat it as a bootable installation disc.

Backing up your files and checking your hardware

Before you insert the USB drive and start the installer, back up anything you want to keep. If you are doing a full replacement, everything on your drive will be erased. If you are doing a dual boot, the installer will ask you to choose how much space to give Linux, but mistakes happen — back up anyway. Copy important files to an external drive, cloud storage, or another computer.

Check whether your hardware will work with Linux. Graphics cards, wifi adapters, and some printers sometimes need special drivers that may not come pre-installed. Visit your computer's manufacturer website and note the exact model of your graphics card and wifi adapter. Then search "[your graphics card model] Linux driver" and "[your wifi adapter model] Linux driver" to see whether drivers exist. Most modern hardware works out of the box, but older or very new equipment sometimes does not. If you find that drivers do not exist, you can still install Linux, but that hardware may not work until you find a workaround.

If your computer uses Secure Boot (a security feature that prevents unauthorized software from loading), you may need to disable it in the BIOS before Linux will install. You will see a message during boot if this is the case. The process varies by computer manufacturer, but usually involves restarting, pressing a key like F2 or Delete during startup, and looking for a "Secure Boot" setting to turn off.

Installing Linux with full replacement

Insert the USB drive and restart your computer. As it boots, watch for a message saying "Press [key] to enter boot menu" or "Press [key] to choose boot device" — the key varies by manufacturer (often F12, F2, Esc, or Del). Press that key and select your USB drive from the list. The computer will boot from the USB drive instead of your hard drive.

The Linux installer will start. You will see a welcome screen with language options and a button to begin installation. Click through the initial screens to choose your language and timezone. When you reach the disk setup screen, you will see your hard drive listed. Select it and choose "Erase disk and install Linux" or similar wording. The installer will warn you that this will erase everything — this is the point of no return. If you are certain, confirm and continue.

The installer will ask you to create a user account. Enter a username and password — this is what you will use to log in after installation. Choose a strong password (at least 12 characters, mixing letters, numbers, and symbols). The installer may also ask whether you want automatic updates; most beginners should say yes. Then the installer will write Linux to your drive, which takes 10 to 30 minutes depending on your computer's speed. When it finishes, restart the computer and remove the USB drive.

Installing Linux alongside Windows or macOS (dual boot)

Dual boot is more complex because you need to shrink your existing partition to make room for Linux without erasing Windows or macOS. Before you start, use your current operating system's disk management tool to shrink your main partition. On Windows, right-click "This PC" or "My Computer", choose "Manage", then "Disk Management". Right-click your main drive (usually C:), choose "Shrink Volume", and enter how much space to free up — 50 GB is a reasonable starting point for Linux. On macOS, open Disk Utility, select your drive, and click "Partition" to resize it.

After shrinking, insert the USB drive and boot from it as described above. When you reach the disk setup screen, choose "Install Linux alongside [your existing system]" or "Manual partitioning". If you choose manual partitioning, the installer will show you your existing partition and the free space you created. Create a new partition in the free space and tell the installer to install Linux there. This is where mistakes are most likely — if you are unsure, choose the automatic option instead.

Complete the rest of the installation as normal. When it finishes and you restart, your computer will show a boot menu (usually called GRUB) that lets you choose Windows, macOS, or Linux each time you start. You can only run one system at a time, but both will remain on your drive.

What to do after installation

When you log in for the first time, Linux will likely offer to install updates. Let it do this — it usually takes 10 to 20 minutes and fixes security issues. After that, open the software manager (called "Ubuntu Software", "GNOME Software", or "Discover" depending on your distribution) and search for programs you need. Most common software has a Linux version: Firefox and Chrome for web browsing, LibreOffice for documents, GIMP for image editing, VLC for video.

If your wifi or graphics card did not work during installation, you may need to install drivers manually. Open a terminal (search for "Terminal" in the application menu) and search for "[your hardware] Linux driver" plus your distribution name. Most drivers come as packages you can install through the terminal using commands like sudo apt install [package name] on Ubuntu or Debian, or sudo dnf install [package name] on Fedora. If you are not comfortable with the terminal, many distributions have graphical driver managers in their settings.

Frequently Asked Questions

Can I undo the installation and go back to Windows or macOS?

If you did a full replacement, you would need to reinstall Windows or macOS from scratch using installation media from Microsoft or Apple — your original system is gone. If you did a dual boot, your original system is still there; you can delete the Linux partition and reclaim that space using disk management tools. Either way, this is why backing up first matters.

What if my computer will not boot from the USB drive?

Check that the USB drive was written correctly using Balena Etcher or Rufus. Restart the computer and watch carefully for the boot menu prompt — you may have only a few seconds to press the key. If your computer has Secure Boot enabled, you may need to disable it in the BIOS first. If you are still stuck, search "[your computer model] boot from USB" for specific instructions.

Do I need to pay for Linux?

No. Linux and all major distributions are free. You do not need a license key or subscription. Some companies sell support services for Linux, but the software itself costs nothing.

Will my programs from Windows or macOS work on Linux?

Most will not run directly. However, most common tasks have Linux equivalents — Microsoft Office has LibreOffice, Photoshop has GIMP, and so on. Some Windows programs can run on Linux using compatibility layers like Wine, but this is more advanced and not always reliable. Check whether the specific programs you need have Linux versions before you commit to installing.

How much disk space does Linux need?

Linux itself takes about 10 to 20 GB depending on the distribution and what you pre-install. For comfortable everyday use, plan for at least 50 GB. If you are doing dual boot, allocate whatever space you do not need for your existing system.