It's very tempting for me to go on a rant here about GParted and Linux, but I'll do my best to avoid it. :)

Question:

Why does GParted claim that my disk is corrupted and GPT, whereas the Disk Utility thinks everything is fine?

My only partition on the disk (NTFS) has Windows 7 x64 on it, and has absolutely no problems -- I never had any problems with it, and I ran CheckDisk to make sure.

Why is GParted behaving this way?

(I was going to post this on AskUbuntu, but since GParted isn't really limited to Ubuntu, I posted it here. I'm using Ubuntu 11.04 x64's boot disc.)

Screenshot

link|improve this question

69% accept rate
Try running TestDisk. – Hello71 Jun 6 '11 at 0:44
@Hello71: And do what? – Mehrdad Jun 6 '11 at 0:46
@Mehrdad: Rewrite the partition table? – Hello71 Jun 6 '11 at 0:47
@Hello71: O___O What makes you think the problem is with the partition table and not GParted? Like I said, the Ubuntu disk utility says it's fine, and Windows boots just fine and Disk Management also works fine. – Mehrdad Jun 6 '11 at 0:47
@Hello71: Thanks for the advice... I rewrote the partition table, and now I get INT18: BOOT FAILURE on boot. Was that what was supposed to happen? x__x – Mehrdad Jun 6 '11 at 1:37
show 4 more comments
feedback

1 Answer

up vote 2 down vote accepted

Chances are the disk used to be a GUID Partition Table (GPT) disk. Such disks have partitioning data from sectors 0-33 (typically) and also in the last 33 sectors of the disk. If a GPT disk is repartitioned by a GPT-unaware utility, that utility is likely to replace just sector 0 (the MBR), leaving most of the GPT data intact. Technically, the disk is then an MBR disk; however, some partitioning tools, including many Linux tools that are based on libparted (including GParted) become confused by this. They may show the disk as being completely blank or show the old GPT partitions rather than the new MBR partitions. This is a bug in libparted, but it's triggered by some inconsistent data on the disk.

The solution is to wipe the old GPT data. This can be done various ways, but the simplest is probably to use FixParts, which is designed for this and some other partition table repair tasks. Alternatively, you could use dd to wipe sector 1 (numbered from 0) and the final sector on the disk; that's where the GPT signatures that are confusing libparted reside.

Sorry I didn't get here sooner, Mehrdad. My guess is that when you rewrote the partition table you also wiped out the boot loader in the MBR. Re-installing your boot loader should fix that problem. It's possible that you wrote the wrong partition table, though, which would be harder to fix.

link|improve this answer
Lol, sorry? For what?! That's excellent information you have there, I appreciate the answer! :) I'll take a look at it when I get the chance. (It was just a virtual machine, don't worry... my data isn't at risk. :P) – Mehrdad Jun 21 '11 at 4:19
From your later comments it sounded as if you'd already replaced the partition table, possibly rendering my information moot. If you're still having the problem, though, then it's still relevant.... – Rod Smith Jun 22 '11 at 4:18
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.