LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   HFS HDD+USB drive enclosure (https://www.linuxquestions.org/questions/linux-hardware-18/hfs-hdd-usb-drive-enclosure-83193/)

JoeyJoeJo 08-18-2003 01:59 PM

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:

Why can't you see your files?

This hard disk is formatted with the Mac OS Extended format. Your files and information are still on the hard disk, but you cannot access them with the version of system software you are using.

How can you access your files?

To access your files you must mount this hard disk on a computer that has Mac OS 8.1 or later installed. To determine the version of system software you�e currently using, choose About This Computer from the Apple menu. If you�e using a version of the Mac OS earlier than 8.1, you must do one of the following: A) upgrade the system software on your computer, B) start up the computer from a hard disk or CD that has Mac OS 8.1 or later, or C) connect the hard disk to another computer with Mac OS 8.1 or later installed.

If you want to access the files without upgrading your system software, start up your computer with the �ac OS 8.1�CD or the �isk Tools PPC�disk, then access your files. Apple recommends that you have the �ac OS 8.1�CD if you plan to reformat any hard disk using Mac OS Extended format.

To continue to use this hard disk with this computer, you must upgrade your system software to Mac OS 8.1.

How do you upgrade your system software?

If you have a version of system software earlier than Mac OS 8, you can order Mac OS 8.1 on the Internet or buy it at a local Apple software reseller.

If you have Mac OS 8 on your computer, you can download the Mac OS 8.1 update from the Internet at http://www.info.apple.com.



Copyright 1998 Apple Computer, Inc. All rights reserved.
Apple and Mac OS are trademarks of Apple Computer, Inc., registered in the U.S. and other countries. PowerPC is a registered trademark of International Business Machines Corporation, used under license therefrom.
What have I done wrong?

michaelk 08-18-2003 02:18 PM

I would think the filesystem type would be hpfs not hfs.

JoeyJoeJo 08-18-2003 02:22 PM

Just tried that micheal, but it says hpfs not supported by kernel.

michaelk 08-18-2003 03:39 PM

Probably need to recompile the kernel.

beaucoup 08-19-2003 12:44 AM

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

Electro 08-19-2003 02:58 AM

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.

beaucoup 08-19-2003 03:12 AM

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

JoeyJoeJo 08-19-2003 09:55 AM

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+

beaucoup 08-19-2003 11:27 AM

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.