Felix Miata wrote:
For reasons I won't get into, I had to reinstall 9.1 today. Ever since I
first discovered it more than two years ago, I've used grub exclusively
as my boot loader. During this install, as on the same machine about three
months ago, I specified grub during installation. During late installation,
the configuration step, I noticed that the boot loader had been changed back
to lilo after having specified grub earlier, and changed it again to grub.

On first boot, I was shocked to discover a graphical boot menu that looked
unlike anything I'd ever seen before on Mandrake. Eventually I learned this
was the graphical lilo, since on my /boot partition I simply copied back my
old menu.lst over the stupid one the installer applies, and found on next
boot no change.

So, I tried to run 'grub-install /dev/hda5'. To that I am greeted by the
following message:


  sed: -e expression #1, char 12: Invalid reference \1 on 's' command's RHS
  sed: -e expression #1, char 12: Invalid reference \1 on 's' command's RHS
  Unrecognized ls output: Not found or not a block device.

So, I tried the long-winded version:

grub-install /dev/ide/host0/bus0/target0/lun0/part5

only to be greeted by

/dev/ide/host0/bus0/target0/lun0/part5 does not have any corresponding BIOS drive.

So, I tried the grub syntax:

grub-install (0,4)

but got the following error:

-bash: syntax error near unexpected token '0,4'

Then:

grub-install 0,4

but got only a usage message.

Then:

grub-install hd0,4

but again got only a usage message.

Then:

grub-install --recheck /dev/hda5

and again got:

  Probing devices to guess BIOS drives. This may take a long time.
  /dev/hda5 does not have any corresponding BIOS drive.

Then:

grub-install --root-directory=/boot '(hd0)'

and again got:

  sed: -e expression #1, char 12: Invalid reference \1 on 's' command's RHS
  sed: -e expression #1, char 12: Invalid reference \1 on 's' command's RHS
  Unrecognized ls output: Not found or not a block device.

How do I get grub back?

FWIW, /dev/hda has 22 partitions. IIRC, it had 19 when I last installed
9.1 on it. It has 255hd, 63s, 1111cyl, & units = 16065 * 512 on a PIIX4
00:07.1 controller. A NEC ehci USB 2.0 PCI host was added since last
install.

Is grub installed w/o problem (rpm -V grub)?
If it is and you did not re-partition for the re-install, there should be /boot/grub/install.sh and you could try:


sh /boot/grub/install.sh

Rolf


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to