Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Grub re-installation< Next Oldest | Next Newest >
danielp Offline





Group: Members
Posts: 57
Joined: May 2007
Posted: Jan. 22 2008,10:01 QUOTE

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!
Back to top
Profile PM 
curaga Offline





Group: Members
Posts: 2163
Joined: Feb. 2007
Posted: Jan. 22 2008,10:32 QUOTE

sudo su
grub
root (hd0,2)
setup (hd0)
quit


--------------
There's no such thing as life. Those mean little jocks invented it ;)
-
Windows is not a virus. A virus does something!
Back to top
Profile PM 
danielp Offline





Group: Members
Posts: 57
Joined: May 2007
Posted: Jan. 22 2008,15:48 QUOTE

Thanks Curaga.

Will that overwrite my menu.lst file on hda3 or will it just point grub to load that one?
Back to top
Profile PM 
curaga Offline





Group: Members
Posts: 2163
Joined: Feb. 2007
Posted: Jan. 22 2008,15:59 QUOTE

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.


--------------
There's no such thing as life. Those mean little jocks invented it ;)
-
Windows is not a virus. A virus does something!
Back to top
Profile PM 
danielp Offline





Group: Members
Posts: 57
Joined: May 2007
Posted: Jan. 23 2008,09:02 QUOTE

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!
Back to top
Profile PM 
4 replies since Jan. 22 2008,10:01 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: Grub re-installation

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code