On Mon, Mar 19, 2007 at 07:55:46PM +0000, MJ Ray wrote:
Eur Ing Chris Green cl@isbd.net wrote: [automount /net filesystem]
What I want is to stop just *one* of these exported file systems being mounted on just my Fedora Core 6 system at work so I can have a local file system there instead.
So, does anyone know if this is remotely possible?
No idea. By your description of /net, I assume that's a /net/hostname/exportedfs - or is that amd?
I can find no documentation at all that really helps, all the autofs documentation I can find concentrates on using autofs to mount floppies and CDs.
I'd anticipate it breaking horribly (as in hard lock) but I'd try starting the automounter, making the directory appear (maybe safer to do this with a ghost or dummy directory) and then mount the local filesystem on that directory (directly or with --bind option).
If you try to do it the other way (make a directory /net/whatever/local and mount the local fs there, then start the automounter), the autofs will be "on top" of the local fs, so be hidden.
It doesn't seem to be like that, the actual directory in question that is automounted (among many others) is /proj/chris. This is mounted from a remote Solaris computer called crusade such that 'mount' reports:-
/proj/chris mounted on crusade:/scratch/chris
(which seems the wrong way around to me, but still). /scratch/chris is a 'real' file system on crusade which is exported by crusade.
/net seems to be just a sort of link between /etc/auto.master and /etc/auto.net. /etc/auto.net is a script which uses the showmount command to find what file systems are exported from where. At least that's what my initial investigation suggests, but as I said I'm totally stuck in trying to find any documentation.