You are not logged in.

#1 2014-07-25 00:10:24

duelistjp
Member
Registered: 2014-07-25
Posts: 7

stopping cifs shares delays reboot by 1m30s

I have a home server and want my laptop to mount the shares on it when i am at home.  In order to get this working properly on my laptop without needing a command everytime i used autofs.  this seems to be working without issue.  unfortunately when I reboot the system these shares that are mounted at the time don't seem to be unmounted.  it takes 1m30s before i believe the system just forces the issue.  it says something about a stop job on the shares and something about automounting filesystems.  What can I do to fix this. if you need anymore specific information I will be happy to provide it but will likely need to be told what you need and how to get it as I am rather new at this despite having a CS degree but I am eager to learn.

Offline

#2 2014-07-25 00:47:26

anatolik
Developer
Registered: 2012-09-27
Posts: 458

Re: stopping cifs shares delays reboot by 1m30s

Yes, as you said the problem with systemd service that hangs on stop. Start with checking systemd journal

journalctl -p err -b

find what service hangs, check its StopExec and try to understand why the command misbehaves.


Read it before posting http://www.catb.org/esr/faqs/smart-questions.html
Ruby gems repository done right https://bbs.archlinux.org/viewtopic.php?id=182729
Fast initramfs generator with security in mind https://wiki.archlinux.org/index.php/Booster

Offline

#3 2014-07-25 01:00:11

duelistjp
Member
Registered: 2014-07-25
Posts: 7

Re: stopping cifs shares delays reboot by 1m30s

when I run that command i get a one line file that just says when the log started and when it ends.  Is there another way I can find what is hanging.

Offline

#4 2014-07-25 02:30:13

anatolik
Developer
Registered: 2012-09-27
Posts: 458

Re: stopping cifs shares delays reboot by 1m30s

duelistjp wrote:

when I run that command i get a one line file that just says when the log started and when it ends.  Is there another way I can find what is hanging.

That's probably because your user not in systemd-journal group. Run the command as root then. Then try to run without '-p err' to see all logs.

I also highly recommend you to read through 'man journalctl'.


Read it before posting http://www.catb.org/esr/faqs/smart-questions.html
Ruby gems repository done right https://bbs.archlinux.org/viewtopic.php?id=182729
Fast initramfs generator with security in mind https://wiki.archlinux.org/index.php/Booster

Offline

#5 2014-07-25 03:44:45

duelistjp
Member
Registered: 2014-07-25
Posts: 7

Re: stopping cifs shares delays reboot by 1m30s

running with sudo command was actually the second thing i tried after running it once as standard user.  it still had nothing.  without the -p err it was well over 1000 lines is there something i should be looking for in particular in there? i looked through the manpage and while admittedly some terms were unclear i think i generally understood what the options did even if i don't understand why some are useful

Offline

#6 2014-07-25 04:30:18

stryder
Member
Registered: 2009-02-28
Posts: 500

Re: stopping cifs shares delays reboot by 1m30s

The -b switch limits output to last boot. Why don't you omit that and look through the errors listed? Use the -r switch to reverse the output so you get the latest errors first.

Offline

#7 2014-07-25 06:44:42

duelistjp
Member
Registered: 2014-07-25
Posts: 7

Re: stopping cifs shares delays reboot by 1m30s

Well it seemed it was the networkmanager causing the trouble so i tried uninstalling it and used sysctl to enable netctl to connect to known networks and the problem has dissapeared. i prefer a gui network manager though. any suggestions on how to get it working without messing up autofs?

Offline

#8 2014-07-25 06:55:09

stryder
Member
Registered: 2009-02-28
Posts: 500

Re: stopping cifs shares delays reboot by 1m30s

Offline

Board footer

Powered by FluxBB