How to Dual Boot Linux and Windows on One Computer
How to dual boot Linux and Windows starts with safe drive prep. Shrink Windows, install Linux from USB, check Secure Boot, and set GRUB boot order.

tl;dr the short answer
Dual booting means installing Linux alongside Windows on one computer and choosing which system starts when you turn it on. Back up your files, check that both systems use the same firmware mode, prepare Windows and free disk space, then install Linux into the unallocated space without overwriting Windows. A boot menu lets you keep Windows-only apps while using Linux on the same machine, but careful partitioning and testing both systems help prevent data loss and startup problems.
Ever wanted a Linux desktop built exactly how you like it, but still need Windows for one game or work app? That’s where dual booting comes in: you install Linux alongside Windows on the same computer, then pick which one to start each time you power on.
This guide walks you through every step in order, from preparing Windows and shrinking your drive to making a bootable flash drive and setting up the boot menu.
We’ll flag the common failure points that trip people up, plus the Linux-side details most guides skip, like Secure Boot and shared drives.
How to Dual Boot Linux and Windows
Running a dual boot means Windows and Linux share one computer, and you choose which one to start each time you power on. The steps below run in order, and each one heads off a common failure you’d rather not meet halfway through.
Back up your data first
Before you change any partitions, make a full backup of your files. A partition is a section of your drive, and resizing one is exactly where things go sideways. A wrong click during setup can overwrite Windows, and everything on it goes with it.
Treat this as a hard rule against data loss: no backup, no partition changes.
Consider a student riding a ten-year-old ThinkPad who wants to try Linux without giving up Windows. Their thesis lives on the same drive.
An afternoon spent copying it to an external drive means a bad install can’t cost them the whole semester. Don’t skip it.
Check your UEFI or Legacy BIOS mode
Your computer’s firmware, the low-level software that starts the machine, comes in two types. UEFI (Unified Extensible Firmware Interface) is the modern standard, while Legacy BIOS (Basic Input/Output System) is the older one.
To check yours, open the System Information app in Windows and look for the BIOS Mode entry.
Check this before you partition anything. Both systems need to match, because a mismatch breaks OS visibility and the other system may not show up in your boot menu. Ever rebooted after installing Linux and found Windows missing?
A mode mismatch is the first thing to check.
If your Windows install runs on Legacy BIOS, you may need to reinstall Windows before going further. It’s better to learn that now than halfway through the install.
What hardware and software you need
Gather these before you start:
- Windows 10 or 11, already installed on the machine
- A USB (universal serial bus) drive of 4 to 8 gigabytes or larger, to hold the Linux installer
- An internet connection, to download the Linux distribution you choose
- Enough free disk space for the Linux system you’re adding
Nothing here is exotic. If Windows is running and a spare stick is sitting in a drawer, you’re most of the way there.
Picking a Linux distro for you
A distro (short for distribution) is a complete Linux system with its own installer and default apps. Ubuntu is the most popular pick, while Linux Mint or Fedora are good for beginners.
Pick by desktop environment, not popularity alone. Your desktop environment is the layer that draws your panels, menus, and windows, and it’s what you’ll stare at every day.
Prefer LTS (long-term support) releases when you can. They’re built to stay supported longer, which makes them a safer base for a daily driver. Whichever distro you pick, install Windows first and add Linux beside it.
Reasons to run both systems
Dual booting makes the most sense when you still need Windows for some things. Some programs simply don’t have a Linux version, and that’s a fine reason to keep Windows around. If you no longer need Windows for anything, a full switch from Windows to Linux is the other route.
Picture a ricer who builds a hyprland desktop on weekdays but needs a Windows-only budgeting app every spring. With dual boot, they keep the rice they love and skip buying a second computer.
Some Windows software also has a Linux alternative, so check before you assume you need Windows at all. Flexibility is the real payoff.
It’s less about replacing Windows and more about choosing the right system for each job. One machine, the right tool every time.

