On my laptop I wanted to mount some directories (via samba) from my workstation so I could always access them. That part wasn’t too hard. Be sure to install smbfs (Samba file system utilities) and put the following line in your /etc/fstab:

//zeus/mtersmitten/Muziek /media/samba/zeus/muziek      cifs     _netdev,credentials=/home/mtersmitten/.cred,iocharset=utf8,ro     0       0

/home/mtersmitten/.cred will contain your samba credentials like this:


So the samba path is //zeus/mtersmitten/Muziek and /media/samba/zeus/muziek is the local directory (on the laptop) where we want to mount it to. cifs is the filetype and ro means read-only.

Now comes the annoying part! When rebooting the laptop it would take forever to disconnect the mount(s) and I would get this kinds of errors:

CIFS VFS: Server not responding
CIFS VFS: no response for cmd 50 mid 30

Probably because the wireless connection already was terminated and the smb mount not… Fortunately, thanks to whereofwecannotspeak, I found a solution 🙂

“To unmount Samba shares before shutting down network services, run the following commands as root”

ln -s /etc/init.d/umountnfs.sh /etc/rc0.d/K15umountnfs.sh
ln -s /etc/init.d/umountnfs.sh /etc/rc6.d/K15umountnfs.sh

Et voilà, the errors were gone!


1 comment so far

Add Your Comment