[root tip] Dual boot Manjaro and Windows

Difficulty: ★★☆☆☆

Dual boot - Step by Step


  • Target systems
  • Firmware
    • Checklist
  • Windows preparation
  • Manjaro installation
  • Revisions

Target systems UEFI


Computers with preinstalled Windows (Windows 10) is computers using UEFI firmware. This guide is a generic guide targeted at UEFI installations.

However some of the guide does apply even if you are using a BIOS/MBR setup.

If you are using a BIOS/MBR (DOS) partition schema watch out for this :information_source: Skip if using BIOS/MBR

To ensure a successful dual-boot installation using Windows and Manjaro there are a few steps to be taken.

Installation type

:exclamation: DO NOT mix UEFI with MBR partition scheme.

Always check your Windows root filesystem using fdisk on the live ISO. If the output contains Disklabel type: dos :warning: do not install as EFI.

Windows may be installed in different ways which can affect the system various ways. The first clue you get using the fdisk command from the live ISO.

Windows 7 only supported DOS MBR partitions schema even the system did support EFI. Manjaro supports both GPT and DOS partitioning and it is very easy to start the Manjaro installer in EFI mode on a system supporting it.

To ensure a successful dual-boot on Windows 7 systems you must disable EFI in the firmware.

Example for Windows 7 Home Premium 64bit in a VBoxVM

The disklabel type is dos which tells us this is a MBR partition and thus the system is booting from BIOS.

[manjaro manjaro]# sudo fdisk -l
...
Disklabel type: dos
Disk identifier: 0x9ab5fdd2
...
Device     Boot  Start      End  Sectors  Size Id Type
/dev/sda1  *      2048   206847   204800  100M  7 HPFS/NTFS/exFAT
/dev/sda2       206848 67106815 66899968 31.9G  7 HPFS/NTFS/exFAT

Firmware


The firmware is a crucial part of your system as it controls aspects on how the Linux kernel will interact with your the hardware. Some system firmware is setup in such a way that a Linux system does not recognize disk devices.

Firmware checklist for BIOS systems

  • :white_small_square: Use latest available firmware
  • :white_small_square: Disable EFI
  • :white_small_square: Disable RAID option
  • :white_small_square: Enable AHCI

Firmware checklist for EFI Systems

  • :white_small_square: Use latest available firmware
  • :white_small_square: Disable Optane Memory and Rapid Storage Technology (RST)
  • :white_small_square: Disable RAID option
  • :white_small_square: Enable AHCI
  • :white_small_square: Disable Secure Boot
  • :white_small_square: Disable Fast Boot
  • :white_small_square: Disable CSM (Legacy/MBR) boot

Some systems require the user to set a firmware password before more advanced options becomes available.

Intel Optane Memory and Intel Rapid Storage Technology

Is Linux supported when using Intel® Optane™ memory for system acceleration?*

No, the accelerated SATA drive must be running Windows 10 64-bit to use the Intel® Rapid Storage Technology (Intel® RST) driver software. This enables the supported/validated method of using the Intel® Optane™ memory for acceleration of the most commonly used data. Using the device with other software for caching is is not supported or validated. - Frequently Asked Questions for Intel® Optane™ Memory

BitLocker

:warning: BitLocker encryption is not compatible with a Manjaro Linux installation.

Without any prior knowledge or hands-on experience with BitLocker - we have enough evidence to discourage dual booting a BitLocker environment.

One possible reason a BitLocker environment won’t boot could be that Secure Boot has to be disabled for the system to be able to boot Manjaro Linux.

If you depend on BitLocker - e.g. corporate requirement - don’t install Manjaro as you will have to disable BitLocker to be able to use both systems.

General Windows preparation


Filesystem check

Linux is picky when it comes the Windows filesystem. Any inconsistencies in the filesystem and Linux will mount the filesystem read-only. The Windows command to fix the file system is

chkdsk c: /F

System clock

Configure your Windows installation to use UTC.

Backup your documents

You can skip this but it is not recommended.
Backup any data you might want to keep to an external location of any kind.

Partition cleanup

If you have experimented a lot and/or had a failed installation and/or you have a messy partition scheme you will have to manually delete those extra partitions with the Windows Disk Manager tool. Be careful that you do not delete partitions required by Windows or by an OEM recovery tool.

Disk space

Use Windows disk tool to make room for a secondary Linux installation because Windows is the best tool to release space.

  1. So boot into Windows.
  2. Rightclick on Start → select Disk Manager
  3. In Disk Manager - rightclick on your Windows drive C: → select Shrink partition
  4. A reasonable size to release - depending on available space - would be 32768-65536 MiB (32-64GiB) or more.
  5. When you are ready click Shrink