Get Windows Ready for Linux
Before you shrink a partition, Windows needs a few settings changed so it can share the disk with Linux. Work through them in order, starting with the ones that protect your data.
Turn off Fast Startup in Windows
Fast Startup speeds up boot, but it can leave the file system in a state Linux shouldn’t write to, which causes conflicts. Open Power Options in Control Panel, choose what the power buttons do, and untick it.
Consider a hyprland user who keeps a Windows gaming partition beside their Arch install. With Fast Startup off, Windows shuts down fully, and the Linux side never trips over a half-saved drive. You want Windows fully shut down, not just looking off.
Turn off BitLocker safely
BitLocker encrypts your Windows drive, and turning it off first keeps you from getting locked out of your own files. Save your recovery key before anything else, somewhere outside the machine like a password manager or a printout.
Then turn BitLocker off from the Start menu and let decryption finish.
Don’t skip the key. It’s your way back in if something goes wrong.
Changing Secure Boot in firmware
Secure Boot is a firmware feature that only starts bootloaders it trusts.
It’s mainly found on newer machines, and its setting lives in your BIOS/UEFI firmware (short for Basic Input/Output System and Unified Extensible Firmware Interface), the menu that runs before Windows does.
A signed shim, a small bootloader that Secure Boot already trusts, works with it, so you may not need to turn it off.
- Enter firmware setup. Press the manufacturer-specific key during startup. It varies by brand, so check your vendor’s docs or the boot screen.
- Change Secure Boot only if it blocks you. Keep it on when your signed shim works.
A few more Windows settings
Set the clock to UTC (Coordinated Universal Time) through the registry so Windows and Linux agree on the time. Then enable non-PIN login options (PIN means personal identification number) so you’re not locked into a PIN alone.
Small settings, fewer surprises.
Making Room on Your Drive
Before you touch a partition, you’ll need free space to hand over to Linux. Here’s how to carve it out safely, plus the decisions to make first.
Shrinking your Windows partition
Work through these steps in order:
- Open Disk Management.
- Right-click C: and select Shrink Volume.
- Enter the amount to shrink in MB.
When it finishes, you’ll see unallocated space: an empty chunk of the drive that no partition owns yet. That’s the room your Linux installer will claim.
Deciding how much space to give Linux
Aim for recommended rather than minimum. The minimum is the least Linux needs to install and run, while the recommended size leaves room for updates, packages, and your dotfiles.
Keep in mind that Windows can’t see Linux partitions, so anything you give Linux is off-limits to Windows. If you need files on both sides, set aside a shared data partition that both systems can reach.
If you’re unsure, splitting the free space roughly in half is a sensible default. Take a hyprland user who wants a clean Linux install for daily work and Windows for one app that won’t run on it.
That even split gives her bar, launcher, and dotfiles room to survive updates.
Need to resize later? GParted Live, a bootable version of the GParted partition editor, can adjust partitions from outside your installed systems.
Defragment the drive for more space
Defragmenting tidies up where files sit on the drive, which can free up more shrinkable space. It’s an optional step. Skip it if the shrink already gives you enough room.
Make a Bootable Linux USB Drive
Your Linux installer lives on a USB stick, so this is where we’ll start the dual-boot project.
Download the Linux ISO file
An ISO is a single file that holds the whole installer. Grab yours from the distro’s official website, not a repackaged copy. Pick an LTS (long-term support) release for stability rather than novelty, since it gets updates for longer.
Once the download finishes, verify it. Compare the file’s checksum (a short fingerprint of its contents) against the value the site publishes. Picture a student riding a ten-year-old ThinkPad who grabs the ISO over campus Wi-Fi.
That quick check catches a corrupted file now, not halfway through the install. Don’t skip it.

Copying the ISO onto your USB
Rufus is the common tool on Windows, and balenaEtcher is a solid alternative. The steps below follow Rufus:
- Plug in your USB stick and open Rufus.
- Select the device and the ISO file.
- When asked how to write the image, choose ISO image mode.
- Set the partition scheme to GPT, the layout modern PCs expect.
- Start the write and wait for it to finish.
Get those settings right and the stick boots straight into the installer.
Mistakes to avoid when writing
A few slips here can cost you real files:
- Back up the USB first. Writing the ISO erases everything on the stick, so you’ll want to move anything you need off it.
- Pick the correct drive. An external disk can show up in the same list as your stick. Check the size and label before you click start.
- Run the tool as administrator. Right-click it and choose Run as administrator so it has permission to write to the drive.
Starting up from the USB Drive
Your computer has to start from the USB (universal serial bus) drive first. Here’s how we get there, and how to try Linux before you commit to an install.
Open the boot menu on startup
Most machines offer a boot menu, a list of drives to start from. There are a few ways in:
- Shift plus Restart in Windows: hold Shift while clicking Restart, then pick the option to use a device.
- Use a device option: choose your USB drive from the list.
- Boot menu keys like F12: tap the key as the machine powers on.
You can also change the boot order in the BIOS (the firmware that runs before your operating system loads). Move the USB drive to the top.
A boot menu choice is one-time, but a BIOS change is lasting, so reset the order once you’re done or the USB keeps booting first.
Trying Linux before you install
A live USB lets you run Linux straight from the stick without installing anything. Picture a hyprland user on a ten-year-old ThinkPad who wants to know if the Wi-Fi card works before wiping a partition. They boot the live session, then test:
- Wi-Fi
- audio
- Bluetooth
Discovering a problem now beats discovering it mid-install.
A live session runs from RAM (your computer’s short-term memory), so nothing you try is written to your disk. Reboot, and your changes vanish.
Boot keys that vary by brand
Not every machine uses F12. The key depends on the manufacturer, and Acer laptops have their own F12 steps, so check those if you own one. When in doubt, Google your BIOS key: search your exact manufacturer and model along with the words “boot menu key.”
A minute of searching beats guessing mid-boot.
Installing Linux Next to Windows
This is where the disk actually changes, so read each screen. A few choices here decide whether Windows still boots tomorrow.
Settings to choose in the installer
The installer asks a few basics first. Set them now so you don’t have to dig back through menus later.
- Language and keyboard layout. Pick the layout that matches your keyboard, or your password may fail.
- Third-party software and updates. Choose whether the installer fetches updates and extra software during setup.
- Normal or minimal install. A normal install includes everyday apps. A minimal install gives you a bare system, which suits ricers who want to pick every tool themselves.
- Time zone and user creation. Set your time zone, then create your user and a password you’ll remember.
Picture a student with an old ThinkPad who needs Linux for one class project. They match the keyboard layout to the laptop, so the password they set late at night still works the next morning.
Install alongside Windows automatically
Dual booting means one machine can start either system. Pick Install alongside Windows Boot Manager when it appears, and let the installer handle the layout.
- Install alongside Windows Boot Manager. This keeps Windows and adds Linux beside it.
- Slider to split space. Drag it to set how much free space each system gets, then double-check the numbers.
- Other options may erase disk. Some options wipe the whole disk, Windows included. Choose one that installs alongside Windows instead.
- Optional disk encryption. It scrambles your files so they need a passphrase to open. It’s optional, but remember that passphrase, since losing it can lock you out of your own files.

