How to Reset Forgotten Root Password in Arch Linux

It’s quite frustrating getting locked out of your system as the root user because you cannot recall your password. This usually happens in case you haven’t logged in as root for an extended period of time. But fret not. In this article, we walk you through a step-by-step process on how you can reset a forgotten root password in Arch Linux.

Keep Reading: How to Reset Forgotten Root Password in CentOS 8

Firstly, reboot or power on your Arch system. The first entry will be selected by default as shown below.

Arch Linux Grub Boot Menu
Arch Linux Grub Boot Menu

Interrupt the booting process by pressing ‘e’ on the keyboard to make changes to the boot entry.

In the next step, scroll down and locate a line that begins with:

linux          /boot/vmlinuz-linux

Using the arrow keys navigate to the end of this line which ends with quiet. Next, append the parameter init =/bin/bash as shown.

Change Grub Boot Entry in Arch Linux
Change Grub Boot Entry in Arch Linux

Next press the ctrl + x combination to boot into single-user mode with the root filesystem mounted with read-only (ro) access rights.

We need to remount the root filesystem with read and write rights.

# mount -n -o remount,rw /
Mount Root Filesystem in Arch Linux
Mount Root Filesystem in Arch Linux

Now you can go ahead to reset the root password using the passwd command.

# passwd
Reset Root Password in Arch Linux
Reset Root Password in Arch Linux

Specify your new root password and confirm it. If everything went well you will get the output:

‘password updated successfully’.

Finally, run the command below to save the changes and start ArchLinux.

# exec /sbin/init

And that’s it! As you can see, it’s a simple and straightforward procedure. You should now be comfortable resetting your root password in case you forget it.

Tutorial Feedback...
Was this article helpful? If you don't find this article helpful or found some outdated info, issue or a typo, do post your valuable feedback or suggestions in the comments to help improve this article...

If You Appreciate What We Do Here On TecMint, You Should Consider:

TecMint is the fastest growing and most trusted community site for any kind of Linux Articles, Guides and Books on the web. Millions of people visit TecMint! to search or browse the thousands of published articles available FREELY to all.

If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.

Support Us

We are thankful for your never ending support.

1 thought on “How to Reset Forgotten Root Password in Arch Linux”

Got something to say? Join the discussion.

Have a question or suggestion? Please leave a comment to start the discussion. Please keep in mind that all comments are moderated and your email address will NOT be published.