When you are done you are ready for the Manjaro installation.

Clean your Windows system

If you are like most users, your system came with Windows and your system has since been upgraded to Windows 10 (which leaves the old system behind). Major version upgrades - like 1804 - also leaves the old system behind and therefore a tremendous amount of dead data on your system that needs to be cleaned.

  1. Open Windows Explorer File manager and select My Computer.
  2. Right click on you local drive C:Properties
  3. Click on Disk Cleanup button → wait
  4. Click on the Cleanup Systemfiles → wait
  5. check all items in the list (including the old Windows installation) → OK
  6. Wait → wait until finished.
  7. Close all windows

Windows 10 preparation


:information_source: Skip if using BIOS/MBR

Disable Windows features

Do you plan on doing read/write on your Windows partition? Disable Windows options like

  • Fast Startup
  • Hybrid Sleep

Windows Hybrid Sleep defaults to enabled on desktop computers and disabled for laptop computers.

Why should I do that? When Windows uses the above options it leaves the file system in a dirty state. When the file system is in this state the Linux filesystem tool ntfs-3g mounts the file system read-only, effectively blocking you from making changes to your files on the Windows partition. To disable Windows Fast Startup you need to access the Windows Control Panel. You find it by clicking on Windows Start button → type control → select Control Panel desktop app.

In the Control Panel app

  1. Click on System and Security
  2. Click on Power Options
  3. Click on Choose what power buttons do
    a. Click on Change settings that are currently unavailable
    b. Uncheck the option Turn on fast startup
  4. Click on Save Changes

If for any reason you want to turn off hibernation completely

  • Open command prompt as Administrator
  • Input powercfg /h off and press Enter

Installation considerations


Some of the choices presented here can be argued and the following two points I would like to address beforehand.

Auto partitioning vs Manual partitioning

Some will argue that one should select the auto partition in the Disk preparation section of the installer.

The strategy described here ensures no messing with the Windows EFI partition and therefore no problems with Windows removing the Manjaro boot loader.

Separate root and /home

Separation of the system root and the home folder is not required but is another benefit of using manual partitioning.

The separation of your personal data from the system - using a designated partition for the system’s home folder makes it a bit easier to maintain your system. It is no secure replacement for a backup strategy it is just a handy solution should you decide to reinstall your system.

One pitfall here is making the root partition too small - using the recommended minimum size requires you to do regular system maintenance to avoid the system disk running full and thus making your system very hard to boot.

Depending on your available disk space your system root could be from 20-64GiB. The remaining is assigned to your personal data.

Swap size

Setting a swap partition is the better choice because a little swap is - in most cases - better than none.

The chosen size depends on your system, available RAM and disk type. Use the suggested size of 2 GiB or research and adjust accordingly to system, taste and need.

If you plan on using hibernation ensure the swap can hold system and graphics memory.

Manjaro installation


Now that you have partition sizes defined let start and the numbers are MB which is the unit Calamares makes use of

  1. Reboot your computer to the live USB media.
  2. Launch the graphical installer - it is named Calamares.
  3. Follow the guide until you reach the Disk selection/preparation
  4. Select Manual partitioningNext.
  5. Select the correct disk selected - should be easy to see.
  6. EFI PARTITION
    :information_source: Skip if using BIOS/MBR
    Select the unpartitioned space → Create
    a. Size → input 512
    b. Filesystem → select FAT32
    c. Mountpoint → select /boot/efi
    d. Flags → check bootOK
  7. SWAP PARTITION
    Select the unpartitioned space → Create
    a. Size → input 2048
    b. Filesystem → select linuxswapOK
  8. ROOT PARTITION
    Select the unpartitioned space → Create
    a. Size → input 20480 (min. recommended size)
    b. Filesystem → select ext4
    c. Mountpoint → select / (root) → OK
  9. HOME PARTITION
    Select the unpartitioned space → Create
    a. Size → Use remaining
    b. Filesystem → select ext4
    c. Mountpoint → select /homeOK

:information_source: Skip if using BIOS/MBR

  • Continue with the guide and when finished do not reboot.
  • Open a terminal
  • Input efibootmgrEnter
  • Verify the BootOrder - you should have a manjaro entry and the corresponding number should be first in the BootOrder

Before you reboot


:information_source: Skip if using BIOS/MBR

