Due to the ongoing popularity of Windows based operating systems, and the increasing interest in various versions of Linux operating systems, some users might find it useful to have a system that is able to boot two different operating systems on the same storage drive.
There are two ways to do the dual-boot installation depending on which OS the user would like to install first. With either operating system first, the user will need to partition an empty disk to leave space for the other OS to be installed later.
Preparations before installing new OS:
- Create Windows installation media
- Linux installation media
- Back up important files. Accidently deleting the wrong partition can result in the permanent deletion of stored data.
Windows – Creating Partitions
Section 1 and 2 will provide instructions on how to set up dual boot on a blank drive with a Windows operating system installed first. If Windows is already installed on the system, skip to Step 4 of this section.
- Step 1: In the Windows setup process, there is a step where the user selects which disk or disk partition to install the OS on. Select the unallocated space on the drive and click “New” and enter in the desired partition size. Once finished, click “Next”.
- Step 2: Click “OK” on the pop-up.
- Step 3: Select the newly created Primary Partition, then click “Next” to continue with the Windows installation as normal. Once Windows is finished installing, the system can be shutdown for the Linux installation (See Section 2).
- Step 4: Alternatively, if Windows is already installed on the system, right click on the start icon and select “Disk Management”.
- Step 5: The Disk Management utility enables the user to view and manage the disk drives.
- Step 6: Right click on volume C: and select “Shrink Volume”. Do not edit the EFI or Recovery partitions. Editing the EFI partition may prevent Windows from being able to boot.
- Step 7: Enter the amount of space to free for the second operating system in MB and hit “Shrink”.
- Step 8: Verify the newly created unallocated space once the shrinking is complete.
- Step 9: Shutdown the system.
Linux Installation in Windows-created Partition
This section will use Red Hat Enterprise Linux 8.6 as an example. There are many other Linux distributions available online.
- Step 1: Insert Linux boot key into the system, power the system on, and press F12 when the splash screen appears to open the Boot Menu. Select the Linux bootable media from the list.
- Step 2: Select “Install Red Hat Enterprise Linux” and press enter.
- Step 3: Further in the installation process, select “Installation Destination”.
- Step 5: Select the device on where to install the operating system and select “Custom” under Storage Configuration. Click “Done” to proceed. Some Linux distributions may have an option to install alongside Windows Boot Manager. If an option like this is present, select it and skip to Step 9.
- Step 6: Under Manual Partitioning section select “Click here to create them automatically”. This action will use the free unallocated space on the drive and assign it for Linux. Existing partitions for Windows are under the “Unknown” collapsible and should not be edited.
- Step 7: You can view the automatically created disk partitions inside the new operating system. Click “Done” once done viewing.
- Step 8: Verify the summary of changes and select “Accept Changes”.
- Step 9: Continue with the rest of the installation, following along with the proper whitepaper.
- Step 10: Allow the OS to finish installing and restart the system. Skip to Section 4 for instructions on how to choose which OS to boot into on startup.
Dual Boot Starting with Linux – Creating Partitions
If Linux is already installed on the system, its partitions can be resized using the trial mode from USB stick. The partition cannot be shrunk from within the OS unlike Windows because Linux is currently “running” those partitions, so they cannot edited.
- Step 1: Insert Linux boot key into the system, power the system on, and press F12 when the Lenovo splash screen appears to open the Boot Menu. Select the Linux bootable media from the list.
- Step 2: Select “Try or Install Ubuntu” and press enter. Other Linux distros should have a similar option as this, but those that do not should have an option to immediately begin the install process.
- Step 3: The system will now begin to load a test version of the OS.
- Step 5: Once the installation is continued, once at the “Installation Type” screen, select “Something else”. For more in-depth instructions on the installation, see the Linux Installation whitepapers.
- Step 4: Once loaded, the resolution and scaling of the OS may appear lower than expected due to a lack of proper graphics drivers, but this will not affect the installation process. From here there are a couple of options to choose from. The OS installation process can continue immediately by selecting “Install Ubuntu”, or the OS can be trialed first with the installation coming later.
- Step 6: Double-click on the Free Space of the storage drive to create a new partition. This can also be done by clicking the “+” button.
- Step 7: Fill out the fields as shown to create the /boot partition by selecting Ext4 file system. The partition size needed may vary depending on hardware or user preference.
- Step 8: Create another partition for “swap area”. Make sure to change the partition type to “Logical”. The partition size needed may vary depending on hardware or user preference. It should be set higher if the system will use hibernation.
- Step 9: Create another partition for root “/”. This partition will contain most OS files and user storage. A separate “\home” partition can be created to independently hold user files separate from system files, though this is optional. Generally this partition should be at least 10-20 GB, depending on hardware or user preference.
- Step 10: Lastly, create an EFI partition. This will be used to load the OS. The partition size needed may vary depending on hardware or user preference.
- Step 11: Click “Install Now” and review all the changes made, then click “Continue”.
- Step 12: Complete the rest of the installation process, following guidance from the Linux Installation whitepapers. Once finished, restart the system and begin the Windows installation. See the Windows Installation whitepaper for more details.
- Step 13: Arriving at the step to select where to install Windows, select the unallocated space leftover after the Linux install process.