Johnathan Smith wrote:
>
> I am setting on a new computer with on 20GB hard
> drive. I used the first 10GB for windows ME and now I
> am trying to use the other 10GB for redhat 7.0.
>
> I install redhat and I dont get any errors but after
> reboot the computer. the computer goes right into
> windowsME. If I use the book disk that linux loads
> fine??? why is LILO not loading off the MBR??
>
Please read this entire email before trying anything!!!!
You most likely installed lilo in the boot record of the linux
partition, and not the mbr.
1) Make a dos/windows boot floppy /w fdisk it. (You can create a dos mbr
via dos fdisk `fdisk /mbr`.) Make sure you can boot /w it, and see your
hard drive in fdiks.
2) Make sure you can boot linux from floppy. Given that linux is not in
your first 2G you will likely at some point make your hard drive
unbootable.
3)Now boot to linux and edit /etc/lilo.conf:
It should look like this:
boot=/dev/sda
map=/boot/map
install=/boot/boot.b
prompt
timeout=50
linear
If you have an ide disk boot line will be hda not sda. If there is a
number like sda2 or hda3 remove that number in the boot= line. Don't
remove it in the root= line much farther down. As your kernel is at
least 10 gig away from the start of the disk I suggest turning on lba32
addressing. Change the linear line to lba32. Be aware that compact,
linear, and lba32 shouldn't be used together.
4)run `lilo` (This installs your new configuration.)
5)reboot and see what happens. If things don't work boot the dos/win
floppy, and do a `fdisk /mbr`. This should at least get you back where
you were before. You could also try linear, but I doubt it will work in
this case.
If this doesn't work need you will need to use some other boot manager
like grub, or repartition your drive. I generally create a 20meg /boot
partition as the first partition. Then my kernel is always within 1024
cylinders. Then I put Windows on the second parition, as windows as
always needs to be within the first 1024 to boot. I generally mark the
/boot partition active, and install lilo there, as windows likes to
overwrite the mbr. When I reinstall windows I can simply mark the first
partition as bootable via dos/windows fdisk.
This is rather complex. You really only need to put /boot as the
first partition, and keep a linux boot floppy in order to run lilo.
PS- If you can't make a windows/dos boot floppy then you can save your
mbr via this shell script. (Remember you need to "chmod 755 mbr.sh"
before you run it.)
ftp://ftp.valinux.com/pub/support/flory/mbr.sh
--
Solving people's computer problems always
requires more hardware be given to you.
(The Second Rule of Hardware Acquisition)
Samuel J. Flory <[EMAIL PROTECTED]>
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list