|
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.
|
|
|
Changing passwords as root will not prompt for the old password.
|
|
|
Select the boot entry you wish to edit with the arrow keys.
|
|
|
Select the entry you with to edit by pressing *e*.
|
|
|
Use the arrow keys to go to select the line begging with `linux`, `linux16`, or `linuxefi`.
|
|
|
Go the the end of that line and include a space and the following `rw init=/bin/bash`.
|
|
|
[Note] ==== If your disk is encrypted, you may need to add `plymouth.enable=0` ====
|
|
|
Press *Ctrl-x* or *F10* to boot the entry
|
|
|
You will be prompted to enter the new root password twice.
|
|
|
The system may take a moment to boot while SELinux relabels its permissions on the filesystem. If you see the Plymouth boot screen you can press the `ESC` key on your keyboard to view the SELinux progress. Once it is complete, your system is ready and your root password has been successfully changed.
|
|
|
Boot the Live installation media and choose `Try Fedora`.
|
|
|
From the desktop, open a terminal and switch to root using `su` (the system will not ask for a password).
|
|
|
To view your hard drive device nodes, enter `df -H` into the terminal. For this example we will use `/dev/sda1` for the `/boot` partition and `/dev/sda2` for the root `/` partition.
|
|