Reset root password

From ArchWiki
Revision as of 06:28, 17 October 2009 by Lloyda2 (talk | contribs) (Removed section on single-user mode, since entering single-user mode requires the root password.)
Jump to: navigation, search

If you have been locked out of your root account for whatever reason, you can use this procedure to reset your root password and regain access to your system.

1. Boot the Arch Live CD and mount your root partition to /mnt.

2. Bind mount the /dev, /sys, and /proc special mount points into your /mnt:

mount --bind /dev /mnt/dev
mount --bind /sys /mnt/sys
mount --bind /proc /mnt/proc

3. chroot into your installation:

chroot /mnt /bin/bash

4. Use the passwd command to reset your root password.

5. Reboot and don't lose your password again!