I realize this is an older topic but I have tried every single suggestion on here to no avail, on Ubuntu Lucid 10.04 x64 desktop.
I found a solution to my problem, after 3 days of debugging and searching the net so I thought I'd share it here.
I have the combination of a M$ Server08 with authenticated shares that I'd like to mount on startup (all entries on my fstab), which worked great. The problem was at shutdown...
My /etc/fstab looks like:
I was getting the CIFS VFS cmd 50 errors on shutdown or reboot. I tried:
#WINDOWS SERVER SHARES
//184.108.40.206/user /media/user cifs credentials=/etc/samba/.smbcredentials,file_mode=0777,dir_mode=0777 0 0
//220.127.116.11/ITEngShare /media/ITEngShare cifs credentials=/etc/samba/.smbcredentials,file_mode=0777,dir_mode=0777 0 0
//18.104.22.168/EngineerShare /media/EngineerShare cifs credentials=/etc/samba/.smbcredentials,file_mode=0777,dir_mode=0777 0 0
//22.214.171.124/ITEngShare/ScannedDocs /media/ScannedDocs cifs credentials=/etc/samba/.smbcredentials,file_mode=0777,dir_mode=0777 0 0
- Using Max Durden's script at the beginning of the post
- Changing the shutdown order of my scripts (rc0.d and rc6.d)
- Adding the umount -a command to my /etc/gdm/PostSession/Default
- Changing my umountfs.sh to a number smaller than my wpa-ifupdown
- Using various different scripts found in various other sources for this problem
I also was using network-manager for gnome, which a lot of people mentioned as being one of the culprits for the system hang during shutdown and reboot.
Finally I installed wicd and removed network manager; That solved the shutdown issue (although I am not convinced that my drives are being properly unmounted due to the sheer speed of shutdown... Someone might be able to shed light on this one?), but it created a new problem: Nothing was getting mounted at startup, due to the fact that wicd will not connect to the network until well into the GDM session has started.
So the solution was simple: Add the network information manually to /etc/network/interfaces. That causes ifup to pick it up during bootup before fstab is read, hence giving me consistent results.
Just add your interface to the file /etc/network/interfaces. In my case I added to the bottom of the file (static IP):
I hope this helps others that are frustrated by this seemingly overlooked issue with Ubuntu.
iface eth0 inet static
I forgot to add my rc0.d and rc6.d as they stand today:
lrwxrwxrwx 1 root root 19 2010-08-25 11:49 K20mono-xsp2 -> ../init.d/mono-xsp2
lrwxrwxrwx 1 root root 17 2010-08-25 09:22 K20postfix -> ../init.d/postfix
lrwxrwxrwx 1 root root 14 2010-08-26 13:40 K20wicd -> ../init.d/wicd
lrwxrwxrwx 1 root root 19 2010-08-23 11:26 K74bluetooth -> ../init.d/bluetooth
-rw-r--r-- 1 root root 353 2009-09-07 14:58 README
lrwxrwxrwx 1 root root 29 2010-08-23 11:26 S10unattended-upgrades -> ../init.d/unattended-upgrades
lrwxrwxrwx 1 root root 22 2010-08-23 11:26 S15wpa-ifupdown -> ../init.d/wpa-ifupdown
lrwxrwxrwx 1 root root 18 2010-08-23 11:26 S20sendsigs -> ../init.d/sendsigs
lrwxrwxrwx 1 root root 17 2010-08-23 11:26 S30urandom -> ../init.d/urandom
lrwxrwxrwx 1 root root 20 2010-08-23 11:26 S35networking -> ../init.d/networking
lrwxrwxrwx 1 root root 22 2010-08-26 11:32 S40umountnfs.sh -> ../init.d/umountnfs.sh
lrwxrwxrwx 1 root root 20 2010-08-23 11:26 S60umountroot -> ../init.d/umountroot
lrwxrwxrwx 1 root root 14 2010-08-23 11:26 S90halt -> ../init.d/halt