Mounting mac drive under linux

 

Firstly setup the drive or directory you wish to share on the Mac.
This is usually under System Preferences -> Sharing

The easiest way to share is to use SMB. Click Options and choose SMB (Windows).
You may need to create a password at this point which we use later on.

Now from your linux machine, make sure you have smbfs installed:
sudo apt-get install smbfs

Create a mount point for this drive / directory:
sudo mkdir /mnt/mac

Next, get the share name by running:
smbclient -L 1.2.3.4

I see a line like this:
Sharename Type Comment
--------- ---- -------
chris Disk User Home Directories

Now simply mount the SMB share:
sudo mount -t smbfs //1.2.3.4/chris /mnt/mac -o username=Chris,password=chris,uid=chris,forceuid

The 'uid' and 'forceuid' together ensure the user 'chris' on your local machine is the owner of the directory and subsequent files, otherwise you are unable to write to the share.