bug-parted
[Top][All Lists]
Advanced

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

Re: HFS and FAT FS-resizing returning soon (but to a separate library)


From: Jim Meyering
Subject: Re: HFS and FAT FS-resizing returning soon (but to a separate library)
Date: Tue, 24 Jan 2012 10:45:38 +0100

Chris Murphy wrote:
> On Jan 15, 2012, at 1:16 AM, Jim Meyering wrote:
>>> parted 2.3 will not resize a journaled HFS+ volume. It says:
>>> "Error: The sector size stored in the journal is not 512 bytes. Parted
>>> only supports 512 bytes length sectors."
>>>
>>> The disk is an AF 512e disk. Mac OS X sees the sectors as 512
>>> bytes. The VM sees them as 512 bytes as well. I don't understand what
>>> the error is about.
>>
>> It's complaining that _HfsJJournalHeader.jhdr_size != sector_size (512).
>> What is its value for your disk?
>
> Using hfsdebug, it reports jhdr_size is 4096 bytes.

Thanks.
The code (I think I saw this in non-parted code, too) interprets jhdr_size
as the disk's sector size.

Parted's HFS-resizing code was written for 512-byte sectors, with
numerous stack and heap structures hard-coded to that assumption.
That is why it rejects any attempt to resize a disk whose sector size
appears to be different from 512.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]