I just installed Manjaro (sda7) since my boy wanted to move away to Debian. The installation was straight forward and everything went well until I deleted the Debian partition (sda6). The Manjaro install partition has been renamed to sda6 but despite many grub-install, update-grub, grub looks for msdos6 on boot and returned an error that partition doesn’t exist.
I tried to look into various grub config file and I don’t find any reference to this sda6 or “msdos5” as boot reference for grub. Even worth, device.map doesn’t exist. I can fix the boot issue by replacing all references msdos6 by msdos5 into /boot/grub/grub.cfg, but this is overwritten by update-grub command.
Edit : I commented out the efi line because I done a mistake during the installation. I boot the USB with EFI while the hard drive is booting with legacy (Debian was installed as legacy). I’m not sure this is related.
OK, strange situation. For me it’s a bit unclear how you installed Manjaro - in UEFI mode or in BIOS mode. When the ESP was formed when you installed Manjaro, most likely you sit in front of residues of an UEFI install. Instead of fiddling around I would just re-install it. Is your disk msdos or gpt parted? If you have run wrong grub-install commands you place data on unbeneficial places. So, in this case just start from the scratch by reformmating the whole disk (after backing up valuable data of course).
Agree, it was not clear for me either. I didn’t realize I boot my USB as EFI and Manjaro installer used Windows Boot partition as EFI boot (sda1) while this is a ntfs partition (I assume that EFI partition should be formatted as FAT32).
I guess I will make a new simple script under /etc/grub.d/ in order to automatically patch the grub.cfg file in case of update-grub is apply (e.g. by an update).
Not a big deal anyway, I was just interested to see if there is a proper way to fix that.