Auto mount drives

Chris Jeffries chris at candm.org.uk
Sun May 31 08:56:26 UTC 2009


Request - short version.
1) how to have extra mount commands run at machine start up
2) how to format a command to mount an SMB network volume (Remote OS:
Windows XP SP3) (is it possible by machine published machine name?
currently I am using IP address)
3) how to automatically trigger a mount only when needed (deferred
mount)
OS: Ubunto 8.04


Request - long version
(to hopefully answer question that the above might prompt)

I have been using Ubuntu as my main OS for about 6 months (8.04 Hardy)
and for all practical purposes this is my only contact with Unix/Linux.
I had been using Windows for much longer. I have been a systems analysts
and programmer in the past, so I am happy reading manuals, just need
someone to point me in the right direction.

I have a couple of disk mounts that I would like to happen on machine
start up, but I need some help in formatting the commands and knowing
where to put them.

One is an NTFS drive (the old Windows drive) (and should ALWAYS be
there). I am OK formatting the mount command for this one, just need to
know where to put it.

The other is a network connection to a Windows share on another PC and
may sometimes not be available. I have read the mount.cifs man page but
I am a bit confused about passing it parameters via mount. For example,
both have a user parameter, so how does mount know which is meant? In
this case, I think I need help formatting the mount command, not just
knowing where to put it.

Finally, is there a way of automatically triggering a mount whn an
attempt is made to access a file on the volume prior to it having been
mounted. (i.e. a deferred mount option)










More information about the ubuntu-users mailing list