Table of Contents
The best practice is to install lilo into Linux' own partition. Then use just fdisk to active the Linux partition. So no other 3rd party boot manangers (bootstar, system commander, etc) are required. Use lilo alone to control everything. That's enough.
The original boot sequence was: dos, linux & linuxsimple.
To change it, rearrange the order of /etc/lilo.conf then run lilo to commit the change to the boot.
Newsgroups: comp.os.linux.misc,comp.os.linux.setup
> How to put LILO in 1st sector of boot partition ?
Edit the file /etc/lilo.conf, change the line boot=/dev/hda to point to your boot partition (/dev/hda0, or whatever), then run /sbin/lilo
Markku Kolkka
Taken from the Linux/NT HOWTO (http://www.linuxdoc.org/HOWTO/mini/Linux+NT-Loader-3.html):
"… If you have a IDE-harddisk and your partition is the second partition, your boot-entry in /etc/lilo.conf looks like:
boot=/dev/hda2"
I.E. for installing on first sector, specify the disk with partition number, rather than just the disk.
Lee.
> > I think once overwritten, the bootsector cannot be recovered unless you > > got a copy > >Lilo makes just such a copy. From the lilo man page: > > -u device-name > Uninstall lilo, by copying the saved boot sector > back. A time-stamp is checked.
Additionally, if Lilo is already on the MBR, you should be able to use your boot disk (you *do* have one, don't you) to get into DOS and do an fdisk /mbr to restore the MBR. this'll work for Win9x & win2000. If Linux is screwed such that you can't load it, pop in your CD and autoboot it (if possible): you will be able to subsequently mount your root partition and then edit /etc/lilo.conf or lilo -u etc…
Lee.
>Unless you delete something first, you won't get a table like this.
then can be changed by using the partition manager included with XOSL, called Ranish partition manager…. http://www.xosl.org