fsck_hfs on PPC???
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:
.mod/hfs_endian.h 2003-06-07 22:12:27.000000000 -0400 renamed from .orig/hfs_endian.h 2003-06-07 21:36:40.000000000 -0400 +6 -0
@@ -35,11 +35,17 @@ /* BIG ENDIAN Macros */ /*********************/ #if BYTE_ORDER == BIG_ENDIAN +typedef u_int16_t u_big_int16_t; +typedef u_int32_t u_big_int32_t; +typedef u_int64_t u_big_int64_t; /* HFS is always big endian, make swaps into no-ops */ #define SWAP_BE16(__a) (__a) #define SWAP_BE32(__a) (__a) #define SWAP_BE64(__a) (__a) + #define SET_SWAP_BE16(__d, __a) (__d) = (__a) + #define SET_SWAP_BE32(__d, __a) (__d) = (__a) + #define SET_SWAP_BE64(__d, __a) (__d) = (__a) /************************/ /* LITTLE ENDIAN Macros */
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
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.
-Thanks
-Bill
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Quoted 7 lines · Bill Fink
Has anyone been able to get Apple's
fsck_hfswith Roman Zippel's Linux patch to a usable state on PPC?I was able to build it with the following additional patch:
Quoted 7 lines
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/hda9is 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...
Quoted 16 lines
So I create a raw device with:
raw /dev/raw/raw3 /dev/hda9And then create a symbolic link:
ln -s
/dev/raw/raw3rhda9But:
gwiz#
fsck_hfs/dev/rhda9
**/dev/rhda9does not appear to do anything. Using the "-f" force option doesn't appear to have any effect either.
Quoted 8 lines
gwiz#
fsck_hfs-f/dev/rhda9
**/dev/rhda9It just immediately returns.
I'm guessing
fsck_hfshas 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
http://www.alaska.net/~erbenson/
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/