What could be the reasons for the hangup of Ubuntu? On the Internet, I read that the graphical shell can usually hang, but in my case, the system probably hangs, since the console does not start.

Closed due to the fact that the essence of the question is incomprehensible to the participants zRrr , D-side , Nick Volynkin 8 Jun '16 at 0:46 .

Try to write more detailed questions. To get an answer, explain what exactly you see the problem, how to reproduce it, what you want to get as a result, etc. Give an example that clearly demonstrates the problem. If the question can be reformulated according to the rules set out in the certificate , edit it .

  • suitable for the minimum requirements? - user33274
  • Check smart hdd, look at the OS logs for time, while hanging, note how the hdd indicator responds. - tvset
  • What does "console not start" mean? For example, I have problems with vidyuhi and graphical shell, in 90% of cases I successfully switch to the text console by "Ctrl + Alt + F1", and restart the killall Xorg graphics. In 10% of cases, it hangs with the keyboard and it does not work - Mike
  • Well, like in these 10% of cases, it’s impossible for me to switch - Ivan Skald
  • one
    Unfortunately, the debugging of the operating system is not included in the StackOverflow theme. You can ask about problems with Linux on the site superuser.com/ from the English-language network StackExchange. There are excellent forums on linet.org.ru and opennet.ru. - uhbif19

2 answers 2

describe in more detail the symptoms, os version, please. Is there a second operating system on the computer?

In general, the algorithm is as follows:

If you reach the choice of options for the operating system / kernel versions, you are in the grub bootloader. Choose the last Ubuntu, hit e (hint below), find the lines in the editor

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

if there is, then

GRUB_CMDLINE_LINUX=""

change to

GRUB_CMDLINE_LINUX_DEFAULT="--verbose nosplash debug"

GRUB_CMDLINE_LINUX="--verbose nosplash debug"

look at the mistakes.

if it is possible to boot from the flash drive: find your hard disk / ssd, go look at /var/log/boot.log , /var/log/syslog , /var/log/Xorg.0.log

if you need to read the systemd logs, then journalctl -D путь_к_каталогу_с_логами can do this from a flash drive

if it doesn't even reach the bootloader - probably - mbr flew away from you (the disk dies, the Windows overwrites, accidentally deleted something)

common causes of errors:

  • Video card drivers after system updates.
  • incorrect updating of the system due to the fact that the left repositories were installed, after that some of the system libraries were updated, some were not, and together they could no longer work (this can affect the video, by the way). Detected, as a rule, by the fact that apt-get update && apt-get install does not work apt-get update && apt-get install
  • flyback loader / mbr

How to treat (from what I came across):

  • if the video drivers have flown: boot into Advanced options for Ubuntu , boot into the console, from a flash drive or download a video driver using a text browser and, accordingly, installation instructions, install it in console mode. (or just demolish)
  • incorrect system update is the worst that I came across, there are no exact recipes, once I spent 6 hours just from the principle to cure. usually just reinstall the system.
  • mbr (boot / grub) - google.

ps, if you boot from the flash drive and see the desktop and find your hard drive, rejoice, the drive is alive and the video card is not dead. and switching to the console does not work because of the hung video drivers. those. you can try, for example, make ctrl+alt+f1 and blindly type cd / ; sudo updateb; find . cd / ; sudo updateb; find . You will most likely see the hdd indicator blink. it means the system is alive

I also advise - for the future - set up (neatly) sshd so that you can log in to a computer without a flash drive just from the local network (or - if you set it neatly and forwarded ports - at least via a mobile phone) and correct the settings

Ps One of the best indicators of a hung system is the reaction to pressing the caps lock. if a small light comes on - not everything is so bad. If it does not work, Pts are bad, you will have to thoroughly heal.

  • Excellent instructions on how to diagnose boot problems! but the only question, as far as I understood, is not about the boot process , but the hang of an already loaded operating system. - aleksandr barakin
  • here it is not known, unfortunately так как консоль не запускается. can mean anything (If the author doesn’t work switching from graphics mode to console mode, then this needs to be clarified, but then the answer is likely to be simple - the problem is 90% in the video driver, then you need to look at the xorg logs, or ( the command seems to be this) - apt-get purge название_драйвера driver_name, or boot from a flash drive with deflotted firewood and check the switch - strangeqargo
  • The author of the question specifies in the commentary that he is unable to switch to a virtual terminal (using ctrl+alt+f* ). - aleksandr barakin 7:58 pm
  • most likely the recipe will be either as in the comments above, or as in one of our answers. Video mode switching occurs at boot time too. Well, that is he will have to look in the same logs and boot in text mode into the same console, and not through the x-terminal most likely (if nvidia, then she will make him kill Xorg and go to the console) - strangeqargo

What could be the reasons for the hangup of Ubuntu?

ubuntu is the proper name of one of the gnu / linux operating system distributions . the concept of “hung” is generally not applicable to the distribution kit.

and “stuck” you, judging by the symptoms, the linux program.

The first tool for diagnosing problems that this program encounters is its circular message buffer. You can view its contents with the dmesg program. Naturally, once the linux program itself is frozen, it will not be possible to launch the dmesg program and see the contents of the buffer, alas.

there is a hope that the implementation of the syslog daemon installed on your system (often rsyslog ) continues to work and the disk subsystem is still functioning. thanks to which the information from the ring buffer is written to /var/log/dmesg and / or /var/log/kern.log .

In these files, and it is necessary first to look for information about the problems. just note that during the boot process, the old /var/log/dmesg file will be renamed to something like /var/log/dmesg.0 , and /var/log/dmesg will be recorded in /var/log/dmesg starting from the current system boot.

  • linux is not a program, but a set of programs, a kernel (program and drivers) + loadable drivers + daemon (programs) + user applications (programs). "hang" (for a user who is looking at the computer with his eyes, it is possible in any of these programs) - strangeqargo
  • @strangeqargo, neither "demons" nor "user applications" can be attributed to the linux program. if you are confused by the definition of a “program that performs the functions of the operating system kernel”, you can safely use the word “library” instead of “program”. theoretically, the linux program could also be called a kind of "set of programs." if from its published source code it would be possible to collect them. As far as I know, only one program can be assembled from these sources. - aleksandr barakin
  • one
    there is no "linux" program, there is a boot loader (it could hang), there is a kernel (with drivers), a kernel could hang (because of the driver), there is a demon (they could hang or create the illusion of a hang, during initialization). There are user programs, If you call the kernel "Linux program", then you have very strange ideas about architectural terms - strangeqargo
  • one
    a person asks why his system hangs, you push him about the "linux program". There is no such program. Linux is the name of the operating system family. - strangeqargo 6:48 pm
  • one
    @alexanderbarakin Of course, formally speaking, the Linux kernel is a program. But no one calls him that way, this is an incorrect word usage. And in any case, the answers of SO are not for the quibble of vocabulary. - uhbif19