Page 10 of 21 FirstFirst ... 8910111220 ... LastLast
Results 91 to 100 of 207

Thread: how to: automatically umount cifs partitions

  1. #91
    Join Date
    Aug 2006
    Beans
    29

    Re: how to: automatically umount cifs partitions

    Quote Originally Posted by wyley.r View Post
    The following two commands should take care of unmounting Samba shares and other virtual filesystems before a shutdown or reboot. They must be run as root; prefix them with "sudo" if you haven't set up your root account:

    Code:
    ln -s /etc/init.d/umountnfs.sh /etc/rc0.d/K15umountnfs.sh
    ln -s /etc/init.d/umountnfs.sh /etc/rc6.d/K15umountnfs.sh
    More explanation can be found here:

    Unmount Samba filesystems before shutdown or reboot
    .

    Hopefully, this will avoid the need to download and install a separate script, as some other people have suggested. All the tools you need are already built into the Debian/Ubuntu init system.
    Simple, elegant, and it works (Intrepid Ibex).

    Thanks.

  2. #92
    Join Date
    Jun 2008
    Beans
    1

    Re: how to: automatically umount cifs partitions

    Thanks Max,

    I had the same problem, and your solution works perfectly for me. The shutdown process is now clean and fast.

    antaresteleko.

  3. #93
    Join Date
    Dec 2007
    Beans
    4

    Re: how to: automatically umount cifs partitions

    Quote Originally Posted by wyley.r View Post
    The following two commands should take care of unmounting Samba shares and other virtual filesystems before a shutdown or reboot. They must be run as root; prefix them with "sudo" if you haven't set up your root account:

    Code:
    ln -s /etc/init.d/umountnfs.sh /etc/rc0.d/K15umountnfs.sh
    ln -s /etc/init.d/umountnfs.sh /etc/rc6.d/K15umountnfs.sh
    More explanation can be found here:

    Unmount Samba filesystems before shutdown or reboot
    .

    Hopefully, this will avoid the need to download and install a separate script, as some other people have suggested. All the tools you need are already built into the Debian/Ubuntu init system.
    Got rid of some of the errors, but not all. I changed it to K02umountnfs (from K15umountnfs) and not it works great.

    Thank you very much.

  4. #94
    Join Date
    Dec 2008
    Location
    Mountain View, CA
    Beans
    2
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: how to: automatically umount cifs partitions

    The solution works - thank you - but I'm going to echo other users who wonder why this kind of command line intervention is even required.

  5. #95
    Join Date
    Mar 2005
    Beans
    108

    Re: how to: automatically umount cifs partitions

    Because nobody is taking responsibility for the bug. The initscripts people blame smb and vice-versa. See the upstream bug report: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=431966

  6. #96
    Join Date
    Nov 2007
    Location
    The World
    Beans
    28

    Re: how to: automatically umount cifs partitions

    Quote Originally Posted by sander marechal View Post
    Because nobody is taking responsibility for the bug. The initscripts people blame smb and vice-versa. See the upstream bug report: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=431966
    I just took a look at the bug report, very annoying.. this problem does not exist in other distros (slackware, mandriva, centos) i tested their latest versions..
    Is possible to package this solution in a dep file & submit this as a package for other to use ?
    Would be accepted ?

    this small things should be fixed.

    thanks for the one that came with the soluton.

    by the way im using mine at K03:
    update-rc.d umountcifs.sh stop 03 0 6

    works perfect
    Cheers,
    Zer0

  7. #97
    Join Date
    Jun 2008
    Beans
    1

    Re: how to: automatically umount cifs partitions

    Thanks one more time Max, this cured the problem for me (in U8.10).

  8. #98
    Join Date
    Jan 2009
    Beans
    1

    Re: how to: automatically umount cifs partitions

    Aslo thanks from me Max, I was mounting my networkdrives today and faced the same problem at shutdown. It's fixed perfectly with your script.

  9. #99
    Join Date
    Nov 2006
    Beans
    11

    Re: how to: automatically umount cifs partitions

    Worked fine on 8.10 (earlier solutions not so successful) - thanks

    What has to happen so that this is automatically part of 9.04 ?

  10. #100
    Join Date
    Mar 2005
    Beans
    108

    Re: how to: automatically umount cifs partitions

    Quote Originally Posted by gersoid View Post
    What has to happen so that this is automatically part of 9.04 ?
    This bug needs to be solved: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=431966

Page 10 of 21 FirstFirst ... 8910111220 ... LastLast

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
  •