DEV Community

Cover image for Error on Ubuntu boot up - “recovering journal”
HasOne
HasOne

Posted on • Updated on

Error on Ubuntu boot up - “recovering journal”

I recently got into this problem, so I had to research a lot to get my machine up and running. this problem happens when you shut your machine down directly by pulling the plug, cause it didn't write anything to the disk. Don't worry it can be fixed.

Workaround

you need to make a bootable Live USB drive to boot into that USB and fix your HDD problem. once you boot up. figure out where is the Ubuntu EXT4 drive. run the below command to see

$ lsblk
Enter fullscreen mode Exit fullscreen mode

you will see a list of the drive under the sda disk. in my case I had the Ubuntu OS in the dev/sda2 drive you may have a different one. let fix the drive by this command

$ sudo fsck -f /dev/sda2 # change /dev/sda2 to your /dev/sda1
Enter fullscreen mode Exit fullscreen mode

I suggest to do for /dev/sda1 and /dev/sda2 so on. if you don't know where is the HDD Ubuntu drive.

once it's done. reboot your machine and you should be able to log into your Ubuntu. if you went to the tty1 terminal then you need to install the ubuntu-desktop.

$ sudo apt-get update
$ sudo apt-get install --reinstall ubuntu-desktop
$ startx
Enter fullscreen mode Exit fullscreen mode

This will solve the problem and you should see GUI like normal.

if you see something like the below error while trying to boot up

[FAILED] Failed to start Load/Save Screen Backlight Brightness of backlight:acpi_video0
See 'systemctl status systemd-backlight@backlight:acpi_video0.service' for details.
[OK] Started Load/Save Screen Backlight Brightness of backlight:radeon_b10
Enter fullscreen mode Exit fullscreen mode

press the clt + alt + F1, it will give you tty1, log yourself in and edit the /etc/default/grub file

$ sudo nano /etc/default/grub
Enter fullscreen mode Exit fullscreen mode

find this line:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
Enter fullscreen mode Exit fullscreen mode

and change it to:

GRUB_CMDLINE_LINUX_DEFAULT="quiet acpi_backlight=video"
# or
GRUB_CMDLINE_LINUX_DEFAULT="quiet acpi_backlight=vendor"
Enter fullscreen mode Exit fullscreen mode

save it and exit it by ctl + S and ctl + X.

and update your grub

$ sudo update-grub
$ reboot
Enter fullscreen mode Exit fullscreen mode

BOOM, you made it. I hope this post will help you and can save your time from wasting. every time you stuck somewhere you will learn something remember which you almost can't forget. Thank you so much for your time to go through my Post, I appreciate you!

Top comments (2)

Collapse
 
acuellarh profile image
AlejandroCuellar

Thanks a lot!!!! It works perfectly

Collapse
 
thepassionate profile image
ThePassionate

it works, thanks!