Novell Home

Grub-install fails on SUSE Linux 9.1

Novell Cool Solutions: Question & Answer

Rate This Page

Reader Rating  stars  from 4 ratings

Posted: 19 Aug 2004

Q:
I'm using SUSE Linux 9.1, and running into a problem with grub install. 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.

Why is it happening, and how can I fix it?



A:
The path of the involved GRUB components (stage1, stage2, etc.) has changed. 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.

Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com

Reader Comments

  • Oh, yeah! This error can make you go wild, if you do not stumble across this website.
  • Worked as advertised!!!

Novell® Making IT Work As One

© 2009 Novell, Inc. All Rights Reserved.