Manual setup using Something Else
Choose Something Else to build the partitions yourself. It takes longer, but every partition is one you picked.
- Select free space. Click the free space you set aside, and leave the Windows partitions alone.
- Root partition with ext4. This partition holds the whole system. Format it as ext4, a dependable filesystem.
- Optional swap area. Swap gives the system overflow room when memory runs short. Skip it if you don’t need it.
- Mount point and format. The mount point is the folder where the partition appears. Set it to
/for root, and choose to format. Formatting wipes the partition, while the mount point only decides where it shows up.
Where to put the bootloader
The bootloader is the small program that asks which system to start when you power on. Install it to the whole drive, not to a partition. Typically that’s /dev/sda, but check the installer’s list, since your machine may name its disks differently.
Wrapping up the install
Once the install finishes, you’re nearly there.
- Restart after install. Choose restart when the installer offers it.
- Remove USB when prompted. Pull the stick when asked, so the machine boots from the disk.
- Installer warnings expected. Some warnings are normal, so read them and keep going. Don’t panic.
Setting the GRUB Menu and Boot Order
Once both systems are installed, we need a way to pick between them at startup. GRUB, the boot menu Linux installs, handles that, and its order decides what you see first.
Picking Linux or Windows at GRUB
The menu should list Linux and Windows as separate entries. Use the arrow keys and Enter to choose one. The Windows option is labeled Windows Boot Manager, so don’t let the name throw you.
Consider a student on a ten-year-old ThinkPad who needs Windows for one lab app. They pick it from the menu in seconds.
To change the order itself, open the UEFI (Unified Extensible Firmware Interface) setup screen at startup, using the key your board’s splash screen shows. A menu pick applies to this boot only, while a firmware change sticks until you undo it.
Making Linux the first boot choice
To make GRUB load every time, move it to the top of the boot order:
- Open the UEFI setup screen and find the boot order list.
- Set the GRUB entry, usually named after your distro, as the first option.
- Save and exit the setup screen.
With GRUB first, the menu appears on every boot, so you still get to pick Windows from it. Windows updates can sometimes reset the boot order, so recheck it if GRUB vanishes.
Restoring a missing Windows entry
If Windows is missing, GRUB hasn’t found it yet. Rebuild the menu:
- Run os-prober (
sudo os-prober) to scan your drives for other systems. - Open
/etc/default/grubwith sudo and setGRUB_TIMEOUT, the seconds the menu waits before booting on its own. - Run
sudo update-grubto write the changes into the menu.
Then reboot and check the menu. That’s the whole fix.
Check that both systems start
Test each one after any change:
- Boot Linux desktop: choose Linux and confirm your desktop loads.
- Reboot into Windows: restart, pick Windows, and confirm you reach its login screen.
- Default entry after timeout: let the timer run out. GRUB boots its default, which you can change with
GRUB_DEFAULT(then runsudo update-grubagain).
Once both systems boot cleanly, theming GRUB is a fun next step for ricers. Do it last, so a broken theme can’t lock you out.
When you retire Linux, restore Windows Boot Manager at the top of the boot order before deleting the Linux partitions, or your firmware may keep pointing at a menu that no longer exists.
You’ve now covered the full path: prepare Windows, make room on your drive, build a bootable flash drive, install Linux, and set your boot menu so the right system starts every time.
Secure Boot and shared-drive handling are the details that keep it all running smoothly, and a few post-install tweaks make the desktop feel like home.
Take it one step at a time, and you’ll end up with a machine that runs both systems and still looks unmistakably like yours.


