Mount Mac drive

To smooth out some workflow issues around subversion, it would be really useful to be able to mount a Macintosh volume on my Centos server which is running Virtualmin.

Looking in “Disk and Network Filesystems” I see an option under “Add mount” for “Apple Filesystem (hfs)” which implies that what I need is possible.

However, I can find no mention of that option in the Webmin documentation for the module (which in other respects is quite comprehensive) or anywhere else online through a Google search.

Anyone know if this can be done, and if so, how?

The Mac in question is on the same local network as the Virtuamin box, if that makes any difference.

Any help greatly appreciated.

That setting is for mounting volumes attached directly to the server, like a hfs formatted flash drive. If this Mac is over the network, then just use SMB file sharing to mount the required directory.

Make sure file sharing is turned on for the Mac whose files you want to access.

mount -t smbfs -o username=macusername //x.x.x.x/sharename /path/to/mount

the mount command will prompt you for the password to the share.

Thanks lp86, that results in the error

mount: unknown filesystem type 'smbfs'

If I substitute cifs for the smbfs, it goes one step further in that it requests a password, but then throws:

mount error(22): Invalid argument

(I am certainly entering the correct password, so that’s not the invalid argument.)

Any further thoughts?

Looks like sometimes the share name is case sensitive, so make sure they match exactly.