Hi, just a quick question here...
What do you do when debian Sarge (running the KDE desktop and the 2.6 Linux Kernel) suddenly locks up, hangs or freezes while you are doing something (thus rendering the desktop and all programs unable to be used) and you want to avoid having to shut the computer off manually?.
I've tried CNT/ALT/DELETE and CTRL/ESC to reboot and none of this works so then I end up having to just shut the computer off manually and this has sometimes caused Debian to fail to restart so that I have to completely reinstall it again. Is there a proper or safe way to shut Debian down when this happens or a way to recover the desktop if it becomes unstable?.
Is there even a way to run an "integrity check" (like on Fedora) or "scandisk" (like on Windows)?. As a further footnote, I AM using the "testing" branch of Debian but very conservatively/sparingly and I only download programs from testing when I'm not required to remove other programs or make any changes that would radically alter the system.
Anyway, thank's in advance for any help I can get on these things.
- Regards, DebianUser
Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
Safe way to shut Debian down?
-
- Debian Developer, Site Admin
- Posts: 483
- Joined: 2004-04-06 18:19
- Location: Utrecht, NL
- Contact:
If your computer really locks up, and you have no way to kill the offending program, you can only hard-power it down. On bootup, typically disks will be checked if needed. You can force it with shutdown -r -F now, which will reboot and force a fsck on reboot (see man shutdown).
If X hangs, ctrl+alt+backspace sometimes works, you might try that. Also, logging in remotely via ssh might work even if local direct access is broken.
If X hangs, ctrl+alt+backspace sometimes works, you might try that. Also, logging in remotely via ssh might work even if local direct access is broken.
If the kernel is working but you have not any way to take the control using keyboard or mouse, it is worthy to try:
alt+SysRq+s
alt+SysRq+u
alt+SysRq+b
that means press and hold down Alt key, press and hold down SysRq key and then press 's' key
release all keys
then press and hold down Alt key, press and hold down SysRq key and then press 'u' key
release all keys
then press and hold down Alt key, press and hold down SysRq key and then press 'b' key
If your whole machine hangs, you can do
alt-SysRq-s (sync)
alt-SysRq-u (unmount)
alt-SysRq-b (boot)
Umounting and rebooting in this fashion after a hang should eliminate the necessity to perform an fsck during the subsequent reboot.
hope this can help a little bit
Best Regards,
Mike Kranidis
alt+SysRq+s
alt+SysRq+u
alt+SysRq+b
that means press and hold down Alt key, press and hold down SysRq key and then press 's' key
release all keys
then press and hold down Alt key, press and hold down SysRq key and then press 'u' key
release all keys
then press and hold down Alt key, press and hold down SysRq key and then press 'b' key
If your whole machine hangs, you can do
alt-SysRq-s (sync)
alt-SysRq-u (unmount)
alt-SysRq-b (boot)
Umounting and rebooting in this fashion after a hang should eliminate the necessity to perform an fsck during the subsequent reboot.
hope this can help a little bit
Best Regards,
Mike Kranidis
Last edited by mikekgr on 2005-12-13 13:17, edited 2 times in total.
-
- Posts: 709
- Joined: 2005-09-15 20:37
- Location: North by Northwest
Similar to what Mike posted, above, try this sequence (LeftAlt referring to the left 'alt' key; do not hold down the 'control' key):
LeftAlt+SysRq+r
LeftAlt+SysRq+s
LeftAlt+SysRq+e
LeftAlt+SysRq+i
LeftAlt+SysRq+u
LeftAlt+SysRq+b
FYI, here's what each step of the sequence should do:
r - keyboard in raw mode
s - sync disks
e - terminate all processes
i - kill all processes
u - remount filesystems read-only
b - reboot
LeftAlt+SysRq+r
LeftAlt+SysRq+s
LeftAlt+SysRq+e
LeftAlt+SysRq+i
LeftAlt+SysRq+u
LeftAlt+SysRq+b
FYI, here's what each step of the sequence should do:
r - keyboard in raw mode
s - sync disks
e - terminate all processes
i - kill all processes
u - remount filesystems read-only
b - reboot