Mac/*nix gurus: Automount to a cifs share

mikea

Touchdown! Greaser!
Gone West
Joined
Feb 12, 2005
Messages
16,975
Location
Lake County, IL
Display Name

Display name:
iWin
JESSE! JASON!

I've invested enough time trying to figure this out. I know can I get it with a few more hours of hacking but....

I want to get automount (or even mount) to mount one or more shares on my HP Media server to my Mac so, among other things, I can have kmttg and pytivo automatically have access to access the tivo files and other video files.

My black box HP Media Server is not so cleverly named Blackie. I can mount the shares as Windows shares.

When I mount the share with tivo files in it manually using Finder I end up with:

Code:
//WORKGROUP;MIKE@BLACKIE/RECORDED TV on /Volumes/WORKGROUP;BLACKIE-1 (nodev, nosuid, mounted by mike)

Actually the tivo files are in ../RECORDED TV/tivo but I can grok that.

Besides not yet having figured the right syntax to mount or automount my dilemma is the usual of how to escape the embedded space in the path. Single quotes are not working.

I gather from reading the man pages that what I want is make an entry in /etc/fstab for automount to use.

Something like:

Code:
/WORKGROUP;MIKE@BLACKIE/RECORDED TV/tivo /Users/mike/Video/blackie/tivo cifs nodev nosuid 0 0

??? There is no mount_cifs or cifs type.

Even though I now longer do it directly for my living, I've got Unix sysadmin experience going back 20+ years but in my old age I'd appreciate a hint because I've spent enough of my life hacking at solutions to stuff like this by now. :D

I'd appreciate a hint from the gurus!

I've been pointed to mountwatcher but paying $20 for something that should be doable for free in Unix is way too Mac-think for me to abide. Another 8 hours or so of hacking will save me the $20. (Hmmmm..... Am I worth $2 an hour?)
 
Last edited:
I don't have a means to test this, but once you've manually mounted
the share, go to System Preferences->Accounts->Login Items and select
the share to mount on login.

I *think* that might work.
 
you generally escape the spaces with a \

It'd be something like:
/WORKGROUP;MIKE@BLACKIE/RECORDED\ TV/tivo

I don't really have time right now to mess with it. But when I do I'll give it a shot.
 
Not sure this will work with your version of Mac? But... after mounting it as you described above:

1) Run "Sytem Preferences"
2) Select "Accounts"
3) Select the User you want to change by double clicking
4) Click on "Login Items"
5) Drag and drop your share over to the Login Items pane. That will add it.
6) Close "System Preferences".

Will auto-mount on reboots, now.
 
you generally escape the spaces with a \

It'd be something like:
/WORKGROUP;MIKE@BLACKIE/RECORDED\ TV/tivo

I don't really have time right now to mess with it. But when I do I'll give it a shot.
I'm not a Mac guy but in *nix you sometimes get burnt by multiple parsings and have to use 2 (and rarely 3) backslashes.
 
Back
Top