HFS HDD+USB drive enclosure
i have a HFS (Mac) formatted hard disk that I need to read in a USB drive enclosure. I tried to do "mount -t hfs /dev/sda1 /mnt/usb" and sometimes it mounts, but when I go to /mnt/usb, all thats there is this:
[root@RH9 brian]# ls /mnt/usb/ Desktop DB Desktop DF Finder System Where_have_all_my_files_gone? The only file that says anything is Where_... It says this Quote:
|
I would think the filesystem type would be hpfs not hfs.
|
Just tried that micheal, but it says hpfs not supported by kernel.
|
Probably need to recompile the kernel.
|
Indeeed, you've got an HFS+/HFS Extended/HPFS filesystem there, not HFS. That's Apple's newfangled filesystem, and it's been my general experience that it's supported under Linux about as well as Microsoft NTFS...which is close to not at all.
It IS possible to make it work, but if it's in any way possible, you're better off reformatting the drive to normal HFS. The Mac will read the old format without a hiccup, and you're not losing any substansial features on the Mac OS end. I ran my Mac OS X box from an HFS partition with no problems for quite some time. -Andrew |
Why not format it has FAT or FAT32. Apple already included support for FAT since the PowerPC chip came out.
If your friend, someone else or you unfornately came across a Windows system you can still access the drive. |
That's true. On the Mac end, though, HFS will be a bit more robust(supporting icons, creator/type signatures, resource forks, etc). A Mac can't run programs directly off of a FAT drive, like it would be able to with HFS. Plus, I just like HFS better, having grown up on Macs :)
It's mostly a question of how the drive is going to be used. If it's going to get carried around everywhere, and it's just storing boring ol' data anyway, Electro's idea makes more sense. If the drive is going to be used to share stuff between the Mac and the Linux machine, go HFS. -Andrew |
Actually, I just need to read the mac files on the drive to back them up. It's not like a permanent situation, just need to back up to cd. And I think I led you all astray, Now I think its HFS+
|
Well, since you're just doing a backup, you at least don't need to worry about getting the drive to work in read/write mode, which can be difficult with experimental filesystems. Readonly should do fine.
You need the hfsplus and hfsplusutils packages, available here: http://ftp.penguinppc.org/projects/hfsplus/ (Does anybody have a link to any kind of semi-official repository for this those?). I'm afraid I've never actually attempted to use those packages, and they don't seem to be well documented or supported at all. Has anybody out there successfully used HFS+ in Linux before? Your input would be more helpful than mine :P -Andrew |
All times are GMT -5. The time now is 11:43 AM. |