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.
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
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
I suggest to do for
/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
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
F1, it will give you
tty1, log yourself in and edit the
$ sudo nano /etc/default/grub
find this line:
and change it to:
GRUB_CMDLINE_LINUX_DEFAULT="quiet acpi_backlight=video" # or GRUB_CMDLINE_LINUX_DEFAULT="quiet acpi_backlight=vendor"
save it and exit it by
and update your grub
$ sudo update-grub $ reboot
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!