Re: resizing hfs+ partition
On Mon, Feb 14, 2005 at 08:08:17AM -0500, John Harrold wrote:
> Sometime in February Sven Luther assaulted the keyboard and produced:
> | Well, can you download the above code and compile a parted based on it ? I
> | guess then you need to create a small hfs+ journaled partition, and resizie
> | it, and verify that the data on it still becomes available. Using md5sum and
> | such.on all files of the pre-and-post-resize filesystem, both under linux and
> | hfs+. You could probably even do a :
> | for file in `find /path/to/journaled/hfs+/partition -type f`; do md5sum $file >> md5sum.txt; done
> | And after the resize you test it with :
> | md5sum -c md5sum.txt
> While this will tell you if the individual bits of a file are ok, wont this
> method of verification miss some seemingly important pieces of metadata
> like last modification time, file permissions, etc.? The metadata in and of
> itself isn't important, however, the important aspect here is the desire to
> detect any corruption. Now I have no idea how to conveniently check the
> metadata and stuff.
Indeed, you can probably do a ls -lR and diff the result or something such.
Still, the aim of the above is both to test if the files have changed, but it
will also detect any filesystem inconsistency rather quick, i suppose. Not
sure about the journal though.
Maybe you can run whatever fs-check utility is available on mac os X on it ?