THIS PROCEDURE IS THE SAME ON ALL ARCH BASED SYSTEMS
In this article we have deliberately broken our system in order to teach you TTY. That is another way to fix your computer. But sometimes you can not even get into the TTY.
You can always apply this solution – ALWAYS.
It is actually part of the installation procedure from Arch Linux and that tutorial can be found here.
First we break our system. All I need to do is install the wrong nvidia drivers and we end up in a black screen.
sudo pacman -S nvidia-340xx
With lsblk I analyze what my root is or “/”.
I will have to mount /dev/sda2
Since I have azerty I have to type one line more
mount /dev/sda2 /mnt
No need to type sudo now – we are already root.
pacman -R nvidia-340xx
The fix we do here will not help you
you need to investigate what crashed your system
and undo it
It might help if you checked these files (if you can still reach them)
- .bash_history in your home folder
- .xsession-errors might display something
- dmesg in the terminal