LinuxQuestions.org
Review your favorite Linux distribution.
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-17-2007, 09:45 AM   #1
DNRN
LQ Newbie
 
Registered: Oct 2006
Location: Denmark
Distribution: Fedora 7
Posts: 6

Rep: Reputation: 0
Grub error


Hi people,
I have some problems whit my grub configuration. I have installed Fedora and wont a dual boot between that and XP. So I got two HD's, and from a fdisk -l i gets:

Code:
Disk /dev/sda: 81.9 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1          13      104391   83  Linux
/dev/sda2   *          14        9964    79931407+  8e  Linux LVM

Disk /dev/sdb: 40.0 GB, 40016019456 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1        4864    39070048+   7  HPFS/NTFS
And here's my grub.conf:

Code:
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.23.1-21.fc7)
	root (hd0,0)
	kernel /vmlinuz-2.6.23.1-21.fc7 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
	initrd /initrd-2.6.23.1-21.fc7.img
title Fedora (2.6.21-1.3194.fc7)
	root (hd0,0)
	kernel /vmlinuz-2.6.21-1.3194.fc7 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
	initrd /initrd-2.6.21-1.3194.fc7.img

#boot=/dev/sdb
title=Windows XP
	rootnoverify (hd0,1)
	makeactive
	chainloader +1
I have also tried to set the sdb disk to (HD1,0). I really hope someone can help me out..
 
Old 11-17-2007, 10:32 AM   #2
Duck2006
Member
 
Registered: Sep 2006
Distribution: Ubuntu 8.04 Hardy Heron LST
Posts: 346

Rep: Reputation: 33
Have you tryed changing this

Quote:
title=Windows XP
rootnoverify (hd0,1)
makeactive
chainloader +1
to this

Quote:
title=Windows XP
rootnoverify (hd1,0)
map (hd0) (hd1)
map (hd1) (hd0)
makeactive
chainloader +1
 
Old 11-17-2007, 10:40 AM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
We also need to know what was installed first, and what errors you are getting. eg do you get a grub menu when you boot up?

The map command is required because Windows has to think it is #1 (ego issue, I guess)

And GRUB has to be installed so that it points to its files in /boot/grub. This would be automatic when installing Fedora.

for sdb1, the equivalent "grubspeak" is indeed hd1,0 Grub uses only numbers and counts from zero

sda1 = hd0,0
sda2 = hd0,1

sdb1 = hd1,0

etc.
 
Old 11-17-2007, 10:52 AM   #4
DNRN
LQ Newbie
 
Registered: Oct 2006
Location: Denmark
Distribution: Fedora 7
Posts: 6

Original Poster
Rep: Reputation: 0
Smile

Thanks now my grub is working perfectly

I have a really bad power supply to my computer with only two correct DC outputs. So I can only have one HD and the DVD player or both HD's So when I installed Fedora I only had one HD and my DVD of cause. But then I had to inset the second HD (the one with XP) and reconfigure grub.

Now all works tanks to you guys
 
  


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
Sofware RAID 1 + Fedora Core 3 + Boot Error L1 + GRUB 21 ERROR najeebsyed2 Linux - Hardware 0 10-25-2007 02:20 PM
Grub error 17, and wont reinstall using grub-install! chiefreborn Linux - General 6 06-06-2007 11:29 AM
Error Grub stage2 loading error (using FC6) on seperate hdd Anifield Linux - Newbie 7 03-20-2007 02:14 PM
Grub Error 17: Cannot mount selected partition and other Grub problems Sebastian Naitsabes Linux - General 1 07-05-2005 09:33 AM


All times are GMT -5. The time now is 05:42 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