[Bug 1838046] Re: Autofs with CIFS prevents laptop suspend

Christian Ehrhardt  1838046 at bugs.launchpad.net
Fri Aug 2 08:16:36 UTC 2019


Isn't that the default for all network mounts to hang if they are disconnected.
As they want to preserve data at all cost after the disconnect they'd usually need some sort of forced unmount.

I'd expect it might even have hooks to be ok without the unplugged LAN
(or disconnected wireless in other bugs that I've seen).

I'm happy that it doesn't do so automatically, CFIS/Samba would try to
reconnect to get things working again.

But for your case you might need to explicitly umount them "opting in to any data loss" via something like:
  umount -f <mp>
or
  umount -a -t cifs -l <mp>

Would adding this before suspend/shutdown help in your case?

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to autofs in Ubuntu.
https://bugs.launchpad.net/bugs/1838046

Title:
  Autofs with CIFS prevents laptop suspend

Status in autofs package in Ubuntu:
  Triaged

Bug description:
  I have autofs set to mount two cifs partitions
  one from a local server, the second from a virtualbox machine in my laptop
  when I stop the virtual machine and try to suspend, I got a message saying: Freezing of task failed after xx seconds
  after ~10 seconds, the screen goes off, it appears that the laptop do a partial suspend (the power light doesn't blink), if I press the power button, the laptop wakes up, and sometimes I get a new gnome session (all my windows colsed and start with new gnome)

  If I sudo systemctl stop autofs.service and the suspend, everything
  works good.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/autofs/+bug/1838046/+subscriptions



More information about the foundations-bugs mailing list