Oh No - It boots directly to Windows - What do I do?

:information_source: Skip if using BIOS/MBR

Just boot to Windows.

Bootloader repairs


If that not do the trick then @gohlip has a goldmine of tips to get grub bootloader right.

Revisions


  • Discourage dual-boot BitLocker enabled (2020-11-20)
  • Revision for Windows 7 (2020-11-10)
  • Revision for Calamares 3.2.22.r7667
  • Major revision (2020-03-13)
  • Initial guide July 2018
17 Likes
Dualboot Problem Windows + Manjaro
Manjaro failed to boot in UEFI mode
Dual boot issue
Manjaro KDE installation
Cannot boot Manjaro installation on Asus Laptop
Want to install Manjaro alongside Windows, installation fails every time
Non-partition dual boot installation questions
No grub after manjaro install with Win10
Problem in dual booting [solved] Installation FailedThe installer failed to create partition on disk 'STxxxxxxxxxxxxxxxMBB'
Instalacion KDE en UEFI con Win10 en portatil HP, grub no aparece
Dual Boot Separate Drives
Dualboot not working, cannot access BIOS, Stuck in grub rescue
No partitions detected
Flashing iso to usb
Can’t see new M.2 SSD
Dual Boot Issue (Grub Menu Only Appearing From Bios and not Automatically)
Is this dual boot method correct?
Installation on Presario CQ58
Which method for dual boot on UEFI system?
Help with dual boot, Windows 10 inaccessible boot device windows
Latest Manjaro release fails to create ext4 partition
Installation on SSD + HDD Setup
Manjaro not detecting my harddisk
Permission to Manjaro
Clock is off by one hour in new install - how to fix?
Manjaro Installation Error
How to repair Windows installation
Installing Manjaro to External HDD
No puedo instalar Manjaro junto a Windows 10 (no efi)
Impossible installation on HP 455 G7, AMD Renoir 4500u
Dual boot on separate ssd amd read from the windows drive
"install alongside" dropped or it's my hardware?
Failed to create partition
Failed to create partition
Installing Manjaro next to Mint and Windows 10
CAN'T UPDATE: Conflict between nvidia-450xx-utils and nvidia-440xx-utils
Booting live ISO HP hangs
GRUB Not Showing Windows 10
Windows and Linux quick dualboot Prep

This worked for me.

sudo grub-install

after that I was able to go into the bios and select manjaro as the default efi boot device.

5 posts were split to a new topic: Can I use Linux partition (/home) from Windows

A post was split to a new topic: How can I install Windows after Manjaro

Why? Because it doesn’t work on Linux?

It is not supported at all on Linux - but if enabled - at least to my knowledge it will create problems - but I have not been able to verify - so kind of - better safe than sorry.

1 Like

A post was merged into an existing topic: Unable to locate Local disk D drive

3 posts were split to a new topic: How do I setup dual-boot with windows 7

This looks very useful, but I’m a bit stuck on the “Firmware checklist for EFI Systems” section. There are a number of directives there but no directions as to how they may be accomplished. I have a brand new Acer Spin 5 laptop. Looking in the BIOS I see that RAID is disabled, but Optane Memory is not. Searching for information about Optane Memory I find what appears to be an authoritative reference -

But this looks like a major low level intervention to me. I’m pausing at this point.

The implication of all this appears to me to be that I cannot just wipe the SDD drive and load linux, because there would be some kind of memory access problem. Has dual booting, or loading a straight Linux system really become this difficult?

Something to do with CTRL+S in BIOS. Read these comments on Acer community:

Thanks for the speedy response! I’ll jump on it very soon. Looks promising.

This is all accomplished with your systems firmware setup.

There is a lot of different systems - it is not possible to describe in details how you should navigate any given firmware.

Windows will work - as there no evidence to the contrary - even if you disable Intel Optane.

No - it is not difficult - but some major players are creating obstacles - some may say deliberately - to keep their eco system intact.


These documents are taken from topics on the now archived forum - posted by @Wollie and @c00ter


These documents is how to install / activate RST / Optane - so reversing the settings should disable it - in theory - that is

1 Like

Thank you so much for your quick response. I now have Manjaro installed, but a master key decryption lockout problem has arisen. I’m taking that to the appropriate forum. Thanks again for your detailed help.

Bitlocker?

To my knowledge Windows Bitlocker requires Secure Boot.

Manjaro do not support secure boot OOB so when disabling Secure Boot - BitLocker stops functioning.

You can read more on Secure Boot on the Archwiki using this link