Ubuntu 11.04 64 bit hangs at shutdown: Difference between revisions

From WickyWiki
No edit summary
Line 5: Line 5:


Ubuntu 12.04 64 bit
Ubuntu 12.04 64 bit
== Modem-manager fails to shutdown signal 15 ==
* https://bugs.launchpad.net/ubuntu/+source/netbase/+bug/903825
Change the shutdown sequence to fix this:
<syntaxhighlight lang=bash>
sudo mv /etc/rc0.d/S31umountnfs.sh /etc/rc0.d/S05umountnfs.sh
sudo mv /etc/rc6.d/S31umountnfs.sh /etc/rc6.d/S05umountnfs.sh
sudo mv /etc/rc0.d/S35networking /etc/rc0.d/S15networking
sudo mv /etc/rc6.d/S35networking /etc/rc6.d/S15networking
</syntaxhighlight>


== Modify grub configuration to show log messages ==
== Modify grub configuration to show log messages ==
Line 33: Line 46:
== Unmount TrueCrypt volumes at reboot and shutdown ==
== Unmount TrueCrypt volumes at reboot and shutdown ==


About run levels:
About run levels:  
<!-- run-level run level -->
* http://www.debian-administration.org/articles/212
* http://www.debian-administration.org/articles/212



Revision as of 08:24, 15 February 2013

Ubuntu 11.04 64 bit

Ubuntu 12.04 64 bit

Modem-manager fails to shutdown signal 15

Change the shutdown sequence to fix this:

sudo mv /etc/rc0.d/S31umountnfs.sh /etc/rc0.d/S05umountnfs.sh
sudo mv /etc/rc6.d/S31umountnfs.sh /etc/rc6.d/S05umountnfs.sh
sudo mv /etc/rc0.d/S35networking /etc/rc0.d/S15networking
sudo mv /etc/rc6.d/S35networking /etc/rc6.d/S15networking

Modify grub configuration to show log messages

sudo gedit /etc/default/grub

Change:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

to:

GRUB_CMDLINE_LINUX_DEFAULT=""
sudo update-grub

Unmount TrueCrypt volumes at reboot and shutdown

About run levels:

sudo gedit /etc/init.d/umounttruecrypt.sh
#!/bin/sh
. /lib/lsb/init-functions
RET=1
if [ -f /usr/bin/truecrypt ] ; then
  log_daemon_msg "Stopping" "TrueCrypt"
  /usr/bin/truecrypt -d
  RET=$?
else
  log_failure_msg "TrueCrypt not found"
fi
log_end_msg $RET
exit $RET
#make executable:
sudo chmod +x /etc/init.d/umounttruecrypt.sh

#execute at reboot:
sudo ln -s /etc/init.d/umounttruecrypt.sh /etc/rc0.d/K99umounttruecrypt.sh

#execute at shutdown:
sudo ln -s /etc/init.d/umounttruecrypt.sh /etc/rc6.d/K99umounttruecrypt.sh

Archive

ACPI off (failed)

Modify grub configuration as above to turn off ACPI (Advanced Configuration and Power Interface) at boot.

GRUB_CMDLINE_LINUX_DEFAULT="acpi=off"

shutdown umount script (failed)

Add the pre-stop script to /etc/init/dbus.conf before 'exec'

sudo gedit /etc/init/dbus.conf
pre-stop script
   trap "TERM signal" TERM
   /bin/umount -a -t cifs -f -l
   trap - TERM
end script

Update ATI driver (failed)

For ATI Radeon HD 5700 Series, go to www.ati.com to download latest.

sudo sh ./ati-driver-installer-11-6-x86.x86_64.run --buildpkg Ubuntu/natty
sudo dpkg -i fglrx*.deb

Notes

At shutdown or restart the computer may or may not hang.

Suggestions and reports: