English Czech
Additional Troubleshooting
and exit out of the terminal.
A root password may be set up while installing Fedora Linux, although it is now suggested to leave the root account locked and use `sudo`. There are two common methods to reset the root password if it is forgotten or lost.
Boot the Live installation media and choose `Try Fedora`.
Change the root password:
Changing passwords as root will not prompt for the old password.
chroot /mnt/sysimage /bin/bash
`chroot` to the mounted root partition with:
Congratulations, your root password has been successfully changed.
Continue the process by mounting `/boot`, `proc`, `/dev`, and `/run` with:
Create a directory for the mount point (use the `-p` option to create subdirectories):
exit
Exit out of chroot with:
From the desktop, open a terminal and switch to root using `su` (the system will not ask for a password).
Go the the end of that line and include a space and the following `rw init=/bin/bash`.
How to Reset the root Password
How to reset the root password in Rescue Mode
How to reset the root password with a Fedora Live Media
If you are using LVM partitions, type: `sudo lvscan` and note the `/dev` path of your root partition. For this example we will use `/dev/fedora/root`.
If you cannot enter rescue mode because you forgot the Firmware/BIOS password here are some options: