You are not logged in.

#1 2004-02-27 03:35:48

trey
Member
From: Alpharetta, GA
Registered: 2003-10-18
Posts: 73

Installed lilo in MBR by accident.

Long story short, I have an 80Gb hard disk on which I have the following:

hda1 /mnt/windows
hda5 /data1 (SUSE9)
hda6 SWAP
hda7 / (SUSE)
hda8 / (Arch)
hda9 /usr (Arch)
hda10 /home (Arch)
hda11 / (Mandrake)
hda12 /home (Mandrake)
hda13 /usr (Mandrake)

The hda1 is a primary partition and was flagged as bootable.  The rest are logical partitions.  When I was doing the Arch 0.6 install via CD I was given the option of bootloader.  I wanted grub and wanted to install it on hda9 so that I could keep my SUSE grub bootloader on the MBR and add an entry for Arch as I did with Mandrake.  I checked lilo too, but when I selected that option, it installed it automatically (I'm assuming to the MBR) such that when I rebooted I was presented with lilo and Arch as my only option. 

I want to know the easiest way to add entries back so I can boot into SUSE and Mandrake.  Should I now use the lilo.conf in Arch and add entries for these and Windows?  If so, what would the entries look like?

Thanks for your help.

-Trey

Offline

#2 2004-02-27 10:13:23

andy
Member
From: Germany
Registered: 2002-10-11
Posts: 374

Re: Installed lilo in MBR by accident.

First you need to mount your partition with the Suse kernel. So, probably,

mkdir /suse
mount /dev/hda7 /suse

Then, in lilo.conf, duplicate your entries for Arch, so that you can boot into Suse. Something like

image=/suse/boot/SUSE_VMLINUZ (or however the Suse kernel is called)
    label=suse
    root=/dev/discs/disc0/part7
    read-only
And possibly more stuff that suse needs. Compare to what is in /suse/boot/grub/menu.lst

Now run

lilo

And upon reboot you should be able to boot into Suse. Now it's up to you if you want to restore the old mechanism or expand Arch's lilo.conf further for the other OS's

Offline

#3 2004-02-27 12:01:36

trey
Member
From: Alpharetta, GA
Registered: 2003-10-18
Posts: 73

Re: Installed lilo in MBR by accident.

Thanks. smile

How can I then get my SUSE grub bootloader back as the default bootloader when the machine powers on?

Offline

#4 2004-02-27 12:29:04

andy
Member
From: Germany
Registered: 2002-10-11
Posts: 374

Re: Installed lilo in MBR by accident.

This is described in the Grub manual. E.g.
http://www.mcc.ac.uk/grub/grub_3.html
or any other grub mirror

Edit :

I almost forgot ... Since Suse is one of the distros that tries to do everything for you ;-) , you may be able to do the re-installation of Grub into the MBR via yast/yast2

Offline

#5 2004-02-27 13:02:41

trey
Member
From: Alpharetta, GA
Registered: 2003-10-18
Posts: 73

Re: Installed lilo in MBR by accident.

I'll give it a try when I get back today...thanks again.

Offline

Board footer

Powered by FluxBB