Re: Installing boot loader in Master Boot Record on a Running System

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

 



Scott Talbot wrote:

On Wed, 2004-08-04 at 11:04 -0400, David White wrote:


I would like to install G R U B to boot the following:

1st Primary - MsDos (300mb)
2nd Primary - Win 2000 Pro (ntldr)
Logical Drive in extended partition - FC2 (hda11)



This should be fairly straightforward. Once you are in Fedora, open a
terminal window and 'su -' to root, enter root's password.

enter fdisk -l

this should give you a list of the way fedora sees all of your drives
and partitions. assuming yours is fairly standard next do 1 of

grub-install /dev/hda
or
grub-install /dev/hdc

depending on which is your boot disk.  You need to look a your BIOS in
order to find out which is your boot disk. Just find the area where it
selects to boot from which devices in what order.

Once you have done that, edit the file /boot/grub/grub.conf in your
favorite text editor. you need the following lines for each of the
windows OSs


title WinDOHs (this title will show up in the boot menu)
rootnoverify (hd0,0) this is grub's way of seeing drives hd0 = hda ,0 is the first boot block
the one for the disk
so use (hd1,0)for the win 2k drive
chainloader +1 instructs grub to execute code at bootblock


The grub-install should already have made an entry for Fedora and May
have made an entry for 1 windows OS and called it "Other" or something.

I haven't actually used this for a DOS system, but my system has Win2k,
Mandrake, FC2 and FC3Test1 and works well

HTH

Scott



Scott,

Thanks for the input...

I couldn't... find any combo of commands that would boot to MsDos
...can't determine a method to make 1st primary partition active.
But it dual boots to FC2 & WinDoze 2000


Here it is...fwiw
# Grub Configuration File


# By default, boot the first entry.
# The first entry (here, counting starts with number zero, not one!)
# will be the default choice.
default 0


# Boot automatically after 10 secs unless interrupted by keystroke
timeout 10


# If 1st entry doesn't work, fallback to the second entry.
fallback 1


# Set Background Image (doesn't work)
# splashimage=(hd0,11)/boot/grub/splash.xpm.gz


# Set default colors.
color yellow/blue blue/white


# For booting GNU/Linux
title Linux - Fedora Core2
kernel (hd0,10)/boot/vmlinuz-2.6.6-1.435.2.3 root=/dev/hda11


# For loading Windows 2000
# chainload /bootsect.dos


title Windows 2000 Pro (SP4)
rootnoverify (hd0,1)
chainloader +1


title    MsDos v6.22 (doesn't work)
rootnoverify (hd0,0)
makeactive

Dave White



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux