Hello everyone,
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)
I've read the manual & googled for info but I am unsure as to the correct sequence of events to accomplish a G R U B install using the MBR as a starting point. I presently use a CD bootdisk to access FC2.
Any links or help would be appreciated.
Dave White
On Wed, 2004-08-04 at 11:04 -0400, David White wrote:
Hello everyone,
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)
I've read the manual & googled for info but I am unsure as to the correct sequence of events to accomplish a G R U B install using the MBR as a starting point. I presently use a CD bootdisk to access FC2.
Any links or help would be appreciated.
Dave White
Dave:
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 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
On Wed, 2004-08-04 at 22:15 -0400, David White wrote:
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
shouldn't that be (hd0,10) ?
# 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
need to have chainloader +1 command also, I thought that Dos and Win2k were on separate drives try making this line rootnoverify (hd1,0)
Scott
Dave White
David White wrote:
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
Do you actually need to set the primary partition active?
My set-up is this: 1. Install Win98 (Dos should be the same). Let it create a physical partition of a suitable size, and leave the rest blank. 2. Install Win2K. Let it create a partition for itself (specify the size. It will create an extended partition covering the whole of the disk, and a logical partition of the requested size. It will also copy the DOS bootsector to C:\bootsect.dos. 3. Install Fedora. Partition as required: Fedora is quite happy having everything in logical partitions. Install Grub to the MBR. 4. Modify /boot/grub/grub.conf somewhat as follows:
title Fedora Core (Linus kernel 2.6.7) root (hd0,5) kernel /boot/vmlinuz-2.6.7 ro root=/dev/hda6 acpi=force title Windows 2000 rootnoverify (hd0,0) chainloader +1 title Windows 98 rootnoverify (hd0,0) chainloader /bootsect.dos
Hope this gives you ideas...
James.
James Wilkinson wrote:
David White wrote:
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
Rodrigo, Scott, & James,
A big "Tip of the Hat" for all your input on finalizing my grub.conf
Grub.conf now works for pure MsDos.
I have one hard drive & dos is in the first primary partition. (I use it to restore drive_image backups etc.)
AFAIK there is no pure way to boot directly to dos when win 2000 is also installed. (2nd primary hard drive)
FWIW here is what I did.
Downloaded a dos program bootpart v2.5 and made a copy of the dos boot sector (512 bytes) ...named the file dosboot.bin Copied dosboot.bin to C:\ on the 1st primary partition. Booted to a dos floppy & reloaded the system files - A:\sys C: Rebooted to GRUB
I can now boot to FC2, Win2000, & MsDos
grub.conf (dos portion)
# Loading MsDos
title MsDos v6.22 rootnoverify (hd0,0) chainloader /dosboot.bin
This is a great newsgroup...3rd week using Linux and the threads have helped me to resolve issues and redirect my thinking.
Thanks everyone,
Dave White
David White wrote:
James Wilkinson wrote:
David White wrote:
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
Rodrigo, Scott, & James,
A big "Tip of the Hat" for all your input on finalizing my grub.conf
Grub.conf now works for pure MsDos.
I have one hard drive & dos is in the first primary partition. (I use it to restore drive_image backups etc.)
AFAIK there is no pure way to boot directly to dos when win 2000 is also installed. (2nd primary hard drive)
FWIW here is what I did.
Downloaded a dos program bootpart v2.5 and made a copy of the dos boot sector (512 bytes) ...named the file dosboot.bin Copied dosboot.bin to C:\ on the 1st primary partition. Booted to a dos floppy & reloaded the system files - A:\sys C: Rebooted to GRUB
I can now boot to FC2, Win2000, & MsDos
grub.conf (dos portion)
# Loading MsDos
title MsDos v6.22 rootnoverify (hd0,0) chainloader /dosboot.bin
This is a great newsgroup...3rd week using Linux and the threads have helped me to resolve issues and redirect my thinking.
Thanks everyone,
Dave White
GRUB provides "hide" and "unhide" commands to enable booting msdos or windows when both are installed on a system. Google should provide numerous examples. I think this would provide a simpler solution.
Fred Grant wrote:
David White wrote:
James Wilkinson wrote:
David White wrote:
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
Rodrigo, Scott, & James,
A big "Tip of the Hat" for all your input on finalizing my grub.conf
Grub.conf now works for pure MsDos.
I have one hard drive & dos is in the first primary partition. (I use it to restore drive_image backups etc.)
AFAIK there is no pure way to boot directly to dos when win 2000 is also installed. (2nd primary hard drive)
FWIW here is what I did.
Downloaded a dos program bootpart v2.5 and made a copy of the dos boot sector (512 bytes) ...named the file dosboot.bin Copied dosboot.bin to C:\ on the 1st primary partition. Booted to a dos floppy & reloaded the system files - A:\sys C: Rebooted to GRUB
I can now boot to FC2, Win2000, & MsDos
grub.conf (dos portion)
# Loading MsDos
title MsDos v6.22 rootnoverify (hd0,0) chainloader /dosboot.bin
GRUB provides "hide" and "unhide" commands to enable booting msdos or windows when both are installed on a system. Google should provide numerous examples. I think this would provide a simpler solution.
I could not find any examples dealing with pure msdos. I did try the hide and unhide commands but with not luck. I would prefer a simpler solution.
Good Luck, Dave
install ms-dos first, then win2000 cause this will create a boot menu and finish with the fc instalation
the bootup process will follow like this... firt menu: fc and microsoft system, if you select ms system, then it goes to the second menu with ms0dos and w2k for cosing
----- Original Message ----- From: "David White" djwhite@snet.net To: fedora-list@redhat.com Sent: Wednesday, August 04, 2004 12:04 PM Subject: Installing boot loader in Master Boot Record on a Running System
Hello everyone,
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)
I've read the manual & googled for info but I am unsure as to the correct sequence of events to accomplish a G R U B install using the MBR
as
a starting point. I presently use a CD bootdisk to access FC2.
Any links or help would be appreciated.
Dave White
-- fedora-list mailing list fedora-list@redhat.com To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
--- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.734 / Virus Database: 488 - Release Date: 4/8/2004