You already installed Linux on your networked desktop PC and now
you want to work with files stored on some other PCs in your
network. This is where autofs comes into play.
This tutorial shows how to configure autofs to use CIFS to
access Windows or Samba shares from Linux Desktop PCs. It also
includes a tailored configuration file.
autofs just seems like such a huge nasty hack to me. Does anyone know if there are any advantages to doing this rather than just putting one line in /etc/fstab?
I've never used it but from the article it seems that it would be usefull from a sysadmin/desktop support position - instead of $ sudo mount -t smbfs //cluelessnoob/c$ /mnt/tmp -o username=bofh Password: $ rm -rf /mnt/tmp/Documents\ And\ Settings/noob/My\ Documents
The advantage of AutoFS comes when you have several/many servers, and/or you're using a laptop that is not always connected to the LAN.
Putting everything in fstab means you either mount everything on boot-up (and depend on the kernel to handle disconnects) or mount things manually. AutoFS allows you mount filesystems (not just network filesystems) on demand, simply by accessing a directory or file.
Accessing Windows or Samba shares using AutoFS
You already installed Linux on your networked desktop PC and now you want to work with files stored on some other PCs in your network. This is where autofs comes into play.
This tutorial shows how to configure autofs to use CIFS to access Windows or Samba shares from Linux Desktop PCs. It also includes a tailored configuration file.