English Czech
How to reset the root password with a Fedora Live Media
To download and create a live USB of Fedora Workstation, follow the instructions on the xref:creating-and-using-a-live-installation-image.adoc[Fedora USB Live Media Quick Doc].
Boot the Live installation media and choose `Try Fedora`
From the desktop, open a terminal and switch to root using `su` (it won't ask for a password)
To view your hard drive device nodes, in the terminal type: `df -H`. For this example we will use `/dev/sda1` for the `/boot` partition and `/dev/sda2` for the root `/` partition.
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`.
Create a directory for the mount point (use the `-p` option to create subdirectories):
mkdir -p /mnt/sysimage/boot
Mount the `/` (root) partition (be sure to use the actual device node or LVM path of your root `/` partition):
To mount root on a *standard partition* scheme enter:
mount /dev/sda2 /mnt/sysimage
To mount root on an *LVM partition* scheme enter:
mount /dev/fedora/root /mnt/sysimage
Continue the process by mounting `/boot`, `proc`, `/dev`, and `/run` with:
mount /dev/sda1 /mnt/sysimage/boot
mount -t proc none /mnt/sysimage/proc
mount -o bind /dev /mnt/sysimage/dev
mount -o bind /run /mnt/sysimage/run
`chroot` to the mounted root partition with:
chroot /mnt/sysimage /bin/bash