0

I have an Ubuntu 18.04 LTS laptop that dual-boots with Windows 10. I was fed up with all of my programs quitting every time I close the lid, so I attempted to change the lid close action to "hibernate," like my Windows side does. I followed the guide here: http://tipsonubuntu.com/2018/04/28/change-lid-close-action-ubuntu-18-04-lts/ Immediately after running the Systemd restart command, I was kicked to the login screen, and was unable to login again: I kept returning to the login screen after each attempt. When I powered off the laptop and attempted to boot, Ubuntu entered emergency mode. I thought perhaps reverting my changes in /etc/systemd/logind.conf would fix the issue, but it still persists. Does anyone know how I can make my computer work properly again? I can provide any additional information necessary.

Here's a photo of the first bit of text that shows up on screen before the screen completely fills with scrolling text.

Fakename Bill
  • 31
  • 1
  • 1
  • 5
  • Did you test hibernation prior to changing the lid close action? – Charles Green Apr 11 '19 at 17:20
  • I did not. This may have been stupid of me, but I assumed that it would work, given that hibernation works on the Windows side of my machine. I re-commented the line in logind.conf, though, and it didn't fix it. – Fakename Bill Apr 11 '19 at 17:22
  • 1
    Hibernate is tricky, and I recent;y have stopped using it because of repeated corruption of my hard drive. Try this - load up a live USB of Ubuntu, boot it on your computer and run fsck -f /dev/sdxx to check the integrity of your disks. – Charles Green Apr 11 '19 at 17:26
  • I will do that. However, I should stress that I never actually attempted to hibernate Ubuntu at all. This problem started as soon as I ran the command to reload Systemd - it logged me out and wouldn't let me log in again, then went into emergency mode after I tried restarting. – Fakename Bill Apr 11 '19 at 17:29
  • K - I don't think that the changes to logind.conf should have caused an issue - I tried reloading as mentioned in the article once (for another purpose) but never again. Can you append your question with the text of /etc/systemd/logind.conf? – Charles Green Apr 11 '19 at 17:33
  • Also, this article https://askubuntu.com/questions/768136/how-can-i-hibernate-on-ubuntu-16-04/821122#821122 was a good resource for setting up hibernation - the later section of the answer I linked to discusses using a swapfile instead of a swap partition. I also specifically needed to add a RESUME_DELAY parameter to Grub. – Charles Green Apr 11 '19 at 17:36
  • logind.conf is all comments, except for one line: [login]. The command "systemctl restart systemd-logind.service" is what started this problem. – Fakename Bill Apr 11 '19 at 17:41
  • That's what mine shows as well (after I removed the hibernate related stuff). This is part of what makes me lean towards a bit of corruption on the disk. My experience with hibernation was mostly positive, but after four or five times fixing the disk I gave up. No problems since. – Charles Green Apr 11 '19 at 17:44
  • How can it have corrupted my disk when I never actually tried to hibernate? It was the systemctl restart command that first kicked me to the login screen and all, not closing my lid or anything like that. – Fakename Bill Apr 11 '19 at 17:46
  • I agree that it shouldn't... but using the command results in an immediate termination of Xorg, and who knows what else. It feels much cleaner to reboot. – Charles Green Apr 11 '19 at 18:00
  • I ran fsck from a USB, and it says my Ubuntu partition is clean. It's still going into emergency mode though. – Fakename Bill Apr 11 '19 at 20:44
  • fsck or fsck -f? The -f option indicates that fsck should perform a check even if the superblock thinks the system is clean. See man e2fsck – Charles Green Apr 11 '19 at 21:48
  • I ran it again with -f, and got the message "285102/3735552 files (0.5% non-contiguous), 4887098/14934016 blocks." Ubuntu still boots to emergency mode. – Fakename Bill Apr 12 '19 at 01:25
  • No effect. I wasn't able to log in at all (ctrl-alt-f3 resulted in an infinite blinking cursor), and none of the other things had any effect. I'm appending a photo of the first few lines of console before the system goes fully into emergency mode. – Fakename Bill Apr 12 '19 at 02:01
  • I'm just gonna take an image of the partition and wipe it. – Fakename Bill Apr 15 '19 at 03:25
  • Might be easiest. If you can boot to a live USB, you can copy files from your partitions to a backup device. – Charles Green Apr 15 '19 at 04:06

0 Answers0