automount

smb mounts via fstab or automount?

I have many computers I need to connect to from my Linux box. Network browsing works, but is terribly slow, so I want to create some shortcuts, that I can mount with a single mouseclick what I need from a list. First I thought to modify the fstab and put there entries that would allow me to easily mount smb shares as a normal user. E.g.:

//paula/michael /media/smbmounts smbfs noauto,user,credentials=/home/jeltsch/.smbpasswd1 0 0

autofs, automount, auto.master and mounting samba shares

First I added a symbolic link to /etc/init.d/rc5.d/:

cd /etc/init.d/rc5.d sudo ln -s ../autofs S21autofs

Then I added to the /etc/auto.master the following line:

/media/automounts /etc/auto.smbmounts

Then I created the file auto.smbmounts with the following content:

michael_msbl.helsinki.fi -fstype=smbfs,username=michael,password=## ://paula/michael

Then I created the mountpoint:

sudo mkdir /media/automounts/michael_msbl.helsinki.fi

Then I activated the autofs daemon:

NFS shares & automount

On each computer on the network there is an NFS server running, starting at bootup (edit the runlevel to enable that). In Suse Linux, NFS shares can be configured in YAST (NFS server configuration) or directly in /etc/exports file. Don't configure the remote root to act as local root! Shares should be configured to be accessed only from the local network 192.168.0.0/24 or 192.168.0.0/255.255.255.0. /media/downloads/ 192.168.0.0/255.255.255.0(root_squash,sync) UIDs have to be the same on all computers for the permissions to work properly.

Pages