Showing posts with label system. Show all posts
Showing posts with label system. Show all posts

Monday, September 16, 2019

Ubuntu boot to initramfs


Problem:
Ubuntu cannot boot normally but drop to initramfs. The reason is some part of filesystem is broken, so we need to fix.
BusyBox v1.18.5 (Ubuntu 1:1.18.5-1ubuntu4) built-in shell (ash)
Enter 'help' for a list of built-in commands.

(initramfs)

Solution write the command of fsck /dev/sdax like the below and give Y if the console ask for fixing something:
(initramfs) fsck /dev/sda1
or
(initramfs) fsck /dev/sdaX
X specifies mounted disk part number.
If you don't want to manually press 'y' every time it asks for a fix, you can also run the command with the -y option.
(initramfs) fsck /dev/sdaX -y

Monday, October 22, 2018

ISSUE: Failed to start reboot.target: Connection timed out

When rebooting

Failed to start reboot.target: Connection timed out
See system logs and 'systemctl status reboot.target' for details.

Solution
$ sudo systemctl --force --force reboot

Monday, July 10, 2017

[Solved] Ubuntu log in GUI problem

Solve Ubuntu log in GUI problem

Problem definition:
I have ubuntu-desktop 16.04 to access it via GUI. Now I get the GUI login screen with my username (display name) but when i enter my password the screen just flicks and comes back to login screen ( doesnt give me any error). the same user works fine with same credentials in CLI.
strange thing is when i click on guest, it logs me in straight away and works fine.

Solution from stackflow:

This looks like the .Xauthority file is corrupted. Try this in a tty:
sudo mv .Xauthority .Xauthority_backup
Then restart lightdm and try to log in again:
sudo service lightdm restart
If that was not the cause, restore the file to its previous state:
sudo mv .Xauthority_backup .Xauthority