Dual booting with Win 10 problems

dual-boot
windows

#1

I have installed Manjaro XFCE Edition (17.1.7) alongside windows 10.
I created a partition for Manjaro via the Manjaro utility during installation.

Initially I couldn’t boot to Manjaro but only directly to Win 10.
Then followed a procedure given somewhere in Manjaro forums to fix this in grub prompt.

Now, the situation is like this:

I can get load/run Manjaro only if I go to Bios Boot device options and chose Manjaro via EFI I think. Otherwise I boot to Win 10 directly.
How can I fix this in the simplest way to have the options to boot either to Manjaro or to Win 10 during the boot process?

  1. Boot to Manjaro
  2. Boot Win 10

GRUB not showing up with dual-boot
Unable to Boot into Manjaro without using usb livecd
#2

Hi,
Firstly, if you boot into Manjaro in the way you described, can you see the windows entry in the grub menu? (should be the last one)
if so, you can change the boot order in your bios, if it boots into manjaro from there, you can set the boot order so that the first one is Manjaro, then windows, etc.


#3

Yes I can see the Windows entry there. I ll try that and let you know if that fixes the problem.


#4

At Manjaro terminal
efibootmgr

Then
sudo efibootmgr -o xxxx.yyyy
where xxxx is Manjaro bootentry shown in ‘efibootmgr’
where yyyy is Windows Boot Manager shown in ‘efibootmgr’


#6

Thanks for your reply and sorry for my delay.
The following found after running efibootmgr:
Timeout: 0 seconds
BootOrder: 0000,0001,9998,9999
Boot0000* Windows Boot Manager
Boot0001* Internal Hard Disk
Boot9998* Internal CD/DVD ROM Drive(UEFI)
Boot9999* USB Drive (UEFI)
Aparently Linux Manjaro is not there.


#7

The output of:
findmnt /boot/efi
TARGET SOURCE FSTYPE OPTIONS
/boot/efi /dev/sda2 vfat rw,noatime,fmask=0022,dmask=0022,codepage=437,iochars


#8

This looks like a correct behavior on UEFI installations.
People usually fail to understand that UEFI is NOT DYNAMIC, meaning: when you have a UEFI boot set to Windows it will always boot windows. When you set UEFI boot to Linux, it will always use Linux. Another thing to remember is: systems don’t control UEFI boots, UEFI settings do that so basically - it’s up to you to set or create an UEFI boot you need.

Basically what you need is just a Linux UEFI boot, because Grub can recognize both systems so you can choose which one to boot (manually or automatically), while Windows UEFI boot can’t do that directly and will boot only Windows.

Now the other hard part is: each BIOS/UEFI firmware does it differently preventing from writing nice tutorials. Because of that everyone skip that part and users are left clueless.
Here are examples:

  1. My old lenovo laptop showed automatically Manjaro boot and allowed me to set it, but didn’t know the right path to EFI folder with boot file, so on first boot I was given error and some commandline UI to browse EFI and choose the right path to boot file. Since I was clueless at that time I tested it by trial and error till I found the proper path.
  2. My current computer doesn’t show automatically any new UEFI boot but has option “add new” where I can choose the path and name the new UEFI boot (which I named simply Manjaro) and then I can choose it.

There are some workarounds to this but proper dealing with it is understanding what you are doing and simply setting correct UEFI boot.

If you manage to boot a Grub and you don’t see windows, run Linux and update grub by:

sudo update-grub

If everything is fine, Windows should be visible in Grub the next time you boot.


#9

Ok. So how can I add a boot option for Manjaro? Can I do sudo update-grub from the terminal?


#10

Hi, I have installed Manjaro KDE alongside Win10 and I have to press F9 each time I like to run Manjaro. When I choose Manjaro the grub menu appears and I could choose to start between Manjaro or Windows.
I also run the command
efibootmgr
BootCurrent: 0002
Timeout: 0 seconds
BootOrder: 0001,3001,0002,0003,2001,2002,2003
Boot0001* Windows Boot Manager
Boot0002* Manjaro
Boot0003* Linpus lite
Boot2001* USB Drive (UEFI)
Boot2002* Internal CD/DVD ROM Drive (UEFI)
Boot3000* Internal Hard Disk or Solid State Disk
Boot3001* Internal Hard Disk or Solid State Disk
Boot3002* Internal Hard Disk or Solid State Disk
Boot3003* Internal Hard Disk or Solid State Disk

Do you think I have to change the order with efibootmgr or simply run update-grub?

I will very appreciate an answer.


#11

I’m having the exact same problem as OP, but it seems you are not understanding it correctly.

What he means with

is that there’s no option to select grub during Boot options, but if you select “Boot from EFI partition”, you can follow the whole path and boot Grub into Manjaro.
My efibootmgr output is very similar to this:

with Manjaro not available, ergo not posible to select it in the boot order options.

This is totally unrelated. It is posible to open Grub, and it has Windows option, but it is not posible to select it as a boot device, unless going through the whole EFI path in the “Boot from EFI” option


#12

@ippo

