rescatux / rescapp

Rescapp - Rescatux's wizard for rescue tasks
GNU General Public License v3.0
32 stars 15 forks source link

Restoring Grub Legacy with several hard disks in some Debian installations fails #45

Open adrian15 opened 8 years ago

adrian15 commented 8 years ago

The problem is found on Debian's grub-install file which uses the find_device function which relays on /proc/mounts file instead of device.map for getting the root and boot devices.

So... That makes Rescatux not work ok because the hard disk names from Rescatux for each one of the hard disks are not the same one as the assigned hard disks from the boot system.

I mean:

From Rescatux: hard disk1 -> sda hard disk2 -> sdb

From your system: hard disk1 -> sdb hard disk2 -> sda


Maybe we can detect Grub legacy installation and use the old method of grub commands: root (), setup () .

adrian15 commented 5 years ago

This is probably not needed nowadays that everybody uses grub2.