Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Automount SAMBA (Windows) share points at boot' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Automount SAMBA (Windows) share points at boot
Authored by: rmueller on Jan 28, '05 10:05:12AM

FWIW,

OS/X is suppose to be based on the BSD kernel correct?

FOR it's worth, one should be able to automount ANY filesystem in the /etc/fstab.. Well Apple as usual doesn't play by any rules or industry standards.

I've tried putting an "APPLESCRIPT" in the STARTUP items that calls a shell script..

I've tried setting up a cron job as root user to run the script.

I am resorting to Linux hack on one of my Linux mgmt boxes of an expect script to autologon to the MAC and run the script..

Frankly I have too many MACs and the stupid people that use them to phuck with each manually. I have too many other duties to babysit Mac users.







[ Reply to This | # ]
Automount SAMBA (Windows) share points at boot
Authored by: edthered on Feb 04, '05 10:59:55AM

:)

That's the same problem I've been having... but enough about Apple's bastardization of *nix... ;)

I did find a command, I think on here but as usual I can't remember what it is now, that will load fstab into NetInfo. So you can set up your NFS mounts in fstab as you normally would, then load the fstab into NetInfo. It actually works, except for one small but somewhat fatal problem I'm having....

I'm mounting my apache (var/www) directory on a linux server and using Dreamweaver, I have the problem with all editors I have used though so it's not a DW problem, to edit the files on the server. The problem I have run into is that if DW sits for some time without any activity on the mount, the mount disappears to DW (or whatever) and I get the nice little notice box that says "your files have been deleted.....blah, blah".

I've mounted the /var/www directory from the linux box to /var/www on the mac and reset apache on the mac to use this directory, so I can have different versions of php to test scripts with. Apache on the mac doesn't seem to have a problem with this and even after I get the message from DW about the files disapearing, I can hit the web server on the mac and everything is there. What I have figured is that the NFS mount is really going through automount via NetInfo and is not hard mounted at /var/www and that automount is, for some reason that I can't really imagine, disconnecting the mount if it's not being used. If an app like finder or apache wants the mount back, it'll remount and everythings ok. But editors don't do a "search" type call through the finder, I'm just guessing on this one, so they see the file as being deleted.

As you can imagine this is a real pita when your trying to get some work done.

So my question to add to the mix is:

Does anyone know of a switch or a way to make the NFS mounts "persistant" to automount so that it won't disconnect them if it thinks they are idle? Right now I'm using SMB mounts on the linux server to mount the directories, but I really don't like having passwords for the users hanging around in files for anyone to find, so automounting SMB at startup is out of the question.



[ Reply to This | # ]