Results 1 to 10 of 207

Thread: how to: automatically umount cifs partitions

Threaded View

  1. #39
    Join Date
    Aug 2010
    Beans
    6

    Re: how to: automatically umount cifs partitions

    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:

    Code:
    #WINDOWS SERVER SHARES
    //192.0.0.212/user	/media/user cifs credentials=/etc/samba/.smbcredentials,file_mode=0777,dir_mode=0777 0 0
    //192.0.0.212/ITEngShare	/media/ITEngShare cifs credentials=/etc/samba/.smbcredentials,file_mode=0777,dir_mode=0777 0 0
    //192.0.0.212/EngineerShare	/media/EngineerShare cifs credentials=/etc/samba/.smbcredentials,file_mode=0777,dir_mode=0777 0 0
    //192.0.0.212/ITEngShare/ScannedDocs	/media/ScannedDocs cifs credentials=/etc/samba/.smbcredentials,file_mode=0777,dir_mode=0777 0 0
    I was getting the CIFS VFS cmd 50 errors on shutdown or reboot. I tried:

    • 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):

    Code:
    auto eth0
    iface eth0 inet static
    address 192.0.0.208
    netmask 255.255.255.0
    gateway 192.0.0.253
    dns-nameservers 192.0.0.212
    I hope this helps others that are frustrated by this seemingly overlooked issue with Ubuntu.

    Edit:

    I forgot to add my rc0.d and rc6.d as they stand today:

    Code:
    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
    Last edited by imota; August 26th, 2010 at 07:07 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •