Automount

Decided to drop my permanent mounts and go with automount instead. Why? Well I don’t access those folders all the time, they are mainly for backup so mounting only when I need them seemed like a better idea.

I modified the /etc/auto.master file and created a new file named /etc/auto.nosebleed. Contents shown below.

# auto.master file

/mnt/nosebleed /etc/auto.nosebleed –timeout=60 –ghost

# auto.nosebleed file

mp3 -fstype=cifs,rw,noperm,guest ://10.0.0.200/Mp3
ebooks -fstype=cifs,rw,noperm,guest ://10.0.0.200/eBooks
movies -fstype=cifs,rw,noperm,guest ://10.0.0.200/Movies
scratch -fstype=cifs,rw,noperm,guest ://10.0.0.200/Scratch
software -fstype=cifs,rw,noperm,guest ://10.0.0.200/Software
tv-shows -fstype=cifs,rw,noperm,guest ://10.0.0.200/Tv-Shows
videos -fstype=cifs,rw,noperm,guest ://10.0.0.200/Videos

My options,

–timeout=60 will set the ideal time for the mount. If there is not activity for 60 seconds the path will be unmounted.

–ghost will enable the user to see the mountable directory without mounting them.

2 Responses to “Automount”

Author comments are in a darker gray color for you to easily identify the posts author in the comments

  1. Peter Chen says:

    Hi Danny,

    Thanks for taking time to leave a comment in my post Sultan Sharafuddin, Idris Shah. More hope for Malaysia?. I have responded to your comment.

    Peter (Blog*Star 2006 and 2007)
    Blogger Tips and Tricks

  2. Danny says:

    No worries Peter.

Leave a Reply

© 2008-2009 The Danesh Project
Powered by Wordpress and made by Guerrilla. Best viewed in Mozilla Firefox