Pages

Showing posts with label cifs. Show all posts
Showing posts with label cifs. Show all posts

Monday, July 16, 2012

Automounting Network partitions

If you have network drives that you would like to be auto-mounted on startup on your Linux box, then the obvious way to do this seems to be to put the appropriate line in /etc/fstab. (Note that for Windows shares, the appropriate packages have to be installed - samba and smbfs).

However, if the fstab is executed before the network comes up, you have a problem - the mount will fail. The workaround is to either
  1. not do auto-mount, OR
  2. delay the mount till the network is up OR
  3. to use a program written specifically for this situation - Autofs.