My Arch Linux install is screwed, please help [solved]

So when I boot my arch linux install it puts out "/sbin/init does not exist, then puts out a command prompt in root fs, please help me

Seems someone over on bbs.archlinux has solved that:

https://bbs.archlinux.org/viewtopic.php?id=146388

I found the answer, it was in a stack exchange thread, I just needed to change which partition the kernel thinks is root

2 Likes

I think I made another fuck up, I can't use sudo on my non root account, how do I get it so that it can use sudo?

check if the user is in the wheel group

id

if it isnt, add it

su -c 'usermod -a -G wheel [username]'

check the wheel group is enabled in sudo

su -c visudo

look for

## Allows people in group wheel to run all commands
%wheel  ALL=(ALL)       ALL

When I type in visudo, in both terminals, both said the command doesn't exist

Install sudo

I can't, the package doesn't show up

edit: nevermind, package showed up

1 Like

Oh shit, another problem, how do you write kernel parameters to syslinux to boot that way every time? I am also worried nothing will be written to disk? I am scared to issue systemctl reboot -i

No idea about syslinux, check here https://wiki.archlinux.org/index.php/syslinux