Dual Boot MX Linux and Windows
Dual Boot MX Linux and Windows
Dual Boot is also know as 'Install alongside Windows Boot Manager' in other distributions.
Windows MUST be installed in UEFI Mode and not in MBR aka Legacy aka CSM.1
Dual Booting is an option for intermediate to advanced PC users to keep an existing Windows 10/11
installation to use along with MX Linux with both OS having full access to all resources.
It is likely that 1/3 or more of this guide will not be used by most people. A lot of the added fine detail
in certain areas is solely for edge cases related to a difficult make or model.
1 MBR2GPT.EXE converts a disk from the Master Boot Record (MBR) to the GUID Partition Table (GPT) partition style
without modifying or deleting data on the disk. More https://learn.microsoft.com/en-us/windows/deployment/mbr-to-gpt
2 https://www.howtogeek.com/56958/htg-explains-how-uefi-will-replace-the-bios/
1
1.8 MX Linux disk space requirement
MX requires a minimum of 6 Gb free space with 20 Gb recommended disk space. MX 23 KDE edition
installed weighs in at around 11 Gb.
So, how much disk space is enough? MX Linux comes with many of the most commonly used
programs already preinstalled. A lot of additional programs may take an addition 5 Gb to 10 Gb with
some of the large program suites (Programming IDE, Steam, Video Editing, etc) each individually
taking 10 Gb or more.
Its highly recommended keeping the Home directory in MX Linux on a separate partition can improve
the reliability and ease of subsequent upgrades. This also makes backing up and recovery easier..
Selecting 'Preserve /home' for the Root partition during the MX Linux installation preserves the
contents of the /home directory while deleting everything else of the previously installed OS. The
'Preserve /home' option can only be used when /home is on the same hard drive partition as the root /
partition.
3 WiFi connects and gives internet, bluetooth works, monitor can be setup, etc.
2
2.0 How-To steps summary
What follows are summaries of how-to steps for the two most likely installation scenarios.
4 Do this by taking a portion of what was ‘shrunk’ from your windows C: drive. A File System of exfat is suggested over
NTFS. Also add a Label:
3
2.2 TWO hard disk drives How-to
Do NOT install the 2nd hard disk drive at first. Follow steps!
▪ Create the / root and ESP partitions for MX Linux on 2nd drive.
• Create data sharing 'MyData' partition. Section 1.9
4
3.0 Preparing Windows for Dual Booting
Label 'Windows Recovery USB' and then store this USB in a safe place.
NOTE: The presence and contents of the MSDM ACPI table before installing Windows can
vary depending on the system and BIOS manufacturer. It’s not a guaranteed presence or
format across all systems.
Another place the Windows key will be found is in the owner's Microsoft online profile.
Backup these keys in some place (phone, printout, MS Account) other than the PC!
BitLocker must be Disabled before doing any Hard Drive reconfiguration tasks.
• Windows 11 Home & Pro – BitLocker is enabled and should be disabled.
• Windows 10 – at the time of writing has BitLocker is not enabled.
Notes: there are TWO Recovery Keys... First one is for your Device. The 2nd one is for the locked
hard disk. Chose the second one if the hard disk is BitLocked. The TPM must be enabled during
5
these steps!
1. Left click the start button and type 'CMD' in the search box.
2. Right-click the search result 'Run as Admin'.
3. Type 'manage-bde -off C:' and press enter.
Once completed you will receive a summary of your hard drive health. In rare cases where a
lot of errors are found and corrected it is recommended to run a second scan.
6
2. Left click the C drive.
3. Right click the C drive click and select 'Properties'.
4. In the pop-up click the 'Tools' tab.
5. Click on 'Optimize' in the 'Optimize and defragment drive' section.
6. In the pop-up click 'Optimize'.
Right click on the Windows Start Menu and select 'Disk Management'.
Above is a single hard drive PC. Disk 0 shows: 100 MB (EFI) and 49.39 GB (C:) drive (highlighted ////). Also
shown is the right-click menu content.
7
To do the resizing
3.72 Creating the free space for MX Linux – all on one disk
NOTE: If encryption is being setup a separate / and a 1 Gb /boot partition (ext4) is required.
• Right click in the newly created free space (black bar with ‘Unallocated’ showing)
• Click 'New Simple Volume'.
• Click 'Next' and 'Next'.
• Select 'Basic Volume'.
• As the wizard run skip assigning a drive letter.
Give it a Label and leave 'Format this volume…' selected.
8
Example below:
Make note of the size shown and volume Label of this new partition.
You will use it to identify the drive where you will install MX Linux later.
• Click 'Finish'.
9
4.0 PC Firmware (BIOS) changes to allow Dual Boot
A few settings in this section are unlocked/made visible in the 'advanced mode' (MSI & others).
Windows 11
1. Click Start Button and click the Settings (gear) icon.
2. type in search 'UEFI'.
3. Click on 'Change advanced startup options'.
4. Under ‘Advanced startup’ click 'Restart now' and again ‘Restart now’.
The PC will restart in UEFI mode.
5. Click 'Troubleshoot' and then 'Advanced options'.
6. Click 'UEFI Firmware Settings' and then click 'Restart'.
This forces the PC into ‘UEFI Only’ Boot Mode. If this is left ON it can cause several boot up
problems. The white text below is highlighted indicating a menu will come up if you press enter.
6 https://ubuntuforums.org/showthread.php?t=2297947&p=13369742#post13369742
10
In a few rare cases CSM/Legacy/BIOS needs to be turned off in TWO places: 'Boot Mode' (default)
and 'Boot fallback' aka LEGACY+UEFI. Dell refers to Advanced Boot Options.
11
Boot Mode Select – MSI
[LEGACY+UEFI] is the default. Enables both Legacy BIOS boot mode and UEFI BIOS boot mode.
This used to allow boot when UEFI boot fails. Turn Off – set to UEFI [only].
This may need to Disabled / turned Off to resume showing the Grub Boot menu at bootup.
When left enabled the entry in the UEFI Boot Order may be forced/locked to the top when
‘Windows WHQL Support’ is Enabled. (Windows Hardware Quality Labs aka WHQL).
7 https://learn.microsoft.com/en-us/windows-hardware/design/device-experiences/oem-highly-secure-11
8 https://download.lenovo.com/pccbbs/mobiles_pdf/Enable_Secure_Boot_for_Linux_Secured-core_PCs.pdf
12
Below shows a Dell Dimension 9200 PC that has Boot From USB set to 'No Boot' aka disabled. Many
PCs have ‘USB Booting’ disabled by default as a security measure.
With Fast Boot enabled: Boot from Network, Optical WiFi and secondary USB outlets may be
disabled. So, they may not be available until an Operating System fully loads.
These settings may have several functional levels or just on/off. Often seen: Minimal (often the
default), Thorough (the system does not skip any steps in the boot process), and Auto.
NOTE: Set Fast Boot to 'OFF' / 'Disabled' or 'Thorough' if 'OFF' is NOT an option.
Above shows the hardware boot order one might see for installation. Hard Drive MUST be on
top after MX Linux is installed. Note: BIOS specific help screen: place 'Removable Devices'
above the 'Hard Drive'. On a UEFI PC the hard drives would be listed individually to be
selected. Sometimes listed as 'UEFI Hard Drive BBS Priority'.9
13
Boot Sequence (UEFI) - Allows you to change the order in which the computer attempts to find an
operating system. The options are: Windows Boot Manager or Boot List Option-UEFI – the latter is
what we want!10
The PC going back to old setup after reboot is a sign that these setting exists…may be a similar
name that is not above.
Exit the Firmware settings and select 'Save Changes and Restart'.
10 Some motherboards will maintain in NVRAM a separate UEFI boot order list PER DRIVE. (MSI)
14
4.8 SATA Controller Mode - Changing from RAID/RSTe to AHCI
NOTE:
• You cannot change out of RAID if your system has Intel Optane Memory in use.
• It is required to disable Optane to change the SATA mode from Raid (RSTe) to AHCI. 11
• On some motherboards these settings may be under 'Advanced Windows OS configuration.'
Disabling Intel Optane Memory (Dell)
• On the taskbar, click the search box.
• Type Intel Rapid Storage Technology.
• Click Intel Rapid Storage Technology.
• On the Intel Optane Memory tab, click Disable to disable the Intel Optane Memory.
The MX Linux Installer program may not see SSD Hard Drives if the motherboard Firmware has the
SATA Controller 'Mode' set to 'RAID' mode or 'RST' mode (aka IRST/RST/Optane). The PCs
motherboard SATA Controller’s Mode must be set to 'AHCI' Mode.
Windows most likely was installed when the SATA controller mode was set to RAID. Changes must
be made before changing the controller's mode to AHCI.
Also Know As – Intel Volume Management Device. This was the original. Above are many captures
of brand specific ‘marketing spins’ of the VMD feature used by many manufacturers.
15
Using MSConfig to Change Windows SATA Controller to AHCI mode
• Click 'Run as Administrator'.Select the 'Boot' tab and check 'Safe boot'.
• Reboot PC.
• Enter the firmware and change the SATA Controller 'Mode' from 'RAID/RST' to 'AHCI'.
• Save changes and exit. Windows will boot into Safe Mode again.
16
5.0 Installing MX Linux on the new partition
Rufus
Rufus will change the 'Partition scheme' to GPT and the 'Target system' automatically to 'UEFI (non
CSM)' based on what type of ISO is detected.
balena Etcher
Etcher has detected a USB is present (Lexar USB…SB Device) as shown in the center.
Choose 'Flash from file' and select the MX Linux ISO from where it was downloaded.
13 How to Burn an ISO File to a USB Drive - The free Rufus tool can be used to 'burn' an ISO image to a USB flash
drive. https://www.lifewire.com/how-to-burn-an-iso-file-to-a-usb-drive-2619270
17
Click 'Flash!'.
Note: Etcher makes the USB as a universal drive that should universally boot.
UNetbootin
You should insert the USB drive prior to opening UNetbootin.
Ventoy
See https://www.ventoy.net/en/doc_linux_gui.html
18
5.1 Booting and installing MX Linux
Insert the LiveMedium USB in the fastest available USB port (blue) and restart the PC.
After the PC powers on tap the ESC, F9 or F12 key to bring up the Boot Menu.
Alternately on some PCs you may need to instead use the F2, F8, F10 or F9 key.
Some PCs may offer TWO options to boot; if offered always take the one labeled UEFI
19
5.3 EFI System Partition
This partition is also known as the ESP, short for 'EFI System Partition'. Modern PCs use an
Extensible Firmware Interface (EFI) Boot Loader as a part of UEFI Boot.
The ESP partition is required to be formatted with a FAT32 file system AND marked as an ESP
partition with the ESP flags set in the MX installer. This also sets a boot flag (that is not displayed).
Windows 11 requires a minimum of 100 Mb for the EFI, Windows 10 the minimum is 50 Mb.
How do I know this? The Format column shows 'FAT32' for sda1.
Note in the above example the 'Format' column says GPT for 'Device' sda.
5.3.2 How to tell the MX Linux Installer where to place it's EFI data.
The next step after 'Customize the disk layout' is 'Choose partitions'. Do the following:
• Left click to choose your EFI partition. Above it has in the 'Format' column 'FAT32'.
• Click the 'Use For' on the FAT32 partition.
• Use the down arrow pull-down to select 'ESP'.
• When this is done the MX Linux Installer will change the 'Format' to 'Preserve (FAT32)'. This is
to ensure that the Windows EFI data is kept.
20
21
5.5 Dual Hard Disk considerations
This is done for resiliency to lessen the chances of a Windows Update obliterating the MX Linux
bootup info. By dual it means multiple disks drives, IE one for MX Linux and one for Windows.
You create a second EFI partition (FAT32 100 Mb) on the second drive (not two on the same drive).
Some people advocate delaying installing the 2nd hard drive until just before you install MX Linux.
Notes:
• There are two ESP partitions; MX-ESP and Win ESP.
• The Windows Labels (Win C, reserved & Recovery) were added; usually blank.
• An optional DualData partition exists for data sharing between Windows and MX Linux.
22
5.4 MyData partition setup
The previous steps in making the MyData partition adds a bookmark in Thunar. Use Disk Manager to
ensure it continues to appear by checking 'Enable' next to it and then 'Quit'.
23
6.0 Troubleshooting and common issues
Also see MX Linux 23 User Manual - Troubleshooting, section 2.6
6.3 Incorrect Windows Time In Dual Boot and turn on Time Sync
Windows assumes Local Time and Linux expects UTC. Making Linux use local time the same way
Windows does is a good option. Do ONE of these two ways to address the difference.
1) LINUX: Change the time setting for Linux: https://mxlinux.org/wiki/help-files/date-time/
2) WINDOWS: perform the following steps (may cause issues with some 3rd party apps):
• Open Regedit on Windows and navigate to:
• HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation\.
• Right-click the “TimeZoneInformation” key.
• Select "New" => DWORD (32-bit) Value. (or QWORD on 64-bit systems).
• Name your new value RealTimeIsUniversal.
• Double-click the RealTimeIsUniversal value you've just created, set its value to 1.
• Click “OK” to exit Regedit.
Right click time.
Left click Adjust date/time.
Turn OFF 'Set Time Automatically'.
24
6.4 Grub Boot Menu disappears
The 'Windows Features Update' many times [often bi-annually] will insert itself as the first entry in
your PC Motherboard’s UEFI firmware listings. This will cause the PC to boot directly into Windows
with no MX Linux Grub Boot Menu being presented to you.
First, check if the Grub Menu entry is present in your PC’s Motherboard UEFI list is still present in the
one time boot menu (F9 or F12).
Reboot the PC with the MX Linux USB and run MX Boot Options. Click 'Manage UEFI Boot Options'.
If the Grub Menu entry is there move it to the top with move up. Reboot.
OS Boot Manager – HP
This HP firmware places an entry 'OS Boot Manager' within hardware 'UEFI Boot Order' entries.
This, when navigated to via arrow becomes highlighted (white below). Press enter to see the
selections in the sub-menu it presents.
In the example below 'ubuntu' is the Linux entry to be selected; 'Windows Boot Manager' was
selected initially on entry to this sub-menu.
Arrow to the correct item then press enter to accept your choice.
BitLocker Drive Encryption and Secure Boot require a TPM. TPM is a local database store of security
keys and digital certificates. Sometimes the TPM is bundled in a different name implying security.
This varies by PC brand and year.
Do NOT disable the TPM as some guides found on the internet suggest!
25
Table of Contents
1.0 Introduction and the why questions answered........................................................................1
1.1 UEFI is the BIOS v2 for PCs................................................................................................... 1
1.2 Secure Boot considerations....................................................................................................1
1.3 BitLocker considerations......................................................................................................... 1
1.6 Highly recommended to add a second hard disk drive............................................................1
1.7 Windows 10 & 11 disk space requirement.............................................................................. 1
1.8 MX Linux disk space requirement...........................................................................................2
1.9 Data Sharing area between Windows & Linux........................................................................2
1.10 Home Drive considerations................................................................................................... 2
1.11 BEFORE You Start Installing MX Linux................................................................................. 2
2.0 How-To steps summary.......................................................................................................... 3
2.1 All on a single hard disk How-to..............................................................................................3
2.2 TWO hard disk drives How-to................................................................................................. 4
3.0 Preparing Windows for Dual Booting...................................................................................... 5
3.1 Back up important user data to free up space.........................................................................5
3.2 Create a Recovery USB Drive for Windows............................................................................5
3.3 Backup your Windows License Key........................................................................................5
3.4 Disable BitLocker.................................................................................................................... 5
3.41 Procedure to locate the BitLocker Keys............................................................................ 6
3.42 Procedure to disable BitLocker.........................................................................................6
3.5 Check Hard Drive for surface errors........................................................................................6
3.6 Defragmenting the Hard Drive.................................................................................................6
3.7 Freeing space for Linux on the Windows Drive C...................................................................7
3.71 Shrinking the C drive......................................................................................................... 7
3.72 Creating the free space for MX Linux – all on one disk.....................................................8
3.8 Turn off Windows Fast Startup................................................................................................ 9
4.0 PC Firmware (BIOS) changes to allow Dual Boot.................................................................10
Set the Admin/Supervisor Password.......................................................................................10
4.1 Accessing your PC’s Firmware............................................................................................. 10
Windows 11............................................................................................................................. 10
Windows 10 and Windows 8...................................................................................................10
4.2 Turn off CSM/Legacy/BIOS Boot........................................................................................... 10
4.3 Turn off Secure Boot............................................................................................................. 12
4.4 USB Configuration/USB Emulation.......................................................................................12
4.5 Turn off Fast Boot (aka Quick Boot)......................................................................................13
4.6 Reset Boot Order/Priority/Boot Sequence.............................................................................13
4.7 Enable the F12/ESC/F9 Boot Override Menu.......................................................................14
4.8 SATA Controller Mode - Changing from RAID/RSTe to AHCI...............................................15
5.0 Installing MX Linux on the new partition................................................................................ 17
5.0.1 Make the MX Linux USB.................................................................................................... 17
Rufus....................................................................................................................................... 17
balena Etcher.......................................................................................................................... 17
UNetbootin.............................................................................................................................. 18
Ventoy..................................................................................................................................... 18
5.1 Booting and installing MX Linux............................................................................................19
5.2 Root partition selection.......................................................................................................... 19
5.3 EFI System Partition.............................................................................................................. 20
26
5.3.1 Choosing the EFI location.................................................................................................. 20
5.3.2 How to tell the MX Linux Installer where to place it's EFI data...........................................20
5.5 Dual Hard Disk considerations..............................................................................................22
An example of how to configure Dual Boot with two hard disks..............................................22
5.4 MyData partition setup..........................................................................................................23
6.0 Troubleshooting and common issues....................................................................................24
6.1 No operating System found!.................................................................................................. 24
6.2 Black or blank screen............................................................................................................24
6.3 Incorrect Windows Time In Dual Boot and turn on Time Sync..............................................24
6.4 Grub Boot Menu disappears................................................................................................. 25
OS Boot Manager – HP..........................................................................................................25
6.5 TPM aka Trusted Platform Module........................................................................................25
6.6 Security Certificates..............................................................................................................25
27