Article 5J3EH GRUB Installation Issues

GRUB Installation Issues

by
questionderby
from LinuxQuestions.org on (#5J3EH)
Hi! So a little backstory: https://www.linuxquestions.org/quest...ns-4175695246/ in this thread I asked for help on how to recover my lost partitions, and I kinda succeeded in doing so. I now have all my partitions back, and can mount them and copy files from them just fine. All of them are ext4. I have a BIOS computer, using MBR.

I tried to install GRUB from a LiveOS (AntiX 19.3) and got the following error:

Code:grub-install /dev/sda
Installing for i386-pc platform.
grub-install: error: failed to get canonical path of `overlay'.Then realized that I should do it in a chroot, as I did always before following the wikis(Arch, Gentoo..)

So I mounted my Void install (which has a working grub.cfg file in it's /boot/grub/) under /mnt, mounted /dev, /proc and /sys under it like the following:
Code:mount --rbind /sys /mnt/sys && mount --make-rslave /mnt/sys
mount --rbind /dev /mnt/dev && mount --make-rslave /mnt/dev
mount --rbind /proc /mnt/proc && mount --make-rslave /mnt/proc
and chrooted into it.

Code:chroot /mntI execute Code:grub-install /dev/sda once again, it reports no errors, so I reboot.

No signs of GRUB. Not even an error message like "no bootable device found".

I tried Code:grub-bios-setup /dev/sda in the chroot once, I waited for minutes and minutes and it didn't exit or give any output at all, so I cancelled it(^C).

I tried Code:grub-install --root-directory=/mnt /dev/sda once outside of the chroot, reported no errors, rebooted, still no signs of GRUB.

I tried Code:grub-install --directory=/boot/grub/i386-pc /dev/sda no errors reported on installation again, I reboot, still no signs of GRUB.

Here is my partition layout from fdisk, if needed:

Code:Disk /dev/sda: 298.1 GiB, 320072933376 bytes, 625142448 sectors
Disk model: WDC WD3200AVCS-6
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x04b28127

Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 73402367 73400320 35G 83 Linux
/dev/sda2 73402368 115345407 41943040 20G 83 Linux
/dev/sda3 115345408 625141759 509796352 243.1G 83 LinuxArtix is on /dev/sda1, Void Linux is on /dev/sda2. I don't use Artix anymore, and testdisk showed a lot of deleted directories on Artix when recovering the partition. I don't see any grub directories in Artix's partition anymore.
Thank you for reading and trying to help.latest?d=yIl2AUoC8zA latest?i=kTh0dwU8Keg:ODUoh9jQjog:F7zBnMy latest?i=kTh0dwU8Keg:ODUoh9jQjog:V_sGLiP latest?d=qj6IDK7rITs latest?i=kTh0dwU8Keg:ODUoh9jQjog:gIN9vFwkTh0dwU8Keg
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments