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: Chris Murphy
Subject: Re: HFS and FAT FS-resizing returning soon (but to a separate library)
Date: Sat, 14 Jan 2012 15:04:04 -0700

On Jan 14, 2012, at 3:50 AM, Jim Meyering wrote:

> 
> I'm restoring resize capability (albeit only via a library)
> that was present in parted-2.3/2.4 and earlier, so one way to check
> is to actually use an older version of parted on HFS+/HFSX file systems.

parted 2.3 successfully resizes (shrinks) an HFS+ volume. fsck_hfs on Mac OS X 
10.6.8 automatically repaired invalid file count and free block count and 
automounted it. Unmounting and manually rebuilding the catalog with fsck_hfs -r 
finds additional problems which are reported to have been successfully repaired.

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.

> 
> If you read the code or documentation, you'll see mention of
> both HFS+ and HFSX, in addition to HFS.

HFS+ != journaled HFS+.

At least Apple considers them different filesystems. Their resize tool 
considered HFS+ to be non-resizable, and will only resize journaled HFS+. 
Parted 2.4 documentation doesn't mention journaled HFS+. The code however does. 
But I'm unable to determine why I get the mentioned error.

> 
> Or you can take a wild guess:
> Would people be complaining about removal of this functionality
> (and would I be taking the time to restore it) if it affected
> only some type of file system that no one uses anymore?

I don't know.


Chris Murphy


reply via email to

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