LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 06-16-2006, 07:45 AM   #1
katanajf
LQ Newbie
 
Registered: Jan 2005
Location: MA, US
Distribution: Suse 9.1
Posts: 10

Rep: Reputation: 0
boot.ini Dual boot XP and Fedora Core 5


First I will start off saying that I have installed on previous systems a dual boot of XP and Fedora or Suse. I usually used the method of installing grub on the master boot record which I never had a problem with. But with my Machine now I have a Gateway gt5032 and it has a recovery partition. This pc doesnt like writing grub to the MBR. Normally I would blast that partition and just use an XP install disk but I have some programs that i use that came with my pc that I like. The recovery disk that came with my pc places the recovery partition back on the system which is annoying.

So now I am trying to find a way to use the windows boot loader instead of grub. If anyone could provide some insight I would appreciate it.

Below are the instructions that I tried and did now work:
http://linuxweblog.com/node/140

Installing Dual Boot Windows 2000 or XP and Linux - Page 4
Dual Booting

Once the Fedora installation is complete, start fedora in rescue mode and make a copy of the Linux boot sector onto the FAT32 partition and name the copy "fedora.bin".

1. To start fedora in rescue mode:
* Boot from your install disk 1
* At the Linux prompt, enter "linux rescue"
* Specify your keyboard and language stuff. Your Linux partitions will get mounted under "/mnt/sysimage".
* Run the following command:

#chroot /mnt/sysimage

This command makes "/mnt/sysimage" your root directory. So the filesystem looks the way it would if you booted up normally.
2. To make a copy onto a FAT32 (vfat) partition:
* Mount the FAT32 partition if it's not mounted yet. If it isn't listed in the df output, it hasn't been mounted yet.

#mount -t msdos /dev/hda5 /win

* Run the following command, which copies the first sector of the /boot partition, 512 byte size to the /win partition as the binary file, fedora.bin:

#dd if=/dev/hda2 of=/win/fedora.bin bs=512 count=1

* Substitute the path for the if= parameter (the input file) with the appropriate partition from the previous step, set if= to /dev/hda2. Substitute the path for the of= parameter (the output file) with whatever is appropriate for your system. The example here (of=/win/fedora.bin) is for copying onto a FAT32 partition called win.
3. Reboot into Windows
4. Copy the fedora.bin file to C:\
5. Run notepad and edit "C:\boot.ini". Note that C:\boot.ini is a hidden system file, so it probably won't show up in Windows Explorer. To edit the file, try: "Start->Run" and enter: "notepad C:\boot.ini". Add the following line at the end: "c:\fedora.bin="Fedora Linux".
If your C: filesystem is NTFS (not FAT32), you must edit C:\boot.ini as a user with administrator-level privileges.

Below is what my "boot.ini" file looks like:

[boot loader]

timeout=5

default=multi(0)disk(0)rdisk(0)partition(1)\WINNT

[operating systems]

multi(0)disk(0)rdisk(0)partition(1)\WINNT="Microsoft Windows 2000 Professional" /fastdetect

c:\fedora.bin="Linux Fedora"

6. Reboot again. You should be able to pick either Windows or Linux. Selecting Linux will start GRUB
 
Old 06-16-2006, 08:06 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 10,447

Rep: Reputation: 622Reputation: 622Reputation: 622Reputation: 622Reputation: 622Reputation: 622
Personally I can't see why the recovery partition should make any difference; half the PCs out there have them now.
Anyway, that procedure is pretty standard - should work so long as you installed grub to the root partition during the install, and you specified that same partition in the "dd".
 
Old 06-16-2006, 08:40 AM   #3
katanajf
LQ Newbie
 
Registered: Jan 2005
Location: MA, US
Distribution: Suse 9.1
Posts: 10

Original Poster
Rep: Reputation: 0
Now when I installed fedora I am not sure if grub was installed because when I finished the install it rebooted and could not get back into fedora. In most cases that I have installed any linux there is the first stage of installing the software and then it reboots and then there are some more setup options. I view grub.conf and it had 2 options in there, one for fedora and one for windows. I assumed that grub did install but I could be wrong. I will try to install grub by command line when i get home.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dual boot with FC4 and XP removing the partition with boot.ini fakie_flip Linux - Software 1 01-07-2006 02:48 PM
Dual Boot - XP & Suse 9.1 - Need help with boot.ini johnnytriumph Linux - Newbie 1 04-05-2005 06:18 AM
Fedora Core 3 Dual Boot, Dual Hard drives, Grub Boot Loader Denali03 Linux - Newbie 1 03-04-2005 01:44 PM
Configuring XP boot.ini for Dual Boot jarnix Linux - Software 5 02-02-2005 02:37 AM
Dual Boot Win2000Pro & RH 8 w/Boot.ini JinxU1 Linux - Newbie 9 01-31-2003 09:49 PM


All times are GMT -5. The time now is 07:01 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration