Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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...
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?
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)
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
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.