Hello,
I just installed Manjaro Cinnamon on an old computer that could not run on Windows 10 properly. Everything went well Linux-wise, and I could “increase” the speed of the computer (on Windows, even opening the start menu was a challenge).
However, the person using the computer needs to have access to Windows from time to time. And here comes my problem:
When selecting Windows from GRUB, the screen goes black, then loops back to GRUB selection, as if I never selected Windows.
After some research on the Internet, I found out that I may have messed up the Windows Bootloader when installing Manjaro:
The Windows bootloader is located on /dev/sda1, and as I did with my PC, I installed GRUB on the same partition (and put the /boot there).
I also encountered something that was not there when installing on my PC: a line below the selection of partitions (I do the partitionning myself) about where to install the boot loader. I modified the default line from /dev/sda to /dev/sda1 and I think I should not have.
Do you know in which step I messed up? How do I repair the Windows bootloader ?
Please note that the computer I installed Manjaro on seems to not have EFI/UEFI.
Ok I see where problem is… you mixed BIOS and UEFI Setups. While its true that on UEFI Setups Windows and Linux can share one Partition, since it is Fat32, that isn’t the case for BIOS.
/boot cannot be an NTFS partition. I wonder why it works (Nice hack xD)
So let me explain… What you need on a BIOS Setup is at least 1 partition. Thats all. And this partition have to be mounted to /. You messed this installation up by using sda1 as /boot. This partition should be only used by windows.
About Windows: Well you can hope that you don’t mess up its bootloader, otherwise you have recreate the bootloader and then reinstall grub again. On the web are tons of information of how to recreate the windows bootloader from the setup disk via commandline.
I don’t see any evidence for this, for me this looks like a clean BIOS setup.
Actually, as proven by OP - it can.
@Diamondemon, when assigning sda1 as /boot partition you overwrote the Windoze boot partition. You need a Windoze recovery media to recreate the original Windoze partition. Unfortunately, afterwards Manjaro won’t work anymore as currently /boot is located there. This can be fixed by removing the fstab entry for /boot, chroot into Manjaro and restore the boot loader and all other files in /boot. All not very simple for a newbie, it’s probably easier for you to backup and start from the scratch. For a BIOS booted system no /boot partition is needed, if you would have avoided this assignement during Manjaro’s installation you would have had a working system incl. dual boot into Windoze.
I did the commands, struggled a bit because I rebooted without doing all the commands (SuperGrub2Disk saved me), and now I have a Grub on sda5, that boots Manjaro fine… and that when clicking on Windows… Goes to the old grub on /dev/sda1.
@megavolt , @Wollie can I just delete grub files on /dev/sda1? Or do I have to create a Windows recovery media in order to repair Windows’ bootloader, which I absolutely do not know how to do, I could not find something that sounded right.
I also read that I may be able to repair the Windows MBR from linux with a specific package, but the tutorial did not seem to be up to date, and that was for Ubuntu anyway.
Yes, since boot files are now on sda5. No idea if you have to recreate the boot files on sda1 for windows. If grub has overwritten files, then you have to.
First time I heard about that… how should linux create the windows bootloader? I mean not the MBR…
The problem is, how to use bootrec since I cannot boot on Windows at all? And I did not find how to have command prompt with the Windows 10 installation media given on the official website:
I tried with bootrec, I fixed the mbr but that’s not what I should have done, it seems. However, it did not repair my windows boot.
And guess what:
bootrec /fixboot
gives me “access is denied”. That’s really preposterous for a rescue tool to have denied access. I have to start from scratch to recreate the boot partition.
I could bypass this by wiping /dev/sda1 clean and reinstalling windows boot files on it. I then had to use superGrub2Disk in order to access Manjaro.
However, it seems that now I have a problem when switching to manjaro after Windows:
Manjaro gets stuck on the textual loading screen. This seems to be fixed when rebooting the PC, but the problem occurs every time I switch after Windows.
After looking up the internet, it turns out that the problem is the IDE/RAID/AHCI config in the BIOS setup. But I cannot change it so I may be in some kind of trouble here if launching Windows prevents Manjaro from booting properly on next time…
Any clue?