MAke Redhat 7.3 boot from MBR, How ?

kmthien

Senior member
Oct 8, 2002
363
0
0
Hi folks,

I have installed Win2K and RedHat 7.3 in the same HDD. I have selected to boot RedHat 7.3 from first boot sector when installing it. Hence, I need to insert my floppy disk everytime I need to boot RedHat, or else it will boot into Win2K. Is it possible to make RedHat to boot from MBR using LILO or GRUB ? Please guide me, Thanks !

regards,
kmthien
 

TonyRic

Golden Member
Nov 4, 1999
1,972
0
71
in /etc/lilo.conf you need the boot line to read "boot=/dev/hda" without the quotes, it probably says something different. Also, this would be if you are booting from the first IDE hard disk, it would be like /dev/sda if it were scsi. Also, man lilo.conf is your friend. Don't forget you need to be root to edit this file and run lilo after you save the file.
 

kmthien

Senior member
Oct 8, 2002
363
0
0
Hi,

I don't even has LILO now bcoz I have choosen to boot from 1st boot sector ! My MBR is taken over by Win2K ! So what should I do now ?

kmthien
 

kmthien

Senior member
Oct 8, 2002
363
0
0
Hi,

So how do I insert LILO/GRUB into MBR so that I got a GUI to choose which OS to boot when I power-on my PC ?? Thanks !

kmthien
 

cleverhandle

Diamond Member
Dec 17, 2001
3,566
3
81
It sounds like you need to do some reading to figure out what you're doing. When you've done that, tell us what you've tried or don't understand. And take more than 3 lines to do it, please...
 

kmthien

Senior member
Oct 8, 2002
363
0
0
Hi,

1) Installed Win2K successfully
2) Installed RedHat 7.3 and select to boot from boot sector, also successful.
3) Everytime I need to boot into RedHat 7.3, I need to insert the RedHat bootdisk then I can go inti RedHat OS. Else, will boot into Win2K directly.
4) But now, I regret very much. I want the Redhat Grub loader / LILO to be in MBR. So next time I can select to boot into Win2K / RedHat 7.3 without inserting the RedHat boot disk. This means I wanna RedHat GRUB loader/LILO to take over the MBR.
5) How can I accomplish this task ?
6) Pls help, Thank you !

:: This should more than 3 lines !!

regards,
kmthien
 

Abzstrak

Platinum Member
Mar 11, 2000
2,450
0
0
I'd suggest loading Grub, assuming you have it installed in your redhat and that you running and single IDE drive, then boot to your floppy and get in linux... then run grub (type grub). then at the grub prompt type:
root(hd0,0)
setup(hd0)
quit

then you need to make that grub.conf (after making it link it to menu.lst), so use gedit, pico, vi or whatever and make it like the following (I cant tell you exactly cause I dont know how you partitioned your drive), so change the root(hd0,Y)'s to you correct partitions, and change hda2 to your root partition for redhat


default 0
timeout 30

title=Redhat
root (hd0,0)
kernel /boot/bzImage root=/dev/hda2

title=Windows
root (hd0,5)
chainloader +1