Want to use Linux but can’t fully abandon the Windows ship? Here’s how to dual boot on Ubuntu Linux and Windows 10 in your modern machine with two disk drives (C:\ and D:\). Before you go ahead and tinker with your devices, it is always a good idea to create recovery drives and backups. Here are some of the things that you should consider before doing the next steps.
If you have successfully considered and made your backups, we can now proceed with preparing our machines for the dual boot. We’ll have to change some settings in BIOS and in Windows Advanced Power Options. You can access the BIOS by pressing a key combination during bootup repeatedly. Mine is “F2” but the hotkey depends on the manufacturer of your PC.
Windows Fast boot (Fast Startup) is different from the BIOS Fast boot option. This too should be disabled to avoid problems during bootup. You can access this option in Advanced Power Options in Windows 8/10. Here’s a guide on how to disable it. If so happens you cannot see the Fast Startup option and wanted to make sure that it is off, you can disable the hibernate file via Command Prompt. This will subsequently disable Fast Startup as it uses the same hibernate file for its operations. To do this, Click start > Type CMD > right-click on Command Prompt > Run as AdministratorThen type the following: powercfg -h offThese are all the platform preparation pre-requisites that you need if you are to use the entire second hard disk (D:\) for Ubuntu. However, if you are planning to put it in a partition on the second driver (D:\), you need to perform additional steps below. powercfg -h -offWe need to prepare the partition first before running the installation. We must shrink and create an unallocated space on the second drive for our partition. To do this, Open Disk Management > Right click the second disk drive > ShrinkYou can put your desired “Shrink space” in the next window that will appear. Unallocated space in Disk 1 (second disk drive) to be used for Ubuntu installation Cannot shrink free space due to fragmentation issuesIf for some reason you cannot shrink the disk space further, you need to do a disk defragmentation first before doing the shrinking. I highly recommend to use either Defraggler or PerfectDisk for this task instead of the default built in Windows defragmenter. PerfectDiskAfter defragmenting the system files found in the second disk drive (boot-up defrag) together with defraging non-system files, you can now proceed to shrink the free space in the second disk drive. Now its time to prepare the installation media that we are going to use to install Ubuntu. To do this you need the following:
We’ll be using Rufus to create the bootable media. To do this, Open Rufus > Select Device / Drive > Select ISO > Set Partition scheme to MBR and Target system to BIOS or UEFI > StartThis will create the bootable media in your thumb drive using the ISO provided. For reference here is what I used in my thumb drive. Rufus settingsThis can be achieved by changing the boot order in your machine’s BIOS. This differs per manufacturer to its best consult your product manual on how to do this. Follow on screen instructions to install Ubuntu. If you want to put Ubuntu in a partition on the second disk drive, best create your own partitions just like below. Otherwise, you can use the whole second disk drive for Ubuntu installation. In my case, I partitioned the second disk drive to two since I plan to put Ubuntu on and it functions as my data repository. Using the Ubuntu setup partition tool, I divided my second hard disk as follows: NVME (main disk drive - SSD) <- Windows OS SDA (second disk drive) /sda1/ <- This is where my data are located. This is in NTFS /sda2/ <- this is where Ubuntu will reside - Formatted this in ext4 and mount as "/"Install the Grub bootloaded to /sda/ (not /sda1/ or /sda2/). Installing in /sda/ will avoid overwriting the default Windows bootloader located in the first disk drive. Don’t worry about putting the bootloader in the second hard disk. Grub bootloader is intelligent enough to pick up other resident OS so you won’t have any problems booting to Windows afterwards And last but not the least, finish installing Ubuntu. Afterwards you can reboot and you will be greeted by Grub bootloader with entries automatically populated to include your Windows 10 installation. Cheers!
I have a UEFI-based system. I want to have a Windows–Fedora dual-boot configuration such that both systems are isolated from each other. Here is what I mean by the term isolation:
For this, I have thought of a solution after following this guide:
This should work for most systems that use UEFI and which have two HDD. Specification used for the tutorial below: Dell Inspiron E5440:
A) UEFI/BIOS
B) Advanced Power Options (Fastboot) Disable fastboot in Windows 8/10 under "advanced power options". Restart computer to ensure that this subsequent boot and the next reboot/shutdown will be in "normal" mode.
C) Rufus / Bootable USB stick Use Rufus to create a bootable USB stick with your choice of Ubuntu based distro. Make sure in Rufus that you CHOOSE the option UEFI/GPT only. This ensures the Linux environment boots only into UEFI mode during your install. D) Boot Menu Reboot your computer and press key for one time boot menu (Dell is typically F12). Select your USB stick from the boot options.
E) Boot into USB Stick Boot into Linux live environment and begin install. F) Installation type When you get to the installation option, choose "Something else" at the bottom of the Ubiquity installer. G) Create partitions Find your secondary HDD that you will be installing Linux to. In my case it was listed as /dev/sdc (with /dev/sda being the windows drive and /dev/sdb the USB drive [which was invisible in the installer]). So basically: +--------------+--------+---------------------------+--------------------------------+ | Device path | Device | Operating System (OS) | Visible in Ubiquity installer? | +--------------+--------+---------------------------+--------------------------------+ | /dev/sda | HDD | Windows 10 | yes | | /dev/sdb | USB | Ubuntu 16.04 (Live Stick) | no | | /dev/sdc | HDD | None | yes | +--------------+--------+---------------------------+--------------------------------+
H) Boot loader Device
I) Installation & Reboot
J) Upon reboot After UEFI/BIOS reads the new bootloader entry that Linux has added to it, you will be presented with the grub menu with a listing of your Linux distro as well as a listing to boot Windows 10.
What you have done: You have installed the Linux EFI bootloader to the newly created EFI partition. In the process of this, Linux has added an entry to your UEFI listings in your systems UEFI/BIOS. Linux has also automatically detected your Windows 10 install and added a grub menu item to boot it. Your computer at this point will now automatically boot to Linux unless you choose to boot to Windows (from the Grub menu). What you have not done: You have not in any way altered your Windows 10 install or its bootloader or even so much as touched the Windows 10 EFI partition. Everything is reversible simply by removing the Linux UEFI listing from your UEFI/BIOS settings. How to do so varies from each vendor. |