Results 1 to 6 of 6

Thread: [SOLVED] What should be done when Ubuntu crashed?

  1. #1
    Join Date
    Jul 2008
    Location
    Wuhan, China
    Beans
    97
    Distro
    Ubuntu 10.04 Lucid Lynx

    Question [SOLVED] What should be done when Ubuntu crashed?

    The crash of Ubuntu just now set me into confusion. On Windows, the unresponsiveness of system can probably be resolved by pressing Ctrl + Alt + Del and terminating the problematic application. But on Ubuntu, what can be done when the system does not respond to avoid cold reset?
    And after cold reset, unlike Windows, the scan of disk is not performed. Does Ubuntu realized that the computer has been previously improperly shutdown? Or is it unnecessary for Linux to scan the disk as it is better than Windows?
    Thanks!
    Last edited by Pidgin; August 6th, 2008 at 03:12 PM.
    谁言别后终无悔,
    寒月清宵绮梦回。
    深知身在情长在,
    前尘不共彩云飞。

  2. #2
    Join Date
    Mar 2008
    Location
    City of Pines
    Beans
    3,585

    Re: What should be done when Ubuntu crashed?

    For Ubuntu's unresponsiveness issue, try pressing Ctrl+Alt+Backspace key combo.
    For windoze scandisk-like utility, try reading this thread (w/c as of this time, the discussion is on-going).
    Steady movement is more important than speed, much of the time. So long as there is a regular progression of Stimuli to get your mental hooks into, there is room for lateral movement. Once this begins, its rate is a matter of discretion.

  3. #3
    Join Date
    Oct 2006
    Location
    Finland
    Beans
    796
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: What should be done when Ubuntu crashed?

    There's a bunch of stuff I usually do when Ubuntu(or just Xorg) crashes. First I try to access the command line with ctrl+alt+F2 or whatever F-key different than F7 since that's the one you just crashed. If I manage to access it, I usually see command
    Code:
    top
    to see if any process takes 100% of CPU, and then kill it. Otherwise, I run command
    Code:
    sudo /etc/init.d/gdm restart
    to restart Xorg and go back to login screen.

    If I fail to access the command line, I try ctrl+alt+backspace, and as this usually fails too, I open up my second PC and try to access my ubuntu box via ssh. From there, I can restart my xorg with the command above. If this fails, then there's not much to do but a hard-reset. Sometimes I just push the powerbutton once and ubuntu starts the normal shutdown-process.
    Please remember to mark the thread "solved" if we have success helping you out. This helps people to look for help later on.

  4. #4
    Join Date
    Mar 2008
    Location
    California, USA
    Beans
    8,111

    Re: What should be done when Ubuntu crashed?

    Keep in mind that Ctrl-Alt-Backspace is not the same as Ctrl-Alt-Delete in Windows, because Ctrl-Alt-Backspace logs you out of X windows (and kills all your open apps) and puts you back at the login screen.

    As kesman said, probably the equivalent of Ctrl-Alt-Delete is Ctrl-Alt-F2 (or F3-F6 work too), which gives you a console login. Note your X windows session hasn't been killed, so all your apps are still running. Then you can do something like kesman said like "top" to find the offending process and kill it. If that works, once you are done in the console, type "exit" to get back to the console login screen, and then hit Ctrl-Alt-F7 to get back to your normal X windows session (assuming you have only one X windows session running, otherwise use F8-F12 for other sessions).

    And if all else fails, the last thing to try before a hard reset would be to do the "Raising Skinny Elephants Is Utterly Boring" routine:
    left Alt+SysRq+r
    left Alt+SysRq+s
    left Alt+SysRq+e
    left Alt+SysRq+i
    left Alt+SysRq+u
    left Alt+SysRq+b
    In other words, hold the left Alt botton and the "Sys Rq" button at the same time (Sys Rq is same as "PrtScrn" button up above delete), and then type all those letters in order, pausing a bit between them. That will attempt to shutdown Ubuntu as well as it can and reboot without a simple hard reset/shutdown.

  5. #5
    Join Date
    Apr 2008
    Location
    malaysia
    Beans
    13
    Distro
    Ubuntu CE

    Re: What should be done when Ubuntu crashed?

    is there any solution to prevent it from crash..

  6. #6
    Join Date
    Oct 2006
    Location
    Finland
    Beans
    796
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: What should be done when Ubuntu crashed?

    Quote Originally Posted by lanzailan View Post
    is there any solution to prevent it from crash..
    Find out what's crashing, and fix it. When does your Ubuntu crash?
    Please remember to mark the thread "solved" if we have success helping you out. This helps people to look for help later on.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •