Grub re-installation


Forum: HD Install
Topic: Grub re-installation
started by: danielp

Posted by danielp on Jan. 22 2008,10:01
Hi,

I had a dual booting windows and MEPIS linux machine on which I wanted to add DSL for testing through a frugal install. I repartitioned my HD like this:
hda1: windows ntfs
hda2: linux swap
hda3: MEPIS root
hda4: extended partition
hda5: MEPIS home
hda6: DSL frugal image (ext2)
hda7: DSL home and extra space (ext2)

I installed the latest version (4.2.x) with the frugal script. Told it to put the image on hda6 and home on hda7.
Everything went fine, except that it overwrote my MBR with a new grub that points to hda6/boot/grub/menu.lst instead of my previous grub at hda3/boot/grub/menu.lst.

How can I instruct GRUB to rewrite the MBR and tell it to use the menu.lst on hda3? I will then add the DSL line to that menu.lst file.

Thanks!

Posted by curaga on Jan. 22 2008,10:32
sudo su
grub
root (hd0,2)
setup (hd0)
quit

Posted by danielp on Jan. 22 2008,15:48
Thanks Curaga.

Will that overwrite my menu.lst file on hda3 or will it just point grub to load that one?

Posted by curaga on Jan. 22 2008,15:59
Just point MBR to hda3, without writing anything to the partitions.

You might want to do that from Mepis though, DSL's grub is 0.91 and it's possible your menu.lst has some syntax only newer versions understand.

Posted by danielp on Jan. 23 2008,09:02
Wise decision, as I just learned that MEPIS doesn't use exactly GRUB, but a modified version of it.
I booted up MEPIS from a live CD, and found the menu to reinstall GRUB, and it works perfectly now. Thanks again!

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.