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.
-- 
"...[B]e quick to listen, slow to speak and slow to become angry...."
                                                James 1:19 NIV

 Team OS/2 ** Reg. Linux User #211409

Felix Miata  ***  http://members.ij.net/mrmazda/


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

Reply via email to