fsck_hfs on PPC???

Ethan Benson erbenson at alaska.net
Thu Jul 3 18:11:40 EST 2003

On Wed, Jul 02, 2003 at 10:54:25PM -0400, Bill Fink wrote:
> Has anyone been able to get Apple's fsck_hfs with Roman Zippel's
> Linux patch to a usable state on PPC?
> I was able to build it with the following additional patch:

> But when I try and run it on an HFS+ partition:
> gwiz# fsck_hfs /dev/hda9
> /dev/rhda9: No such file or directory
> Can't stat /dev/rhda9
> /dev/hda9 is not a character device
> CONTINUE? [yn] n

heh, it seems to be rather bsd centric.  bsd has this silly concept of
having a r device for raw access, whereas the normal one is used for
filesystems.  ive never noticed that the r device is a char device though...

> So I create a raw device with:
> 	raw /dev/raw/raw3 /dev/hda9
> And then create a symbolic link:
> 	ln -s /dev/raw/raw3 rhda9
> But:
> gwiz# fsck_hfs /dev/rhda9
> ** /dev/rhda9
> does not appear to do anything.  Using the "-f" force option
> doesn't appear to have any effect either.
> gwiz# fsck_hfs -f /dev/rhda9
> ** /dev/rhda9
> It just immediately returns.
> I'm guessing fsck_hfs has only been tested on PC Linux.
> Has anyone gotten it to work on PPC or have any ideas
> about further things to try or investigate.

i don't think architecture has anything to do with the problems your
seeing, it looks to me like it will only work on *BSD.

but i haven't looked at its source, and won't.

Ethan Benson

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

More information about the Linuxppc-dev mailing list