[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: lilo



Chen,

If your current boot manager is capable of booting a partition on the
2nd drive (it sounds like it is, but I'm not familiar with boot easy),
then the only thing you should have to do is to install lilo in the boot
sector of your Linux partition. In that way it will not affect the rest
of your current setup. 

To do that, you first need to set up the text file /etc/lilo.conf with
the right parameters.

I'll start with the example lilo.conf file that comes with lilo
(/usr/doc/lilo/examples/conf.sample), and mark the changes you need
to make to it. I'm assuming that your 2nd disk is the primary slave
(/dev/hdb), and you said that you have Linux installed on the 2nd
partition of that drive, which would make that partition /dev/hdb2. 

boot=/dev/hda1    ==>> boot=/dev/hdb2
root=/dev/hda1    ==>> root=/dev/hdb2
compact
install=/boot/boot.b
map=/boot/map
vga=normal
delay=20
image=/vmlinuz
  root=/dev/hda1  ==>> root=/dev/hdb2
  label=Linux
  read-only

Again, this file needs to be located at /etc/lilo.conf. Then, to
actually install the lilo boot loader in the boot sector of /dev/hdb2,
you need to run the 'lilo' command as root user. Lilo will use what you
have specified in /etc/lilo.conf to install it's boot loader in the
first sector of your Linux partition. 

On the next boot, you need to tell Boot Easy to boot from the Linux
partition, which should then execute the lilo boot loader you just
installed, which will then boot the Linux kernel.

Note: Actually, you don't need both root= lines in this case, but it
won't hurt anything. 

Tom

Chen Xu wrote:
> 
> Dear All,
> 
> I installed Debian2.0 form official CD last night for the first time.
> I should say that it is pretty easy to install. As newbie, I have my
> first question here.
> 
> I have two IDE drives. In the first one I have DOS(win95) and FreeBSD.
> In the second one, I have one partition for more DOS and one partition
> for more FBSD space. I used all the free space in the 2nd drive for
> Debain. So my Debain / is on the 2rd partition of 2nd drive.
> 
> When I installed FreeBSD I installed boot manager. So when I boot, I
> can have chices F1 for DOS and F2 for FreeBSD. And F5 for second disk,
> which is not working yet.
> 
> Question:
> How can I configure Lilo to boot Debian directly from HD? Will the
> installation remove the boot manger I already have? Is there any way
> that I configure my boot manager(boot easy) to boot Debian from HD
> without installing Lilo?
> 
> That's all for the first time. Thanks alot in advance.
> 
> Chen
> 
> _________________________________________________________
> DO YOU YAHOO!?
> Get your free @yahoo.com address at http://mail.yahoo.com
> 
> --
> Unsubscribe?  mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null

-- 
Try Debian GNU/Linux - it's free, it's open source, and it rocks
http://www.debian.org


Reply to: