Page 21 of 21 FirstFirst ... 11192021
Results 201 to 207 of 207

Thread: how to: automatically umount cifs partitions

  1. #201
    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.

  2. #202
    Join Date
    Sep 2007
    Beans
    113

    Re: how to: automatically umount cifs partitions

    Unfortunately here doesn't work

    i've made all the process you mentioned but it happens the same. sometimes i can logoff
    and sometimes not

    i'm using pam_mount.conf.xml to mount shares because i'm using the username and password from my server.
    My machine as for about 60 users and i don't want to use credentials

    i don't know what can i do

    can you help me?

    using: Ubuntu 10.04 LTS
    Last edited by guimenez; October 7th, 2010 at 12:28 PM.

  3. #203
    Join Date
    Jan 2010
    Beans
    34

    Re: how to: automatically umount cifs partitions

    great!
    I had the following msg with ubuntu 10.04 Lucid Lynx on shutdown:

    (the ubuntu ..... screen appeared and hanged, message appeared when pressing [Esc])
    HTML Code:
    Deconfiguring network interfaces  
    Your script works!!

    thanks!

  4. #204
    Join Date
    May 2010
    Location
    Sofia, Bulgaria
    Beans
    145
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: how to: automatically umount cifs partitions

    No luck here after upgrading to 11.04. Any recent cure??
    It all started somewhere here:
    Hello everybody out there using minix -
    I'm doing a (free) operating system (just a hobby, won't be big and professional like gnu) for 386(486) AT clones...

  5. #205
    Join Date
    Jun 2008
    Location
    Groningen,the Netherlands
    Beans
    2
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: how to: automatically umount cifs partitions

    I'm using 11.04 and still had this OLD problem with a FreeNAS SMB/CIFS share. Both scripts mentioned at the beginning of the thread worked for me. Currently I'm using the second script which has been added on page 2 of this thread.
    A big thank you to max.durden and sander marechal.

  6. #206
    Join Date
    Nov 2011
    Beans
    4

    Re: how to: automatically umount cifs partitions

    Great solution! Obviously still or again necessary in Kubuntu 11.10. Works fine for me. Since I needed quite some time to find this post I only reply to add some of the keywords I was initially using.

    Kubuntu shutdown and restart problem samba cifs share over WLAN

    I am not a geek so I may be allowed to wonder why the order of shutting down things has not been generally changed since the beginning of this thread.

    Regards
    Last edited by bodo bootlin; November 5th, 2011 at 09:48 PM.

  7. #207
    Join Date
    Apr 2009
    Location
    London, England.
    Beans
    401
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: how to: automatically umount cifs partitions

    Many thanks, as expressed before - this script worked well for me too. Thank you max.durden and sander marechal.

    Have to say that I echo Bodo Bootlin's comments; this seems to have been an issue for some time, and hasn't been fixed in the standard distro.


    Oli.

Page 21 of 21 FirstFirst ... 11192021

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
  •