LinuxQuestions.org
Visit Jeremy's Blog.
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 11-22-2006, 05:50 PM   #1
srich1979
LQ Newbie
 
Registered: Nov 2006
Distribution: Fedora Core 6
Posts: 6

Rep: Reputation: 0
XP not found in GRUB - Dual Booting FC6/XP?


Yes, this is a VERY common thread, i'm sorry. I've poured thru some of the threads with no resolve and i'm on a massive time crunch. Its my first time dual-booting. I formatted my 153 GB SATA HD and partitioned using XP PRO Setup as follows:
-created a 20 GB NTFS partition for XP to live.
-installed XP on that partition succesfully.
Used Knoppix QTParted to partition the rest of the unallocated space.
- created ext3 Linux partition 6 GB for the FC6
- created swap Linux partition 2 GB
- created FAT32 shared XP/Linux partition 100 GB
- installed FC6 on the ext3 partition
I think i chose the default grub option in FC6 setup but not sure. I guess i didn't do this correctly because now i can't get to XP at all. I hit enter at FC6 bootup to enter GRUB menu, and i see Fedora Core 6 and "Other".
Selecting other just returns:
Code:
Booting "Other"

rootnoverify (hd1,0)
chainloader+1
(eventually I just CTRL ALT DEL to restart...) the more i read it sounds like this has something to do with MBR or /boot partition, but I'm really not that savvy enough to follow all that...
I know that the device should be /dev/sda because i installed on an SATA drive... so I've definetly missed something.
I hoping for a solution to 'reinstall grub' or some bootloader to get back to a menu with XP and FC6...

I dont know the commands for fdisk and what not to get the device information you may need to support my problem - let me know how to be more precise here...
 
Old 11-22-2006, 06:06 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Jessie 8.4
Posts: 5,873

Rep: Reputation: 348Reputation: 348Reputation: 348Reputation: 348
From a console, run fdisk without parameters to get a list of disks and partition. Pipe the output through tee to get a text file which you can copy/paste into your post. Something like: fdksk | tee fdisk.txt

It might help to append the contents of /etc/fstab and /boot/grub/grub.conf (of menu.lst if that's what FC uses).

cat /etc/fstab >> fdisk.txt
then su to root because grub.conf is probably root access only.
Then, cat /boot/grub/grub.conf >> fdisk.txt

Edit fdisk.txt to add some whitespace between the appended files and the output of fdisk.

Copy it to the clipboard, and paste it into your post.

rootnoverify (hd1,0)
chainloader+1

This is telling me that xp is on the second drive, not the first. In that case you would have to re-map the drives in order for xp to boot.

rootnoverify (hd1,0)
map (hd0) (hd1)
map (hd1) (hd0)
makeactive
chainloader+1

or something along those lines. You can get more info from the grub manual.
 
Old 11-22-2006, 06:30 PM   #3
srich1979
LQ Newbie
 
Registered: Nov 2006
Distribution: Fedora Core 6
Posts: 6

Original Poster
Rep: Reputation: 0
Ok - a couple issues my novice eyes already see:
1.) i have XP installed on the 250 GB drive at hda1 - so thats being recognized there. I don't need it, but i'd prefer avoiding wiping that drive, can we just ignore it somehow?
2.) No /boot partition

Suggestions?

Code:
Disk /dev/hda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1       30400   244187968+   7  HPFS/NTFS

Disk /dev/hdc: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdc1   *           1        9729    78148161   55  EZ-Drive

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        2611    20972826    7  HPFS/NTFS
/dev/sda2            2612        3394     6289447+  83  Linux
/dev/sda3            3395        3655     2096482+  82  Linux swap / Solaris
/dev/sda4            3656       17362   110101477+   b  W95 FAT32

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

LABEL=root              /                       ext3    defaults        1 1
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
tmpfs                   /dev/shm                tmpfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
sysfs                   /sys                    sysfs   defaults        0 0
/dev/sda3               swap                    swap    defaults        0 0


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,1)
#          kernel /boot/vmlinuz-version ro root=/dev/sda2
#          initrd /boot/initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,1)/boot/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.18-1.2798.fc6)
	root (hd0,1)
	kernel /boot/vmlinuz-2.6.18-1.2798.fc6 ro root=LABEL=root rhgb quiet
	initrd /boot/initrd-2.6.18-1.2798.fc6.img
title Other
	rootnoverify (hd1,0)
	chainloader +1

END OF FILE
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 
Old 11-22-2006, 07:40 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,833

Rep: Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820
Add the map commands as suggested above.
Looks like FC messes with the /boot/grub/device.map - can we see a listing of it ???.
 
Old 11-23-2006, 08:59 AM   #5
srich1979
LQ Newbie
 
Registered: Nov 2006
Distribution: Fedora Core 6
Posts: 6

Original Poster
Rep: Reputation: 0
can someone help with the 'map' command?

I need to boot the XP installation on /dev/sda1... so how do i map that? I dont' really understand what i read in the MAP section of the GRUB manual.

Code:
[root@localhost ~]# cat /boot/grub/device.map
# this device map was generated by anaconda
(hd1)     /dev/hda
(hd0)     /dev/sda
Does that help?
 
Old 11-23-2006, 04:06 PM   #6
Valkyrie_of_valhalla
Member
 
Registered: Jan 2006
Location: Romania
Distribution: Suse 12.0, Slackware 12.1, Debian, Ubuntu, Gentoo
Posts: 301

Rep: Reputation: 30
Try using

Quote:
Booting "Other"

rootnoverify (hd0,0)
chainloader+1
hd0 in the bootloader is the primary master, from what I know, and 0 is the first partition. The count starts, from what I know, from 0.
Yet, I may be mistaking...
 
Old 11-23-2006, 05:35 PM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,833

Rep: Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820
The file you need to update is (probably) /boot/grub/menu.lst.
Used to be that Redhat/Fedora called it /boot/grub/grub.conf - it might still be but I don't think so anymore.
Just add the lines as suggested by bigrigdriver.

As for how to edit it, I don't know Fedora at all, but I'd be looking in the menus for a root terminal. Failing that, open a normal terminal and enter "su -" (no quotes), and respond with your root password. Then "gedit /boot/grub/menu.lst" - this is a fullscreen editor. Update and save.
Presumes FC uses gnome - if KDE, try something like kate instead of gedit.
Any problems with this, I suggest you ask over in the Fedora forum.
 
Old 11-24-2006, 05:05 AM   #8
Zamber
LQ Newbie
 
Registered: Nov 2006
Location: Poland
Distribution: xubuntu 6.10
Posts: 5

Rep: Reputation: 0
Thanks, helped for me ^^ :P
 
  


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
Problem Dual Booting WinXP and FC6 woms14 Fedora 4 11-07-2006 09:54 PM
Need help booting FC6 CD with Grub silentpetey Linux - General 1 11-05-2006 02:25 PM
GRUB help with dual booting kev19 Linux - Newbie 17 12-21-2005 03:26 AM
Dual booting and GRUB jfrye Linux - Newbie 1 10-09-2003 10:48 AM
GRUB, and dual booting sammyballz Linux - General 9 10-14-2002 11:26 PM


All times are GMT -5. The time now is 10:05 PM.

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