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
Where can I update this partition reference ?
Boot into the ISO. Chroot into your Manjaro installation. Run the grub-install command. More info: GRUB/Restore the GRUB Bootloader - Manjaro
Thanks for this quick answer.
I already followed a part of this guide, especially the following commands which didn’t returned any error.
grub-install --force --target=i386-pc --recheck --boot-directory=/boot /dev/sda
grub-mkconfig -o /boot/grub/grub.cfg
But unfortunately, the
grub-mkconfig still reuse wrongly msdos6 instead of msdos5.
Can you post your /etc/fstab file? Also output of sudo blkid, please.
content of /etc/fstab
#UUID=0090E5422A8F26AE /boot/efi ntfs umask=0077 0 2
UUID=5f5be25f-0204-4e9e-b14c-6cf838f1fc74 / ext4 defaults,noatime 0 1
tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
result of blkid
/dev/sda1: BLOCK_SIZE="512" UUID="0090E5422A8F26AE" TYPE="ntfs" PARTUUID="56b5065f-01"
/dev/sda2: BLOCK_SIZE="512" UUID="5B7396264B5B46C8" TYPE="ntfs" PARTUUID="56b5065f-02"
/dev/sda5: UUID="d95c8016-79bc-420d-89f6-cc9ff465cc22" TYPE="swap" PARTUUID="56b5065f-05"
/dev/sda6: UUID="5f5be25f-0204-4e9e-b14c-6cf838f1fc74" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="56b5065f-06"
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.
Thanks for your time.