PDA

View Full Version : Fdisk Issues


SirCave
December 8th, 2005, 05:17 AM
I am attempting to dual boot a winxp and Gentoo system on a Compaq Presario 900 notebook with a 40 GB HD. I used Partition Magic 8 to split the drive into 30 and 10 GB with XP on the first 30 Gigs. Then I setup the swap file on the front of the second partition and let partition magic know that I would immediately install a linux system. I am using the Universal install-x86-universal-2005.1-r1.iso CD. The output of
fdisk -l
Disk /dev/hda: 40.0 GB, 40007761920 bytes
255 heads, 63 sectors/track, 4864 cylinders
Units = cylinders of 16065 * 512 = 8225280

Device Boot Start End Blocks Id System
/dev/hda1 1 3575 28716156 17 Hidden HPFS/NTFS

/dev/hda2 * 3643 4864 9815715 83 Linux
/dev/hda3 3576 3642 538177+ 82 Linux swap / Solaris


is what I get. Then I issue


fdisk /dev/hda2
Disk /dev/hda2: 10.0 GB, 10051292160 bytes
255 heads, 63 sectors/track, 1222 cylinders
Units = cylinders of 16065 * 512 = 8225280


and I create several partitions and then print the output using "P" and this is what I get:


Device Boot Start End Blocks Id System
/dev/hda2p1 1 15 120456 83 Linux
/dev/hda2p2 16 265 2008125 83 Linux
/dev/hda2p3 266 408 1148647+ 83 Linux
/dev/hda2p4 409 1222 6538455 83 Linux


Not only does this look extremely wrong to me, I am not able to mkefs. Any Clues?

kage
December 8th, 2005, 04:43 PM
hda2p1? It looks like you are somehow using individual slices inside a partition (the way bsd is set up), but I'm pretty sure gentoo is not supposed to do that, lol.

Instead of running 'fdisk /dev/hda2' try running 'fdisk /dev/hda', then delete hda2, create an extended partition, and put all of your gentoo partitions under this. I think that should avoid the problems you are running into currently.

SirCave
December 9th, 2005, 03:02 AM
Worked like a charm. Thank you.