Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
Okay, I am having problems with grub. I had it working a few weeks before, but recently I decided to mess around and try Windows Vista. So to accomplish this I reformatted part of my hda so I could have 2 good partitions for Windows. Now my old hda1 partition is now hda5. Well, since then, Vista overwrote my MBR and I couldn't get into Gentoo (never bothered, had too much to do). Well, last night I went and used the live CD to chroot and whatnot into my gentoo installation and re-installed grub in my mbr. Now when I try to boot into XP (I reformatted my Vista partition) I get the dreaded '12' error.
My grub.conf
Code:
# Which listing to boot as default. 0 is the first, 1 the second etc.
default 1
# How many seconds to wait before the default listing is booted.
timeout 30
# Nice, fat splash-image to spice things up :)
# Comment out if you don't have a graphics card installed
splashimage=(hd1,2)/grub/biosplash.xpm.gz
title=Gentoo Linux
# Partition where the kernel image (or operating system) is located
root (hd1,2)
kernel /kernel-2.6.13-rc6 root=/dev/hdb4
# The next four lines are only if you dualboot with a Windows system.
# In this case, Windows is hosted on /dev/hda5.
title=Windows XP
rootnoverify (hd0,4)
makeactive
chainloader +1
My Drives/Partitioning
Code:
Disk /dev/hda: 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/hda1 2 17480 140400067+ f W95 Ext'd (LBA)
/dev/hda2 1 1 8001 83 Linux
/dev/hda5 * 2 17480 140400036 7 HPFS/NTFS
Partition table entries are not in disk order
Disk /dev/hdb: 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/hdb1 1 16008 128584228+ 7 HPFS/NTFS
/dev/hdb2 16014 16076 506047+ 83 Linux
/dev/hdb3 * 16009 16013 40162+ 83 Linux
/dev/hdb4 16077 19457 27157882+ 83 Linux
Partition table entries are not in disk order
When I installed grub, I did this:
Code:
grub> root (hd1,2)
Filesystem type is ext2fs, partition type 0x83
grub> setup (hd0)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 16 sectors are embedded.
succeeded
Running "install /boot/grub/stage1 d (hd0) (hd0)1+16 p (hd1,2)/boot/grub/stage
2 /boot/grub/menu.lst"... succeeded
Done.
Anyone have any suggestions?
Last edited by a10waveracer; 08-23-2005 at 09:39 AM.
See if that works.
Error 12 means:
" Invalid device requested
This error is returned if a device string is recognizable but does not fall under the other device errors. "
Sorry, I'm used to "I can't boot Linux because of Windows..." and I wrote that without paying much attention. But doesn't Windows require to be installed on a primary partition and not on a logical one?
Originally posted by harken Sorry, I'm used to "I can't boot Linux because of Windows..." and I wrote that without paying much attention. But doesn't Windows require to be installed on a primary partition and not on a logical one?
I don't believe so, because if I put in my XP Pro CD and boot into the recovery console, it will overwrite the MBR and I can get into XP just fine.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.