LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-05-2007, 04:32 PM   #1
tekmann33
Member
 
Registered: Nov 2006
Posts: 188

Rep: Reputation: 30
Fedora Core + XP dual boot


I had a Widows XP machine that I wanted to dual boot with Fedora Core 6 but somehow I lost my Windows installation when I installed Fedora. It is not really lost, for when I do the fdisk -l command, I can see the NTFS partition. It just looks like grub doesn't see it.

From what I have read in this forum and others, XP and Fedora are not good bedfellows for dual boot systems.

Until I understand more about the boot loader and partitioning, I would like to uninstall Fedora and go back to my Windows installation and just have a dedicated machine as my Fedora box.

Is there a nice way to 'uninstall' Fedora Core 6 and by doing so, will I get the XP machine back?

Any input would be appreciated.
 
Old 01-05-2007, 04:36 PM   #2
Robert Diggs
Member
 
Registered: Dec 2006
Location: Florida
Distribution: The ones that come in magazines and books.
Posts: 136

Rep: Reputation: 15
Hey,

If you go into the boot.conf file, I think it is anyway, you can alter the file to boot Windows as well. When I installed FC6 it got it perfectly. Just a side not, are you sure that it doesn't recognize it as 'Other' in the grub menu? Make sure you hit a button to get into the boot menu as well. As far as the input goes for adding Windows, I'm not sure. Search around the forums, I'm sure you'll find something. Actually, check out member saikee. He has a link to a walk through on grub.

Regards,

Brandon
 
Old 01-05-2007, 04:43 PM   #3
kernel_geek
Member
 
Registered: Jan 2007
Location: UK
Distribution: Ubuntu/Arch
Posts: 161

Rep: Reputation: 30
ignore what he said its wrong. If your using fedora then your probally using grub. To add a menu to grub do the following:

Start you fedora up

Open a terminal and type the following:

mount /boot

gedit /boot/grub/menu.lst

if it is blank then exit and

gedit /boot/grub/grub.conf

add the following lines at the end

title Windows
rootnoverify (hd0,0) (where (hd0,0) is your windows partition)
chainloader +1
makeactive


Save it

Reboot and enjoy
 
Old 01-07-2007, 12:44 AM   #4
tekmann33
Member
 
Registered: Nov 2006
Posts: 188

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by kernel_geek
ignore what he said its wrong. If your using fedora then your probally using grub. To add a menu to grub do the following:

Start you fedora up

Open a terminal and type the following:

mount /boot

gedit /boot/grub/menu.lst

if it is blank then exit and

gedit /boot/grub/grub.conf

add the following lines at the end

title Windows
rootnoverify (hd0,0) (where (hd0,0) is your windows partition)
chainloader +1
makeactive


Save it

Reboot and enjoy
Just to make sure that I am doing this correctly, here is what I have in menu.lst:

Code:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,1)
#          kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
#          initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=5
splashimage=(hd0,1)/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.18-1.2798.fc6)
        root (hd0,1)
        kernel /vmlinuz-2.6.18-1.2798.fc6 ro root=/dev/VolGroup00/LogVol00 rhgb 
quiet
        initrd /initrd-2.6.18-1.2798.fc6.img
title Other
        rootnoverify (hd0,0)
        chainloader +1
menu.lst (END)
Here is my partition setup:
Code:
[root@BriansRH grub]# /sbin/fdisk -l /dev/hda

Disk /dev/hda: 80.0 GB, 80026361856 bytes
16 heads, 63 sectors/track, 155061 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1       55370    27906448+   7  HPFS/NTFS
/dev/hda2           55383       55575       96390   83  Linux
Partition 2 does not end on cylinder boundary.
/dev/hda3           55575      155056    50138865   8e  Linux LVM
Partition 3 does not end on cylinder boundary.
[root@BriansRH grub]#
So, based on this, my XP addition to the menu.lst file should be the following:

title Windows
rootnoverify (hd0,0)
chainloader +1
makeactive


Is this correct?
 
Old 01-07-2007, 05:30 AM   #5
kernel_geek
Member
 
Registered: Jan 2007
Location: UK
Distribution: Ubuntu/Arch
Posts: 161

Rep: Reputation: 30
exactly right. Obviously reboot after this so you can enjoy . I would personally remove the bit that sais hidemenu this way you get a nice menu without pressing any buttons. Hope this helps. Edit: put the windows stuff before the end bit that sais menu.lst END. edit2: remove the bit trhat sais

title Other
rootnoverify (hd0,0)
chainloader +1

Last edited by kernel_geek; 01-07-2007 at 05:31 AM.
 
Old 01-08-2007, 04:56 PM   #6
tekmann33
Member
 
Registered: Nov 2006
Posts: 188

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by kernel_geek
exactly right. Obviously reboot after this so you can enjoy . I would personally remove the bit that sais hidemenu this way you get a nice menu without pressing any buttons. Hope this helps. Edit: put the windows stuff before the end bit that sais menu.lst END. edit2: remove the bit trhat sais

title Other
rootnoverify (hd0,0)
chainloader +1
Thanks

I am operational again!

Do you know a good online grub tutorial?
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Install Fedora Core 6 with XP to dual boot - XP doesnt boot anymore Blacklisted Linux - Newbie 3 11-07-2006 03:07 PM
how do i dual boot xp and fedora core 4 Duck2006 Linux - Software 13 09-12-2006 06:34 PM
Fedora Core 3 Dual Boot, Dual Hard drives, Grub Boot Loader Denali03 Linux - Newbie 1 03-04-2005 02:44 PM
fedora core 3 - dual boot mashenka Linux - Software 8 01-10-2005 07:04 PM


All times are GMT -5. The time now is 06:40 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration