SDB:Failure of grub-install

Şuraya atla: kullan, ara


Version: 9.1

Symptom

The script grub-install to install the boot manager GRUB fails with the following error message:

host:~ # grub-install /dev/hda
/usr/lib/stage1: Not found.

Cause

The path of the involved GRUB components (stage1, stage2, etc.) has changed.

Solution

Use the following call instead:

grub --batch --device-map=/boot/grub/device.map </etc/grub.conf

You can also fix this error in the script grub-install. To do this, open the file /usr/sbin/grub-install and replace the value:

pkgdatadir=${datadir}

with

pkgdatadir=${datadir}/${PACKAGE}/${host_cpu}-${host_vendor}

in line 30.

<keyword>grub,grub-install,bootloader,bootmanager,boot</keyword>