Re: LILO Problem
On Thu, 11 Jan 2001, Andrea Vettorello wrote:
> Dale Morris wrote:
>
> > I'm having a problem with LILO. I have windows installed in the first
> > partition on my hd but somehow have wiped out the mbr. I've also tried to
> > compile the new 2.4 kernel, but am getting the following error:
> > cat bzImage > /vmlinuz
> > cp /usr/src/linux/System.map /
> > if [ -x /sbin/lilo ]; then /sbin/lilo; else /etc/lilo/install; fi
> > Fatal: open /dev/hda1: Device not configured
> > make[1]: *** [zlilo] Error 1
> > make[1]: Leaving directory /usr/src/linux/arch/i386/boot'
> > make: *** [bzlilo] Error 2
> >
> > I've read the man page, but still am not having any luck. Thanks in advance.
>
> I can't give a big help here, but why not giving "grub" (the GRand Unified
> Bootloader) a try.
Yes, why not. I think it's better than Lilo; it understands ReiserFS,
which is very useful if you want to have your filesystem on every
partition to be ReiserFS. The following is my /boot/grub/menu.lst file
which is used for booting Linux and NT:
# Boot automatically after 30 secs.
timeout 30
# By default, boot the first entry.
default 0
# Fallback to the second entry.
fallback 1
# For booting Linux
title linux1
root (hd0,0)
kernel /vmlinuzr root=/dev/hda1
#
title linux1_single
root (hd0,0)
kernel /vmlinuzr root=/dev/hda1 single
#
title linux24
root (hd0,0)
kernel /vmlinuz24 root=/dev/hda1
#
# For booting Windows NT or Windows95
title nt
rootnoverify (hd0,1)
makeactive
chainloader +1
# For loading DOS if Windows NT is installed
# chainload /bootsect.dos
My partitions:
Device Boot Start End Blocks Id System
/dev/hda1 1 123 987966 83 Linux
/dev/hda2 * 124 245 979933+ 7 HPFS/NTFS
/dev/hda3 246 376 1052257+ 83 Linux
/dev/hda4 377 913 4313452+ 5 Extended
/dev/hda5 377 393 136521 82 Linux swap
To install grub on the harddisk:
run grub
when the prompt shows:
root (hd0,0)
setup (hd0,0)
quit
And then reboot your machine.
Oki
Reply to: