Skip to content

System hangs on poweroff.

For 3 months or so now, I can't get my 32-bit Arch Linux (with systemd) to poweroff. I've tried 'systemctl poweroff' and 'shutdown -h now'.....

It always hangs after displaying, "All DM Devices Detached." I have to manually hold down the boot button on the box for a few seconds to get it to poweroff.

Any suggestions on what the issue might be?

4 points8 comments
Open on Reddit
About this post
Posted
Archived
Score
4 · 100% up
Kind
Text
ID
17c81a

Author

1
posts
0
comments
0
media
View profile

8 comments

Are any shared folders or other mounts still connected when you shut down? I run arch in virtualbox and it would hang when I didn't unmount my vboxsf mounts that let me access drives on the host. I want to say that I didn't have the issue until I switched to systemd.

6 points

That might have been a virtualbox issue actually - I hit similar (and it was finally fixed in 4.2.6) where the VM would spin up to 100% CPU until it was killed.

2 points

Are you mounting them using fstab? If so, systemd should take care of unmounting them automatically.

1 points

No, I'm running mount commands during XFCE's startup. It's all good though, I figured out how to make systemd run a script prior to reboot and shutdown. The script just unmounts the vboxsf drives and pauses for a few seconds. Dirty, but gets the job done.

1 points

Is this happening as root or under your user account? maybe your account permissions aren't configured correctly or your account is being outranked when you try (e.g. root is logged in in another tty). This usually happens when I forget I am root in tty6 and try to poweroff as a normal user in tty7 for example.

1 points

Any any mounted CIFS shares or other network share will cause systemd to hang during shutdown, because they are not being unmounted before the network (networkmanager or wicd) is shutdown. It's an annoying bug. You can get around it by placing a script that runs umount -a -t cifs before a network interface is shutdown.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.