Mounting HFS Plus with Read Write Enabled on Linux

Using information from the following links, I removed all references CFSwapInt32HostToBig and its dependencies and substituted CFSwapInt32HostToBig with bswap_32.

http://dmunsie.wordpress.com/code/hacks/

http://stackoverflow.com/questions/105252/how-do-i-convert-between-big-endian-and-little-endian-values-in-c/105339#105339

The program compiled (albeit with warning messages).

To run the program, simply use sudo ./a.out /dev/sdXX

where /dev/sdXX is the partition you need to mount.

Then you should be able to mount using the following
sudo mount -t hfsplus -o rw,user /dev/sdXX /media/hfspart

For your convenience, you may find my modified code at the following url:

http://pastebin.com/7rvxR38d

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

%d bloggers like this: