0

My Gnome installation (Ubuntu 18.04) appears to be broken. After I log in, it displays some log messages and hangs. The last message says in effect "Starting Gnome." I've tried removing the proprietary graphics drivers and switching to a radically different graphics card; neither measure helped.

I assume, but am not sure, that Ubuntu itself is intact. It appears to work just as it should when I boot to rescue mode.

How can I repair my system with a minimum of disruption?

I found instructions for installing Gnome...

https://linuxconfig.org/how-to-install-gnome-on-ubuntu-18-04-bionic-beaver-linux

...and for repairing Linux...

https://www.ostechnix.com/how-to-fix-broken-ubuntu-os-without-reinstalling-it/

The first set of instructions are admirably simple: install a few packages. It seems to me that I should be able to uninstall the broken Gnome by removing the same packages in reverse order, but I don't know whether that is the best approach; I suspect that after I reinstall Gnome I'll have to reinstall all of my graphic applications. I'd prefer instructions specifically for repairing Gnome, but I haven't found any.

The latter instructions assume a system that functions in rescue mode, but don't distinguish between "repairing" Ubuntu and Gnome, so I'm not sure just what they're meant to accomplish. The system's useless as it is, but I'd rather know what this experiment is supposed to do before I undertake it.

Perhaps I should just restore the Linux partition with dd. If I save my current data first I won't lose anything. The only disadvantage is that I'll have to reconstruct whatever software I installed or reconfigured after my last backup.

  • You may have a bad GNOME Shell extension. Go to https://extensions.gnome.org/local/ and temporarily disable ALL extensions, restart GNOME Shell or reboot, and see if your problem is gone. If so, only enable one extension at a time until you find the bad one. – heynnema Apr 24 '20 at 16:49
  • Thought I responded to this yesterday, but my message isn't here. I'm afraid your suggestion didn't help; it actually made things worse. When I restarted the computer after disabling extensions, Gnome displayed the Ubuntu logo, then a black screen with blinking underline cursor a few lines below the top. After a considerable wait I tried pressing Ctrl+C; the computer displayed a flickering "^C" echo for a few seconds, then went black. When I tried to reboot it went straight to black. I can still boot to recovery mode, but the GUI no longer gets even as far as it did before! – Jonathan Sachs Apr 28 '20 at 06:55
  • Disabling GNOME Shell extensions won't cause your current symptom. At the GRUB menu, can you boot to a prior kernel? Do you have a Ubuntu Live DVD/USB and do you know how to run fsck? Did you perform any of the commands from the two links that you gave? Report back and I'll try to help you. – heynnema Apr 28 '20 at 13:42
  • See https://askubuntu.com/questions/162075/my-computer-boots-to-a-black-screen-what-options-do-i-have-to-fix-it and https://help.ubuntu.com/search.html?cof=FORID%3A9&cx=003883529982892832976%3Ae2vwumte3fq&ie=UTF-8&q=black+screen&sa=Search – heynnema Apr 28 '20 at 13:48
  • Sorry about the slow response. This is the season when computing competes with gardening. /// I tried booting to all three prior kernels in the GRUB menu. They all fail the same way. Some display more log entries than others before crashing. I have photographs of those if they will help. /// I have a Ubuntu Live DVD. I tried booting it; no problem. /// I didn't try any of those links. I wanted more advice first, for the reasons I detailed. /// I've used fsck, although I refer to the instructions each time. No hesitation about doing it again if that's advised. – Jonathan Sachs May 10 '20 at 03:14
  • Please see my partial answer. Report back. Start comments to me with @heynnema or I'll miss them. – heynnema May 10 '20 at 14:41
  • Status please... – heynnema May 13 '20 at 02:45
  • @heynnema It looks like you missed my previous comment because I didn't say at-name. I'll repeat. With this addition the message won't fit in one reply, so please read the next reply too. /// Sorry about the slow response. This is the season when computing competes with gardening. /// I tried booting to all three prior kernels in the GRUB menu. They all fail the same way. Some display more log entries than others before crashing. I have photographs of those if they will help. /// I have a Ubuntu Live DVD. I tried booting it; no problem. – Jonathan Sachs May 17 '20 at 21:06
  • @heynnema I didn't try any of those links. I wanted more advice first, for the reasons I detailed. /// I've used fsck, although I refer to the instructions each time. No hesitation about doing it again if that's advised. – Jonathan Sachs May 17 '20 at 21:07

1 Answers1

0

To check your file system...

  • boot to a Ubuntu Live DVD/USB in “Try Ubuntu” mode
  • open a terminal window by pressing Ctrl+Alt+T
  • type sudo fdisk -l
  • identify the /dev/sdXX device name for your "Linux Filesystem"
  • type sudo fsck -f /dev/sda5, replacing sdXX with the number you found earlier
  • type sudo fsck -f /dev/sda6
  • repeat the fsck command if there were errors
  • type reboot

To check your disk's SMART...

Start the Disks application. Select your HDD. Go to the "hamburger" icon and select SMART Data & Tests. Get screenshot(s) of the SMART Data and edit them into your question.

The SMART values says that the disk is OK. The only problem is there's a ton of command timeouts. I suspect a bad SATA cable.

Boot crashes...

Take pictures of your boot screen output. Either edit them into your question, or put them on imgur.com.

Update #1:

With the command timeout errors on the SATA disk subsystem, and we tried new SATA cables, and a backup drive worked fine when reinstalled back into the system, we conclude that the primary HDD is defective, or needs to be re-initialized and Ubuntu reinstalled.

heynnema
  • 70,711
  • fsck appears to say that my disks are OK. See http://jhsachs.com/DSCN8634.JPG. (/dev/sda5 in my Linux volume; /dev/sda6 is an additional volume.) /// SMART shows that the disk is not in good shape (no surprise, it's a beater) but is still functional. I can still boot Windows 10 from it consistently without problems. See http://jhsachs.comm/DSCN8636.JPG. – Jonathan Sachs May 25 '20 at 06:12
  • @JonathanSachs Actually, the SMART looks ok, except for a ton of command timeouts. In terminal do grep -i FPDMA /var/log/syslog*. Is this a desktop or laptop? Report back. – heynnema May 25 '20 at 13:57
  • I tried that - no output at all. The system is a desktop, or more precisely a benchtop. – Jonathan Sachs May 27 '20 at 05:14
  • @JonathanSachs Did you show me a picture of the boot screen? Anyway, I suspect that your SATA drive cable may be bad, or the SATA port itself might be flakey. So you have another cable, or can you move the cable to a different port? – heynnema May 27 '20 at 15:11
  • I have a picture of the boot screen but I haven't uploaded it yet. I'm having problems with my ISP and currently can't upload anything -- I'll make it available as soon as I can. /// I tried changing the SATA connector & cable but the results were actually worse: Linux froze in the same place but left the screen blinking. I restored the original cable and connector but attached a different drive; no problem booting. /// The drive that works is a backup of the problem drive, but it's not as current as I'd like. I still hope I can restore the original one to health. – Jonathan Sachs May 31 '20 at 03:39
  • @JonathanSachs You've proven that there's a problem with the original hard drive, even though so far the SMART Data doesn't show that... except for the command timeouts. Boot your system normally, or to Recovery Mode, Root Access, and type this command... sudo grep -i FPDMA /var/log/syslog*. Tell me what you see, or post it as an edit to your question, or at paste.ubuntu.com. – heynnema May 31 '20 at 14:32
  • At last I got the upload problem corrected. You can see the boot screen at http://jhsachs.com/Gnome_crash.jpg . – Jonathan Sachs Jun 04 '20 at 01:20
  • @JonathanSachs In Recovery Mode, Root Access, try sudo dpkg-reconfigure gdm3, then reboot. – heynnema Jun 04 '20 at 03:25
  • sudo grep -i FPDMA /var/log/syslog* produced no output at all. I'll try the suggested dpkg command ASAP, hopefully tonight. – Jonathan Sachs Jun 04 '20 at 23:21
  • I tried the dpkg command you suggested. I got gdm.service is not active, cannot reload, and then invoke-rc.d initscript gdm3, action "reload" failed. /// I want to thank you for your assistance. This has turned into a long, tiresome process, and I really appreciate the fact you're sticking with me. – Jonathan Sachs Jun 06 '20 at 04:57
  • @JonathanSachs No problem. I'd like to get this fixed. However, I think it's time to try and reinstall Ubuntu on the current drive. Don't touch the working backup drive, as we may still need it to restore from, if the Ubuntu reinstall fails. When doing the reinstall, watch carefully and you'll see a format checkbox. Uncheck it, and it'll keep your /home folder. Report back. – heynnema Jun 06 '20 at 13:13
  • (1 of 2) I'm sorry it has taken me so long to respond. I waited for a time when I could do the work in one session, if the computer cooperated. Unfortunately the computer didn't cooperate. When I tried to reinstall Ubuntu (before I reached the screen where I could clear the "Format" box) I got this message: You need at least 8.6 GB of disk space to install Ubuntu. This computer has only 0.0 B. – Jonathan Sachs Jun 16 '20 at 23:18
  • (2 of 2) I looked at the partitions with Disks. All of them appear to be there, but all of them are unlabeled and are described as "Unknown," excluding the boot partition, but including the Windows 10 partition and a shared NTFS data partition. /// I don't know what this means. I have booted Windows 10 from this disk several times since Ubuntu started failing. I can try it again to see if I still can boot it. I can look at the partitions with a Windows partition manager and see if can make more sense of them than Disks can. – Jonathan Sachs Jun 16 '20 at 23:20
  • @JonathanSachs Boot to the Ubuntu Live DVD/USB and in terminal type df. That should tell you where the problem is. – heynnema Jun 16 '20 at 23:34
  • Again I apologize for the long delay. I ran df but it didn't show anything that looked unusual to me. I'm having camera problems but I should be able to upload a picture tomorrow if you still need it. /// At one point I rebooted and was busy when GRUB prompted me to choose a kernel. It timed out and tried to load the default kernel, which always crashes. Only it didn't crash. It came up just fine. I tried again with the same result. Now I'm doubly baffled -- I don't know why it was failing, AND I can't imagine why it has stopped when I didn't do anything to fix it. – Jonathan Sachs Jul 03 '20 at 04:38
  • @JonathanSachs Looking back at the comment history for this problem... I believe you said that the backup drive worked fine... and I said that your current drive must be the problem. As I recall, we did try new SATA cables, to no end. Don't know where to go next, esp since it seems to be working again. – heynnema Jul 03 '20 at 04:48
  • I feel the same way. I wanted to fix the drive as a learning exercise and to avoid reinstalling applications on a restored system, but the learning part seems to have fizzled, and reinstalling the apps would have taken far less time and effort. At this point I'm inclined to make a current backup and move on, and if the problem returns, restore to another disk. With many thanks for your extended effort to help! – Jonathan Sachs Jul 04 '20 at 20:31