LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 03-02-2006, 07:14 AM   #1
boToo
Member
 
Registered: Aug 2003
Distribution: Kubuntu
Posts: 49

Rep: Reputation: 15
problem dual booting with grub


Hi
I have Gentoo installed on my system. I ghosted my winxp onto one of my partition. I could not boot into windows but gentoo is fine. when i chose windows, i got Error 12: Invalid device requested. I tried some of the solution i found google and still getting same error. following is my partion table and grub.conf.

Disk /dev/hda: 30.0 GB, 30005821440 bytes
255 heads, 63 sectors/track, 3648 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 1 13 104391 83 Linux
/dev/hda2 14 141 1028160 82 Linux swap / Solaris
/dev/hda3 142 3648 28169977+ f W95 Ext'd (LBA)
/dev/hda5 142 2054 15366141 83 Linux
/dev/hda6 * 2055 2692 5124703+ b W95 FAT32
/dev/hda7 2693 3648 7679038+ b W95 FAT32



grub.conf

# Which listing to boot as default. 0 is the first, 1 the second etc.
default 0
# How many seconds to wait before the default listing is booted.
timeout 5
# Nice, fat splash-image to spice things up
# Comment out if you don't have a graphics card installed
splashimage=(hd0,0)/boot/grub/splash.xpm.gz

title=Gentoo Linux
# Partition where the kernel image (or operating system) is located
root (hd0,0)
kernel /boot/linux-2.6.15-gentoo-r1 root=/dev/hda5

# The next four lines are only if you dualboot with a Windows system.
# In this case, Windows is hosted on /dev/hda6.
title=Windoes XP
rootnoverify (hd0,5)
makeactive
chainloader +1




With many Thanks
James
 
Old 03-02-2006, 07:31 AM   #2
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
Maybe this will help you: http://www.gentoo.org/doc/en/grub-er....xml#doc_chap3
Also - from the splash-screen grub presents you with - press "c" and there you ara at the grub command-line and can give the commands manually (TAB completes what you typed in).
It might be because you "ghosted" it onto that partition - but that may be a reason but is not a really helpful guess, I know...
 
Old 03-02-2006, 08:11 AM   #3
boToo
Member
 
Registered: Aug 2003
Distribution: Kubuntu
Posts: 49

Original Poster
Rep: Reputation: 15
Thanks jomen,
I already tried that grub error solution, but still same problem, may be i need to reinstall window and then reinstall grub, But i am still not wanting to do it yet. anybody had that problem?
 
Old 03-02-2006, 08:36 AM   #4
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
it is likely MS wants to think c partition is the first partition so study my tutorial on the map command or go in blindly at the command mode and try these (with an enter)

grub appears...press c
root (hd0,5)
hide (hd0,0)
map (hd0,0) (hd0,5)
map (hd0,5) (hd0,0)
makeactive
chainloader +1
boot


if it works copy into your linux /boot/grub/menu.lst file but remove the boot line
ps there is a gap between each bracket set
 
Old 03-02-2006, 05:32 PM   #5
boToo
Member
 
Registered: Aug 2003
Distribution: Kubuntu
Posts: 49

Original Poster
Rep: Reputation: 15
hi aus9
Thanks for your help,i could booted to window after issuing those command. but after i issued makeactive , i got error 12 again, but after boot command , it just straight into windows. then i edited grub.conf, but when i chose windows, it still give me same error, i guess it stuff at makeactive.
Thanks again for ur help
 
Old 03-02-2006, 05:45 PM   #6
boToo
Member
 
Registered: Aug 2003
Distribution: Kubuntu
Posts: 49

Original Poster
Rep: Reputation: 15
Hi
i could boot into both of them now, all i did was commented makeactive. my grub.conf was same as the the one in my post
grub.conf

# Which listing to boot as default. 0 is the first, 1 the second etc.
default 0
# How many seconds to wait before the default listing is booted.
timeout 5
# Nice, fat splash-image to spice things up
# Comment out if you don't have a graphics card installed
splashimage=(hd0,0)/boot/grub/splash.xpm.gz

title=Gentoo Linux
# Partition where the kernel image (or operating system) is located
root (hd0,0)
kernel /boot/linux-2.6.15-gentoo-r1 root=/dev/hda5

# The next four lines are only if you dualboot with a Windows system.
# In this case, Windows is hosted on /dev/hda6.
title=Windoes XP
rootnoverify (hd0,5)
#makeactive
chainloader +1

could anyone offer explaination to it?
Thanks for all ur replies
 
Old 03-02-2006, 06:00 PM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Manuals are a marvellous thing. Quote:
"makeactive Command
Set the active partition on the root disk to GRUB's root device. This command is limited to primary PC partitions on a hard disk."

Personally I can't see the point of ever using it if you are using grub as your loader.
 
  


Reply



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
GRUB help with dual booting kev19 Linux - Newbie 17 12-21-2005 02:26 AM
Problem dual-booting into windows xp with Grub justintime32 Debian 4 03-26-2005 12:27 PM
Grub dual booting assatron Linux - Software 9 11-09-2004 09:11 AM
Dual booting and GRUB jfrye Linux - Newbie 1 10-09-2003 09:48 AM
GRUB / NTLDR problem dual booting lnxusr01 Linux - Newbie 1 07-14-2003 12:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:46 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
Open Source Consulting | Domain Registration