Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Partition Table royally screwed! Help!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
kLy
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2005
Posts: 108

PostPosted: Wed Feb 02, 2005 6:23 pm    Post subject: [Solved] Partition Table royally screwed! Help! Reply with quote

Hi,

I was running WindowsXP and had the following partitions:

hda1 WinXP - NTFS
hda5 Shared vfat

I then used partition magic 8.0 to resize the partitions to make some space in the extended partition:

hda1 WinXP - NTFS
-- Space --
hda5 Shared vfat

Then started installing Gentoo, created a swap and a root partition with fdisk (I know I didn't make a boot part but that's beside the point)

so I had:

hda1 WinXP - NTFS
hda6 Linux Swap
hda7 ReiserFS
hda5 Shared vfat

Strangely, the numbering was wrong so I looked at the extended options in fdisk and chose to correct the partition order so it ended up like this:

hda1 WinXP - NTFS
hda5 Linux Swap
hda6 ReiserFS
hda7 Shared vfat

Great. I didn't finish installing Gentoo since I couldn't get GRUB to install without a boot partition. (Can someone tell me how to do it without a boot partition?) So I decided I'd boot up Partition Magic and resize some partitions to make space for a boot partition.

But whoa! Both the "rescue" (DOS) and Windows versions of Part Magic say that the partition table is corrupt and then just quits!

Aaaah!

I can boot into windows no probs and it seems like the partitions are ok (even from the M$ disk manager) but Partition Magic will not run at all!!

I do need Partition Magic since I always use it to resize. Is the partition table truly messed? Or is it just in a state that Partition Magic doesn't recognise? And is there some way to fix it?

Please help!

Thanks a lot!


Last edited by kLy on Thu Feb 03, 2005 6:14 pm; edited 1 time in total
Back to top
View user's profile Send private message
kLy
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2005
Posts: 108

PostPosted: Wed Feb 02, 2005 7:15 pm    Post subject: Reply with quote

More info:

I'm running the AMD64 version of Gentoo 2004.4

fdisk still works now but trying cfdisk produces: "FATAL ERROR: Bad logical partition 6 enlarged logical partitions overlap"

I take it there's definitely sometime wrong with the partition table then, and not just incompatibility with Partition Magic.

Thanks
Back to top
View user's profile Send private message
kLy
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2005
Posts: 108

PostPosted: Wed Feb 02, 2005 7:30 pm    Post subject: Reply with quote

This is the output from fdisk -l /dev/hda

Code:

Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1        5737    46082421    7  HPFS/NTFS
/dev/hda2            5738        9728    32057707+   f  W95 Ext'd (LBA)
/dev/hda5            5738        5800      506016   82  Linux swap
/dev/hda6            5801        6374     4610623+  83  Linux
/dev/hda7            6375        9728    26940973+   b  W95 FAT32
Back to top
View user's profile Send private message
Sith_Happens
Veteran
Veteran


Joined: 15 Dec 2004
Posts: 1807
Location: The University of Maryland at College Park

PostPosted: Wed Feb 02, 2005 8:07 pm    Post subject: Reply with quote

Not sure if this will help, but the normal id for an extended partition is 5, where as the id for your extended partition is f, for W95 Ext'd. Perhaps a W95 extended partition cannot house a reiserfs or linux swap partition type. I'm not sure if that is the problem, and I'm not sure if you can simply change the id of the extended partition, but that might explain why some programs are having a hard time reading the partition table, and why some think that the reiser partition is overlapping with another extended partition. I would hope at this point that you had backed up the data you have saved on the vfat partition, because fiddling around with the partition table on a non-empty drive can cause data loss. If you do have your data backed up, or have some way of doing so, I would simply suggest that you get rid of all the extended partitons and start again from scratch (leaving your NTFS partition alone of course). As far as installing linux without a boot partition, that is as far as I know impossible. There needs to be some bootable partition on which GRUB and the kernel are installed, and which is marked as bootable in the MBR.
_________________
"That question was less stupid; though you asked it in a profoundly stupid way."
I'm the brains behind Jackass! | Tutorials: Shorewall
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Thu Feb 03, 2005 1:12 am    Post subject: Reply with quote

Sith_Happens wrote:
As far as installing linux without a boot partition, that is as far as I know impossible. There needs to be some bootable partition on which GRUB and the kernel are installed, and which is marked as bootable in the MBR.

Only / (root) is needed, all other partitions are optional.

As far as marking partitions "bootable", that is a DOS/Windows convention. GRUB, LILO, and the Linux kernel pay no attention to the "bootable" flag, and the presence or absence of this flag will not affect booting Gentoo at all.
Back to top
View user's profile Send private message
Sith_Happens
Veteran
Veteran


Joined: 15 Dec 2004
Posts: 1807
Location: The University of Maryland at College Park

PostPosted: Thu Feb 03, 2005 1:39 am    Post subject: Reply with quote

I stand corrected. Like I said, I wasn't sure.
_________________
"That question was less stupid; though you asked it in a profoundly stupid way."
I'm the brains behind Jackass! | Tutorials: Shorewall
Back to top
View user's profile Send private message
kLy
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2005
Posts: 108

PostPosted: Thu Feb 03, 2005 9:45 am    Post subject: Reply with quote

Hi,

I killed both linux partitions and restarted the whole install process but this time using cfdisk. And all is working great :)

Why the hell does gentoo prefer fdisk as the default?
Back to top
View user's profile Send private message
kimchi_sg
Advocate
Advocate


Joined: 26 Nov 2004
Posts: 2969

PostPosted: Thu Feb 03, 2005 10:54 am    Post subject: Reply with quote

kLy wrote:
Hi,

I killed both linux partitions and restarted the whole install process but this time using cfdisk. And all is working great :)

Why the hell does gentoo prefer fdisk as the default?

Forget the rant, just edit the title of your first post in this topic, and insert [SOLVED] into the title. It will make you feel happier. :-D
Back to top
View user's profile Send private message
kLy
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2005
Posts: 108

PostPosted: Thu Feb 03, 2005 6:16 pm    Post subject: Reply with quote

alrighty :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum