How to mount HFS+ (journaled) hardisk?
Hi! I would like to mount a firewire attached harddisk fdisk and formated using Mac Os X. The filesystem is hfs+ (journaled). It has Apple style slice partitions. I think my kernel is compiled to support that. And HFS+ of course (can mount hfs+ cds). I have Code:
hfs using hfs /dev/sda gave me the following output: Code:
|
You need hfsplus feature compiled as built-in or as module in your kernel.
/sbin/modprobe -l | grep hfsplus # if compiled as module, modprobe it cat /proc/filesystems Did you try to mount it with the mount command ? mount -t hfsplus /dev/sda /mnt/macdrive_mountpoint |
The following information I got it from parted
Code:
Using /dev/sda |
So, does the mount command return errors ? Maybe it is hfs, not hfsplus
mount -t hfs /dev/sda3 /mnt/mount_point |
Quote:
There is hfs though. I am positive I can mount hfs+ cd with it. hfsplus is not one of the switch identified by mount. only hfs. I tried mount -t hfs /dev/sda /mnt/mountpoint and get wrong fs type, bad superblock on /dev/sda Sigh.. Thanks Cedrik for your suggestions. |
Your cd are not in hfs+ if you mount it successfully with hfs, you need definitivly hfsplus feature enabled in kernel
config. Example : when I try to mount the Panther install CD with hfs (not hfsplus) I see only a few files but if I mount it with hfsplus, I see all the files. |
:)
Thanks. I have downloaded the hfsplus from http://www.ardistech.com/hfsplus/ In the process of compiling the patched kernel. Taking this opportunity to migrate to 2.6.9. Have been stuck with 2.6.7 since 2.6.8.1 didn't work for me. Do I need to upgrade my hfs tools to include hfsplus? If yes, how do I go about it? |
Frankly I use only the hfsplus (compiled as module) that come with standard kernel sources, I never
patched the kernel for that and I use mount command to mount hfs / hfs+ drives, I never used other softwares than mount. Why did you need the patch, your hfsplus driver didn't work ? |
Quote:
Am recompiling a clean 2.6.9 without patch now. Will post the results here later. man pages sieze to work after migrating to 2.6.9. EDITED: Do I compile both hfs and hfsplus? Or just hfsplus? |
if hfsplus is not listed in /proc/filesystem and you enabled it as module in kernel config, just
modprobe hfsplus befor cat /proc/filesystem To mount a drive you don't need to modprobe the module when using mount, it is loaded automatically |
I compiled hfsplus in to the kernel (built-in) not as module (2.6.7 and 2.6.9-1st attempt). Still trying again. And waiting for the kernel to compile now.
|
If it fails again, try to compile it as module, it always worked for me this way. I have 2 modules,
hfs and hfsplus and they are loaded when I mount an apple cdrom (I added filesystem hfs and hfsplus in fstab for cdrom) or when I mount a drive with -t hfs or -t hfsplus |
It works!
EDITED: If I knew I can read/write HFS+ drives I would have save quite a sum of money on harddisk enclosures. Got it working by compiling hfs and hfsplus in 2.6.9 kernel as modules. Thanks Cedrik for your patient, and ideas. |
All times are GMT -5. The time now is 10:17 AM. |