Understand. You do not have ‘manjaro’ listed in “efibootmgr”.
That’s bad. It may be a Lenovo issue as appeared in many other topics here.
But before we jump to that (though likely) , let’s give it another shot first.

Boot it up (your way, any way - I have a shorter way, but never mind now), and at terminal

sudo grub-install
sudo update-grub

Then verify again with

efibootmgr

If ‘manjaro’ is now listed and at top of the bootorder (It should).
Reboot.

If it does not boot up to Manjaro after reboot, come back here and we’ll review the next ‘unpleasant things’ we have to do.
Note: your ‘manjaro’ is again missing in ‘efibootmgr’ if you go boot back to Manjaro and check with ‘efibootmgr’
(and it’s a Lenovo thing, not a manjaro or linux thing)

But good luck.

[edit] -

  1. oh, if that fails and when you get back to us, this time provide at terminal
sudo efibootmgr -v

not just ‘efibootmgr’

You need to explain this. Is that from the install media or from your computer ‘bios’?
We get the impression it is from the computer.

  1. If computer is a HP, it may be ‘easier’ (relative to Lenovo) to fix it. But still quite a hassle.
    Let us know computer make and model.

#13

Yes, just do

sudo efibootmgr -o 0002,0001,0003

and you’ll be fine. Good luck.


#14

@Nekaze

I think you have a HP, but please confirm make and model.
Clarify in detail how you presently boot Manjaro.
I think you go to the computer bios, select the path to manjaro efi file and boot it.
If not correct, let us know.

See if this helps (modify to your computer …er… custom settings)

When booting up system, check bootsetup (F10?) if there is a uefi submenu with boot priority bootorder. Is there a “custom boot entry”? Click on it and see if it ask you to “enter path to file” (or something like that).

If there is, then we on to something. Reboot and go to bios setup (F9?), chose EFI-file, write down path after every click, to the directory \EFI\manjaro\grubx64.efi.

Reboot, and go to boot options F10(?).
move custom boot to the top of priorities and then typed in the exact path like \EFI\manjaro\grubx64.efi
Note use’’ instead of’/’ for directories and sub directories.
Save changes and reboot.

If it is different, see if this post can help.

And if it an Asus, this may help.
But usually, a

sudo cp /boot/grub/x86_64-efi/core.efi /boot/efi/EFI/boot/bootx64.efi

will be fine for other makes if there is an issue.


#15

I’m not OP but I’ve explained this here, as I have the exact same issue:

In my case, the computer is an HP ay117cl



I’ve uploaded a couple of pictures that ilustrate my point. In the first, you can see boot selection menu and Grub not available to select in the boot order menu. However, selecting “boot from EFI file” option, and following the path, takes you to the EFI boot file where you can see and select Manjaro (picture 2). After doing this, you boot to Grub normally (picture 3) and can start Manjaro with no problems


#16

Thanks for your reply, unfortunately I don’t have any “custom boot entry” on my UEFI setup, I believe this is only available on older HP models

What’s suggested here:

is what i usually do with all my other Linux distributions (Antergos, Ubuntu, Mint), and none of the have had any problem. But on Manjaro, the option just doesn’t appear.


#17

While you were typing, I had a separate post to you.
I guessed you had a HP, and it is so.
Touble is, fromm what we see here, each HP has a different way in handling UEFI and see may above post if any can help. Setting a ‘custom path’ and then making it default is probably the way for your HP. It may be difficult to find out the bios process to do that. But please try all ways in your HP to see how to do that and make it ‘stick’.

Good luck

ps: I don’t have HP or Lenovo
(will never have, after all these issues, even if they cleaned it up )


#18

@Nekaze
Try this as well.

[edit] - yes, there are at least 2 members here who tried everything, gave up finally and use legacy-boot (need to reinstall). Hope it don’t come to that. :slightly_frowning_face:


#19

It appears this isn’t working either

I’d rather keep on using the “boot from efi” option than reinstalling or using legacy mode. I find it really odd that I have never encountered such problem with other linux distros, including Arch based Antergos


#20

Interesting. Now, let’s see if we get each other right.
You are saying that in the same HP computer, booting up Arch and Antergos does not give you the same problem?

If so, how are you booting Manjaro (that fails - not that efi path thingy).
Are you using Arch or Antergos grub? (Because you cannot get Manjaro grub to appear - again, not that efi path thingy).

And how did you get Arch or Antergos to boot? Because I don’t see that (‘antergos’ or ‘arch’ bootentry in your ‘efibootmgr’ either.)

Can you please explain. It’s getting more confusing.


#21

This is exactly what I am saying. I used Antergos some time ago, on the same PC, but had some trouble with it not being so stable. I loved Arch, and that’s why I decided to try Manjaro. I’ve now deleted every linux distribution I had, and clean installed Manjaro along with Windows10.

Im booting Manjaro by selecting the option on Grub after following that efi path thingy (as shown in the picture).

I got Antergos to work properly by just installing it using their tool, manually partitioning, etc, as with any Linux distro install. Everything went fine, and the only problem I found was Windows not showing on Grub, which was solved by a simple Grub update command.

[edit for clarification] I CAN get Manjaro grub to appear (by booting from the efi file), that’s the only Grub currently installed on my PC