Fedora Linux Support Community & Resources Center
  #1  
Old 2nd December 2008, 06:31 PM
glennzo Offline
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Age: 57
Posts: 14,623
Installing Windows after Fedora: Fixing the GRUB boot menu

Because you always ask.
How do I install XP when I've already installed Fedora?

There really isn't any need for me to write this up and post it in the forum. There are already so many posts and threads about dual booting that we really don't need any more, but since I was doing this today I thought that I'd make notes and post the result here. Hopefully one or two people will benefit from it.

This applies to a disk that is already partitioned and people using just about any release of Fedora and many other distros. I have an 80GB disk that was already partitioned with 4 - 20GB EXT3 partitions. Fedora was installed on the first partition, or /dev/sda1. I wanted to install Windows XP on this disk and then be able to dual boot without losing my current Fedora installation. I decided that I would install XP on the 4th partition, or /dev/sda4. The first thing I did was to boot the computer with my GParted Live disk. I told the partitioner to delete the 4th partition. Then I told it to create a new partition in the free space and format it as NTFS. Once those 2 operations were complete I rebooted the computer and began the XP install. When the installer asked me what partition to install to I naturally chose the 1 NTFS partition that I had just created and let it format the partition again as NTFS. You've all installed XP before so you know the routine. The formatting completed and the install continued. When it was done the system rebooted and went immediately into XP. No options for any other OS here. Windows is the boss, right? Wrong. Now it's time to take back control of the boot process. Insert your Fedora installation DVD and reboot the computer. Choose Rescue Installed System. I'm using the Fedora 10 install DVD and it appears that the options to select keyboard and language have been removed. You can handle those questions yourself if you see them. You may also see the option to start the network. I've never had the need so I choose No here. The first screen I see after selecting rescue mode is one entitled simple "rescue". It tells me that:
Quote:
The rescue environment will now attempt to find your Linux installation and mount it under /mnt/sysimage. You can then make any changes required to your system. If you want to proceed with this step choose "Continue". You can also choose to mount your file systems read-only instead of read-write by choosing "Read-Only". If for some reason this process fails you can choose "Skip" and this step will be skipped and you will go directly to a command shell.
Choose "Continue" here. Now you see a screen entitled "System to Rescue" and it asks you "
Quote:
What partition holds the root partition of your installation?
In my case my choices are /dev/sda1 and /dev/sdb2 (a second hard disk with a Linux partition or two). Of course I want to choose /dev/sda1 here so I press OK. Another window entitled "Rescue" is shown telling you "
Quote:
Your system has been mounted under /mnt/sysimage. Press <return> to get a shell. If you would like to make your system the root environment, run the command chroot /mnt/sysimage. The system will reboot automatically when you exit from the shell.
Choose OK here. You are dropped to the shell and you see a black screen with a command prompt,
Quote:
sh-3.2#
. Type chroot /mnt/sysimage and press enter. If there are no errors you will still be at the command prompt. Type grub-install /dev/sda and press enter. You should see
Quote:
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script "grub-install".

# this device map was generated by anaconda
(hd0) /dev/sda
(hd1) /dev/sdb
sh-3.2#
Type exit and press enter. Type exit again and press enter and the system will reboot. You should see a boot menu offering Fedora and Other. Other will be Windows XP.

Please feel free to reply here if you see any errors and I'll make the appropriate change(s). Good luck.
__________________
Glenn
The Bassinator © ®

[SIGPIC][/SIGPIC]
Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
Closed Thread

Tags
boot, fedora, fixing, grub, installing, menu, windows

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
grub problem: sda fedora, sbd windows --> can't boot windows hdc Using Fedora 7 24th January 2009 10:28 PM
Installing grub using windows xp and no media (not dual boot) GarethMarsh Installation, Upgrades and Live Media 12 11th March 2008 04:50 AM
GRUB boot menu: Two fedoras ? Fedora and Fedora Base ? myisty Using Fedora 2 2nd June 2007 10:52 PM
How to repair my boot menu on FC4 with Windows Boot menu of XP HOME? dimnet Hardware & Laptops 3 7th October 2005 06:30 PM
Fedora core 3 freezed in GRUB boot menu stevenlien Using Fedora 2 7th May 2005 01:46 AM


Current GMT-time: 03:42 (Wednesday, 23-07-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat