Although Windows is the dominant operating system on the market, Linux is slowly but surely growing in popularity, and Ubuntu is one of the most interesting Linux distributions.
If you want to learn more about the differences between the two operating systems, check out our Windows 11 vs. Ubuntu article for an in-depth comparison.
As for this guide, we will show you how to dual-boot Windows 11 and Ubuntu using both operating systems side by side.
What are the hardware requirements for Ubuntu?
-
CPU: 2GHz or higher
-
Memory: 4GB or more
-
Storage: 25GB or more
-
Graphics Card: Graphics card with at least 256MB of RAM
As you can see, compared to Windows 11 requirements , Ubuntu's hardware requirements are relatively modest, and some distros can run on PCs below these requirements.
How to dual-boot Windows 11 and Ubuntu?
Dual booting is the most feasible way to have two operating systems that you intend to use regularly, and can be done in a variety of ways.
If you already have Windows 11 installed on your computer, like most users, follow these steps. Sometimes the opposite is true and you can also install Windows 11 after Ubuntu.
Installing Ubuntu after Windows 11
1. Create a dedicated Ubuntu partition
- Open"Disk Management". You can do this by pressing and selecting Disk Management from the list. Windows KeyX
- Now, you need to select the drive that you want to shrink. Choose one with at least 50GB of free space, but you may need more if you plan to use Ubuntu extensively.
- Right-click on the desired drive and select "Shrink Volume" from the context menu.
- Enter the amount of space you want to shrink (in MB) set to 50000 or more and click Shrink.
- Next, click on the unallocated space you just created and select New Simple Volume.
- Set the simple volume size (in MB) to the maximum value and click Next.
- Finally, set the desired drive letter and label and click Finish when finished.
You can also try Paragon Partition Manager, which is more efficient and has additional features that are useful for properly formatting partitioned drives.
2. Download the Ubuntu ISO and create a bootable flash drive
- Visit the Ubuntu download page and click the "Download" button Download the ISO file.
- Wait for the download to complete.
- Connect the USB flash drive to the computer. You will need 4GB or larger.
- Download Rufus and run it.
- Select your flash drive in the device list.
- Click the Select button and find your Ubuntu ISO file.
- Click "Start" to start the process.
- You will be asked to format the drive, so click "OK" to continue.
Wait for the process to complete. After creating the Ubuntu Live drive, you can install Ubuntu.
3. Select Ubuntu Drive and Install Ubuntu
- Make sure the Ubuntu flash drive is connected to your PC.
- When the computer starts, press and hold , or access the boot menu and select the USB drive. The key may vary depending on the motherboard. F2F10F12
- If you cannot open the boot menu, access the BIOS and set the flash drive to One starts the device and saves the changes.
- When your PC boots from the flash drive, select the option to Install Ubuntu.
- Select the language and keyboard layout you want to use.
- Then, select Normal installation and click Continue. You can also use a minimal installation and download the necessary updates later.
- SelectOther content.
- Next, select the partition you created for Ubuntu and format it with the ext4 file system.
- Click Install now.
- Select your location.
- Enter your Ubuntu login details and click Continue.
- Wait for the installation to complete.
- Click the Restart Now button.
#Once you've done this, you just need to choose the operating system you want to boot into. As you can see, dual-booting Windows 11 and Ubuntu is easy, especially if you already have Windows installed.
Installing Windows 11 after Ubuntu
1. Create a dedicated window partition
- Open a terminal and enter the following command:
<strong>sudo apt install gparted</strong>
- Press Y to continue.
- Now open GParted.
- Find the partition to be shrunk. Keep in mind that you cannot shrink an Ubuntu partition while Ubuntu is running. If you want to do this, you'll need to use an Ubuntu flash drive.
- Right-click the partition and select Uninstall.
- After unmounting the partition, click Resize/Move.
- Set the new size to 50000 or larger and click Resize/Move.
- Click the Apply icon in the toolbar to save changes.
- Unallocated space will now be displayed. Right-click it and select New.
- Set the file system to ntfs and set the maximum size of the partition. Now click Add.
- Click the Apply icon to save changes.
- Finally, find the partition you unmounted, right-click on it and select Mount.
- Go to the Microsoft download page.
- Select the version of Windows 10 you want to download.
- Select a language and make sure the 64-bit version is selected.
- Download the ISO file.
- Connect the USB flash drive to the computer. You'll need an 8GB drive, but a larger drive may be better.
- Open GParted and select your USB flash drive from the top right corner. It should be named /dev/sdb.
- If any partition has a key icon next to its name, right-click on them and select Uninstall.
- Right-click on the partition and select Format.
- Set the partition size to the maximum value and set the file system to ntfs or exfat.
- Click Apply in the toolbar to save changes.
- Locate the Windows 10 ISO file, right-click it and select Open with, then select Disk Image Mounter.
- Open the mounted ISO file.
- Select all files and copy them.
- Move to your USB flash drive and paste the file there.
We discovered that not all users have the option to mount ISO files in the context menu. If this is the case, do the following:
- Open Terminal.
- Now run the following command:
<strong>sudo mkdir /mnt/windows10/<br>sudo mount -t auto -o loop /path/to/window-10-iso /mnt /windows10/</strong>
- Once you have done this, you should be able to do this by going to
<strong>/mnt/windows10/</strong>
Note that we are using the Windows 10 ISO because the Windows 11 ISO is not officially available for download yet.
3. Boot from the flash drive and install Windows 10
- Enter the BIOS and go to the Security section. Disable Secure Boot.
- Save changes and exit BIOS.
- Press the dedicated key to open the boot menu and select your flash drive. If you don't know the key, you can set the USB flash drive as the first boot device.
- When booting from the flash drive, select the desired language time format.
- Select the version to install and accept the terms of service.
- Then, select "Customize: Install Windows Only (Advanced) ".
- It is very important to choose a partition specifically for Windows. If you choose the wrong partition, you will lose your files permanently.
- The installation will now begin. Wait while Windows is installing.
- After the installation is complete, your PC will restart.
4. Join the Windows Insider Program and upgrade to Windows 11
- Open the Settings app and go toUpdate and Security" section.
- In the left pane, select Windows Insider Program. Now click on the Get Started button in the right pane.
- Click "LinkAccount" and select your Microsoft account.
- Select "Development Channel" and click "Confirm".
- Accept the privacy statement and click Restart Now.
- After joining the Windows Insider Program, return to the Settings app.
- Go to the "Update & Security" section and click the "Check for Updates" button.
- Windows will now automatically download Windows 11 updates.
- After downloading the update, restart your computer to install it.
Fix Grub
Many users have reported that if you dual-boot Windows 11 and Ubuntu, the latter is not available from the boot menu at all. To fix this issue, you just need to do the following:
- Press the boot menu key and select Ubuntu from the list.
- Make sure you are connected to the internet.
- Open Terminal and run the following command:
<strong>sudo add-apt-repository ppa:yannubuntu/boot-repair<br>sudo apt-get update<br>sudo apt-get install -y boot-repair && boot-repair</strong>
- After installing boot-repair, type boot-repair in the terminal to start it.
- Select Suggested Fixes.
- After the repair is completed, check if the problem still exists.
Alternatively, you can solve this problem by doing the following:
- Boot into Ubuntu, as we showed you in the previous section.
- Open Terminal and run the following command:
<strong>sudo update-grub2</strong>
- After the process is completed, return to the BIOS.
- Go to the boot section and set Ubuntu as the first boot device.
Windows will always replace your bootloader, especially if you installed it after Ubuntu or any version of Linux, but hopefully this method will help you resolve the issue yourself.
To learn more, check out our guide on how to fix Windows 10 and Ubuntu dual-boot issues.
Note If you cannot access Ubuntu from the boot menu, please execute these commands in the Ubuntu Live environment. Just boot from your Ubuntu flash drive and follow the steps above.
Does Ubuntu support secure boot?
Secure Boot is a technology that verifies the code that a firmware starts with to prevent rootkits. Many Linux distributions do not support Secure Boot, so if you want to install them, you will need to disable Secure Boot first.
Expert Tips:
Sponsored
Some PC problems are difficult to solve, especially when they involve a corrupted repository or When losing Windows files. If you are having trouble fixing errors, your system may be partially corrupted.
We recommend installing Restoro, a tool that will scan your machine and determine what the fault is.
Click here to download and start repairing.
Ubuntu has been compatible with Secure Boot since version 12.10, and it should work on most PCs with Secure Boot enabled.
However, only the first stage EFI boot loader is signed by Microsoft, which may cause some boot issues on some PCs. If this occurs, Secure Boot must be disabled from the BIOS.
What are the disadvantages of dual boot?
Regarding the disadvantages, dual booting requires a lot of space on your PC, especially if you plan to use both operating systems regularly and install various software on them.
This isn't a problem with larger hard drives, but if you're low on storage, you may want to free up some space or consider upgrading your storage.
Another disadvantage of dual boot is multitasking. When using dual boot, there is no quick and easy way to boot into another operating system.
Instead, you need to restart your PC and select the operating system you want to access. Remember, you have to do this every time you want to switch to another operating system.
This isn't a major problem, but it can get tedious at times, especially if you frequently use both operating systems at the same time.
Finally, booting issues can occur, but this mostly happens when installing Windows after Ubuntu or any other version of Linux.
Which Ubuntu distributions can I dual-boot in Windows 11?
Ubuntu has 8 different official distributions, they are: Kubuntu, Lubuntu, Ubuntu Budgie, Ubuntu Kylin, Ubuntu MATE, Ubuntu Server and Ubuntu StudioXubuntu.
As for third-party distributions, there are about 40, if not more. Regarding popularity, these are the 3 most popular Ubuntu-based distributions:
- Linux Mint
- Bang! _OS
- Base Operating System
All Ubuntu distributions can dual-boot with Windows 11 without any major issues, and installing them in dual-boot mode works for all distributions are similar.
The only problem that may occur is if you have Secure Boot enabled and are trying to install an older version of Ubuntu, but this can be easily fixed.
If you want to dual-boot Windows 11 and Ubuntu, follow the instructions in our guide. However, since Windows 11 has not been officially released yet, you need to dual-boot Ubuntu with Windows 10 before upgrading to Windows 11.
The situation is no different if you want to dual-boot Windows 11 and Windows 7. Create a separate partition for other operating systems and follow our detailed process.
The above is the detailed content of How to Dual Boot Windows 11 and Ubuntu [Both Directions]. For more information, please follow other related articles on the PHP Chinese website!