[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: udev memory problem when trying to plug a disk with corrupted partition table



Scott Ferguson a écrit :
> On 20/11/14 12:45, Martin Read wrote:
>> On 20/11/14 01:03, Scott Ferguson wrote:
>>>>> On 20/11/14 04:06, "Morel Bérenger" wrote:
>>>>>> I think it's msdos.
>>> AFAIK mdos partition tables don't support anywhere near that number of
>>> slices.  :(

MS-DOS partition tables support any number of logical partitions.

>> MSDOS extended partitions contain a linked list of logical partitions.
>> It looks, from the pattern of that table, like the linked list has been
>> corrupted so as to form a cycle.

Indeed, after logical partition 8 it seems to loop back to logical
partition 6.

> A dd of the first 512 bytes will show you whether you've overextended
> your MBR. If you have - that will explain the corruption (dos is limited
> to 512b).

No, the MBR does not contain the chained extended partition tables.

> The somewhat good news is that it's fixable.

Yes. If recovery tools such as testdisk or gpart cannot fix the loop, my
tool of choice would be sfdisk to export, edit by hand (keep partitions
1 to 8 only) and recreate the partition table.


Reply to: