(Answer) (Category) Linux on PowerPC FAQ-O-Matic : (Category) System Configuration : (Category) Disks :
Mounting an HFS partition
Here is how you mount your Macintosh HFS partition.  The same 
process will work for any Macintosh HFS formatted drive 
(Zip, Jazz, whatever), but NOT with any HFS+ formatted drive.
With luck HFS+ support will be available Real Soon Now.
(When it becomes available, I'd appreciate it if some enterprising
individual would update this note with the appropriate 
instructions to make it work.)

You should do the following as root:

1. Find out the device number for the HFS drive in question
(ie. /dev/sda5).  An easy way to list the available partitions
is to use the command "pdisk -l".

2. Make a mount point.  This is where you will "cd" to to
access your HFS drive.  For example: "mkdir /mac"

3. Add a line to the file /etc/fstab that looks like:
/dev/sda5        /mac          hfs    defaults,umask=0,quiet 0 0

   ^^^^          ^^^^          ^^^          ^^^^^
partition id     mount point   fs type   mount options

This tells the system to mount the partion read-write and
sets the file permissions to rwx for everybody.  If you
are concerned with file-system damage, replace "defaults" with
"ro" to force read-only access.  For a removeable, use
"user,noauto" instead so any user can use the command
"mount /mac" whenever a disk is available.  (Use
"umount /mac" before you try to eject it.)

5. You can mount the partion immediately with the command
"mount /mac".  The filesystem will automatically be properly
mounted and unmounted on subsequent reboots.

If you nuke your drive, restore from your BACKUP and 
add to this note if applicable.
brad.s@usask.ca
If you mount HFS partitions read/write, be aware that Linux doesn't write critical disk information as often as MacOS. I've been bitten by this once, when accidentally pulling the power cord off the wall while an HFS partition was mounted (and modified half an hour before)... The partition was damaged beyond repair; hopefully I had a backup :-)
colin.cholley@mail.dotcom.fr
To mount an HFS partition, you can also use 'xhfs' which provides a graphical interface for transferring files between partitions. You will need to have root privileges to use it. (You don't need root privileges if the file permissions on xhfs have been appropriately modified, however.)
Another alternative is to (as root) use 'hmount' to make a virtually mounted filesystem that is accessed using the command line. See 'man hmount' and refer to the man pages described therein.
mashl@ncsa.uiuc.edu
There is now a sourceforge hfsplus project which allows you to patch the latest 2.4x kernals allowing you to read hfsplus partitions but still no write access yet.
http://sourceforge.net/projects/linux-hfsplus/
dmoulder@csse.monash.edu.au
[Append to This Answer]
Previous: (Answer) MkLinux Installation Problems on G3 All-in-Ones
Next: (Answer) Software RAID with Linuxppc
This document is: http://www.jonh.net/cgi-bin/lppcfom/fom?file=567
[Search] [Appearance]
This is a Faq-O-Matic 2.717d.
Hosted by anduin.org and SourceForge Logo