oHi, I have a weird problem with my partition table. I recently installed a raid IDE controller card and attached two additional 120GB drives to my system, giving a total of about 360GB. Anyway after installing the card and the drives the Gentoo linux install I had refused to boot... Asssuming that this was because the partition table had now changed, I did my best to try and correct the situation to reflect the new state of affairs. Previously my main partitions had been on /dev/hdc, this was simply because I got the primary and secondary ide channels mixed up, so ineffect, hdc was my secondary master drive. Anyway after adding an IDE PCI Raid controller (I have no intention of using the raid features, I just wanted additional IDE channels) my dev/hdc suddenly switched to being /dev/hdg.
My partition table was divided up into 4 partitions /dev/hdc (now apparently /dev/hdg) was partitioned as 200MB /boot ext3 514MB Swap 31GB / EXT3. and about 80GB NTFS for Windows.
Anyhoo, as far as I understood grub, this meant (when my disc was listed as hdc) that /boot was (hd1,0) / was (hd1,2) and swap well... swap isn't relevant to grub at this point I think.
Anyway now that my partition table had changed to hdg I assumed this meant that /boot was now (hd6,0) and root was now (hd6,2)
In any case I edited Grub accordingly as now follows:
initrd (hd6,0)/boot/initrd-2.6.0-test6 /root=/dev/discs/disc6/part2 vga=791
# non linux partition
title=Windows XP Professional
However, despite doing this I still cannot boot gentoo, or Windows for that matter, and the bootloader quits with a message saying /root hdg2 not found (or something similar).
What am I missing? How should grub.conf look if I am to make sure I can boot both Gentoo and windows - and also get my boot splash partition selection image back again?
Any input anybody can offer would be appreciated.
M'k... I kind of worked it out that, as I have 3 harddisks, the third harddisk should always appear to grub to be (hd2,0) - since it should go in the order (0,0) (0,1) (0,2) and so on...
However since adding the card, there is no longer any directory called /dev/discs which is where grub is looking for some of my partitions above. Instead there appears only to be a reference in /dev to /dev/hda2 /dev/hdc (both NTFS) /dev/hdg1 /dev/hdg2 and /dev/hdg3 which are /boot swap and / respectively. So the whole patition table arrangement has changed - and I am I'm afraid utterly confused. Is there some way i can see my partition table in the same way Gentoo linux sees it? Like some kind of Gui like CFDISK or something, or is there a way to automatically configure grub to find the correct partitions to boot from?