Skip to content

Instantly share code, notes, and snippets.

Created July 9, 2016 11:15
Show Gist options
  • Save anonymous/38098819090209c8c7b70f6101eb76e4 to your computer and use it in GitHub Desktop.
Save anonymous/38098819090209c8c7b70f6101eb76e4 to your computer and use it in GitHub Desktop.
Temporary fix for shutdown hang issue related to swap.
# If your computer doesn't turn off when you shut it down and the final message
# it gives is "Reached Target Shutdown", this is a temporary fix that may help.
# Bug in Ubuntu: https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1464917
#
# This is confirmed to work on Linux Mint 18.
#
# Copy and paste these steps into your terminal:
sudo touch /etc/rc6.d/shutSwap
sudo echo "sudo swapoff -a" > /etc/rc6.d/shutSwap
sudo chmod +x /etc/rc6.d/shutSwap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment