Results 1 to 5 of 5

Thread: 12.04 Beta1, Wireless and unmounting network shares at shutdown

  1. Back To Top    #1
    Junior Member
    Join Date
    May 2010
    Location
    Finland
    Posts
    10
    Threads
    4
    Local Date
    Jan 13th 2018
    Local Time
    11:45 AM

    12.04 Beta1, Wireless and unmounting network shares at shutdown

    Hi,

    I just installed 12.04 beta 1 to try out if some of the previous problems with network shares would be fixed and seems they are. I'm planning to install 12.04 LTS to several computers so that's why I'm testing in advance. But there is a new problem.

    Situation is this:

    I have a fileserver with several samba shares and a laptop that I use to access them. I mount the shares using /etc/fstab. Now when I shutdown the laptop, it takes minutes to shutdown. Only happens when I use wireless, on wired ethernet shutdown is fast. There seems to be a great amount of discussion of networking shutting down before mounted network shares are unmounted, and because of this the shares can't be unmounted and that's why it takes a long time. There are (OLD) reports of similar bugs in ubuntu launchpad too.

    I looked into autofs and it probably would be a solution but nevertheless I think this issue should be looked into.

    Thanks

  2. Back To Top    #2
    Veteran Member vw72's Avatar
    Join Date
    Feb 2012
    Posts
    372
    Threads
    6
    Local Date
    Jan 13th 2018
    Local Time
    03:45 AM
    A quick and dirty fix might be to alter the shutdown script to manually unmount the shares in question. Just a thought.

  3. Back To Top    #3
    Junior Member
    Join Date
    May 2010
    Location
    Finland
    Posts
    10
    Threads
    4
    Local Date
    Jan 13th 2018
    Local Time
    11:45 AM
    Yes when searching for this I read some suggestions for creating/modifying scripts to unmount the share. I'll probably try that if the final 12.04 still has this problem.

  4. Back To Top    #4
    Newbie
    Join Date
    Apr 2012
    Posts
    1
    Threads
    0
    Local Date
    Jan 13th 2018
    Local Time
    09:45 AM
    Hi,

    having the same problem I found a solution in another forum that works perfectly for me (kudos to the original poster):

    Edit /usr/bin/starkde script using e.g. Kate: "sudo kate /usr/bin/startkde". Immediately after the line saying "echo 'startkde: Shutting down...' 1>&2", insert a line saying "sudo umount -t cifs -a -f -l". Then, using visudo as root ("sudo visudo"), edit the sudoers file to allow the sudo command to execute umount without a password by adding the line (at the bottom of the file) "{username} ALL=(root) NOPASSWD: /bin/umount". Replace {username} with your username.

  5. Back To Top    #5
    Kubuntu as Second Language james147's Avatar
    Join Date
    Aug 2010
    Location
    United Kingdom
    Posts
    1,177
    Threads
    16
    Local Date
    Jan 13th 2018
    Local Time
    09:45 AM
    Quote Originally Posted by sombreroz View Post
    kdesudo kate /usr/bin/startkde
    Don't run gui programs as root, it can cause all sorts or problems.
    Also, its better to use the systems shutdown mechanism to run scripts as root rather then editing a program designed to start a gui as a normal user then hacking sudo to let them run commands as root without a password.

Similar Threads

  1. Root file system not unmounting on shutdown
    By doctordruidphd in forum Hardware Support
    Replies: 5
    Last Post: Nov 3rd 2012, 06:44 AM
  2. shutdown dropping network before unmounting nfs
    By wizard10000 in forum Software Support
    Replies: 2
    Last Post: Oct 26th 2011, 07:32 PM
  3. Network Shares
    By nomadewolf in forum KDE Support
    Replies: 3
    Last Post: Jun 19th 2011, 12:32 AM
  4. [resolved] Unmounting Network Shares Before Shutdown/Restart
    By chipbennett in forum Network Support
    Replies: 8
    Last Post: Jan 27th 2010, 11:36 PM
  5. how unmount network shares
    By mike0138 in forum Help the New Guy
    Replies: 3
    Last Post: Jul 31st 2009, 04:58 PM

Posting Permissions

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