Issue after re-installing Manjaro on Dual-Boot Machine

I have been having issues with my Manjaro OS so I decided to re-install. I booted with the Live USB, set up the partitions on the Linux disk, and installed Manjaro as per this page: [root tip] Dual boot Manjaro and Windows.

Here are issues I am having now:

  1. I can no longer boot into my windows disk. When I choose the windows disk from my BIOS boot it always just sends me to manjaro
  2. When I booted into Manjaro the first few times the screen locked up on the desktop right as it was loading. I hard-reset the computer a few times and finally decided to switch to X11 and that helped for a bit.
  3. I started working through this doc: Using livecd v17.0.1 (and above) as grub to boot OS with broken bootloader - Tutorials - Manjaro Linux Forum
  4. After running the search.file and configfile cmds the screen goes dark and I cannot see anything.
  5. When I boot now I see some log messages and then no desktop loads up. It just sits there.
  6. Prior to re-installing, I would see the Grub bootup menu that would ask me which kernel I wanted to run, etc… That no longer pops up and it just goes right into booting.

So, I assume my nvidia card drivers were causing issues that locked up the computer on desktop loading?
Am I following the right docs for dual-booting via EFI with two separate SSD drives, one for win, one for lin.?
What should I do to get my Linux starting up again?
What should I do to get my Windows starting up again?

This is what my partitions look like right now from my Live USB boot:

Model: Samsung SSD 970 EVO Plus 500GB (nvme) [[Linux Drive]]
Disk /dev/nvme0n1: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End    Size    File system     Name  Flags
 1      2097kB  317MB  315MB   fat32                 boot, esp
 2      317MB   169GB  169GB   ext4
 4      169GB   482GB  313GB   ext4                  boot, esp
 3      482GB   500GB  18.5GB  linux-swap(v1)        swap


Model: WDC WDS100T2B0C-00PXH0 (nvme)  [[Windows Drive]]
Disk /dev/nvme1n1: 1000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system  Name                          Flags
 1      1049kB  17.8MB  16.8MB               Microsoft reserved partition  msftres
 2      17.8MB  1000GB  1000GB  ntfs         Basic data partition          msftdata

It looks like the Windows disk does not have an EFI partition, and the Linux disk has two with two different file systems. I must say, that is a very unusual setup and may be the source of some of your trouble.

Before you reinstalled Manjaro, were you booting Windows off an EFI from another disk like this? I did not realize that was possible. Or did you move Windows? How did you get it like this?

EDIT: I just noticed the second EFI partition is 313 GB so I’m guessing that was turned into an EFI partition in error.

I have not changed anything on the Windows disk prior to the reinstall. As for the EFI booting, I am not sure. The only thing I know is that I followed a tutorial for dual booting two disks, got it working, and I would see both disks showing up in my bios F12 menu (which it is doing now as well). When I chose win/lin it would boot into respective OS.

Both systems should be able to share an EFI partition as long as Windows is set up first. When doing the Manjaro reinstall, the EFI partition should be mounted at /boot/efi but not formatted, where / would be mounted and formatted (typically).

Did you do automatic partitioning, or side-by-side install perhaps?

Manual. I don’t recall if I formatted the EFI partition.

Did you previously have two separate partitions on the Linux side (excluding swap and EFI), or did it get like that after the reinstall?

I had two partitions, one of which was an old installation of “/” (from a prior installation) that I turned into “/home” for this installation. So “/” and “/home” are separate partitions (the larger part being “/”).

FWIW, I am at the partitioning step of the installer again. Thinking maybe I make another run-through but I wanted to verify I was using the correct steps for what I am trying to accomplish.

Okay, it is fine to keep / and /home on separate partitions if you like but you must specify a third partition for boot (mounted at /boot/efi). Choose P1 for this, mount but do not format. Then remove the boot and esp flags from P3.

@BluishHumility Do I need to make the 16MB partition on my windows disk bootable? Or is the primary partition supposed to be?

Here is what my parts look like in the installer.

That partition (Windows reserved partition) is not a boot partition. It is related to something else Windows does. I am not specifically sure what–perhaps a recovery task?

On GPT Windows boots from an EFI partition, just like Linux. Typically the EFI partition is formatted FAT32. For Linux it is possible to have the boot partition formatted otherwise, but for Windows I think it is always FAT32. Usually only one EFI partition should be used, so if you are dual-booting with Windows your EFI partition will always be FAT32.

It is unusual to have a boot partition on a separate disk (like your Windows setup), but if it was working for you before I would say it should be fine. :man_shrugging:

Looks good to me!

It is possible I did not have an EFI partition on my Windows disk. It has been a while so I have forgotten exactly what steps I took originally. As for the current status, I can boot into linux no problem but when I choose my windows disk from the BIOS selection page it just sort of sits there and does nothing.

I was thinking about this, and it is impossible that installing Manjaro on nvme0n1 would have somehow removed the EFI partition from nvme1n1 (and then magically expanded the Windows partitions to fill the disk :joy:). So you must have been booting Windows from the EFI partition on nvme0n1.

Did you finalize the installation above, or do you still have two partitions with boot flags?

If you eliminate the extra boot flags and you still can’t get Windows to boot from BIOS, you could try to get Windows on your grub boot menu (I’m not sure how people do it, whether OS prober detects it or you need a 40_custom menu entry or what).

It is possible to repair the Windows bootloader from Windows repair mode (or whatever it is called). I forget specifically how to bring it up but it is something like interrupting the boot sequence three consecutive times–you’d have to do a web search if you aren’t familiar. Anyway, if you decide to go that route you will probably have to reinstall grub again because Windows can be destructive when it writes to the EFI partition.