How to boot into a terminal in arch
Run
systemctl set-default multi-user.target
to start into multi-user mode instead of into graphical mode.
I've tried adding init=/bin/bash to the boot options but it doesn't accept any keyboard inputs.
Try init=/bin/sh, instead of /bin/bash
thanks - did try it, but still no keyboard key presses are being registered.
That's a bit strange, because keyboard handling is usually done by the kernel, so you don't have to start any services (unless you've got a bluetooth keyboard or similar), so it should work, right in the shell you get dropped to.
So, the next logical step would be booting from a live Arch image, mounting your broken system's /
file system into a directory there, bind-mounting /sys
, /dev
, /proc
and /run
into the corresponding subdirectories of that directory as well, chroot
ing into your installed system, and then using systemctl enable display-manager.service
to undo what's been done.
Reboot after.
init=/bin/sh
, instead of/bin/bash
.systemctl
, notsysctl
.tty
with eg.Ctrl+Alt+F2
?grub
most of the parameters, kepping only thevmlinuz
file and theroot=
parameters, and then addinginit=/bin/sh
, so eventually the line should seems likelinux /boot/<vmlinuz file> root=<root fs> init=/bin/sh
. Also, if you have bluetooth keyboard, try to connect a USB or serial keyboard instead.