Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 3474

Black screen after log in

$
0
0
Hi,

For the reader, if like me you are wondering how to type commands in a black screen,

Enter recovery mode, type root passwd, and you're good to go.
If like me the above step gave an error like "root locked" because you didn't set a root password:
- in the boot options menu select "recovery mode".
- Then you should have another menu. Select one of them with the recovery mode tag, and press e to modify its options.
- find a line that looks like "linux /boot/vmlinuz-<your_version> root=/dev/sda1 ro quiet single" and replace the 'single' by 'init=/bin/bash' (if you don't have the 'quiet', add it).
Then you will get this line: "linux /boot/vmlinuz-<your_version> root=/dev/sda1 ro quiet init=/bin/bash"
Press F10 to boot.
- Now you should be in root. type "passwd root" to set a root password. If you get an error like "Authentication token manipulation error", then type "mount -o remount,rw /; mount | grep ' / '
". NB: the '/' at the end of the command have a space before and a space after. The output should be similar to "/dev/sda1 on / type ext4 (rw, ...)". Then you can type "passwd root" again.
Once your root password is set, type "reboot" and boot into recovery mode. Type the root password and solve your issue.

Best regards

Statistics: Posted by Hedwon — 2025-02-13 12:52 — Replies 1 — Views 52



Viewing all articles
Browse latest Browse all 3474

Trending Articles