1
0
mirror of https://git.FreeBSD.org/doc.git synced 2026-06-02 19:35:07 +00:00

FAQ: Extend the forgot-password question to include kbdmap and ZFS

When going into single user mode to change the root password, some users
may want to change to their preferred keyboard layout before entering a
new password. Add a sentence about how to do that.

When remounting all the remaining filesystems, there are different mount
instructions for UFS and ZFS. Mention how to do that for each of them.

PR:	294971
This commit is contained in:
Benedict Reuschling
2026-05-09 15:41:03 +00:00
parent d230e371ab
commit a51f3e9a76
@@ -438,7 +438,9 @@ bindkey ^[[3~ delete-char # for xterm
Do not panic!
Restart the system and select `Boot Single User` from the boot loader menu, or press `Escape` at the menu and type `boot -s` at the loader prompt, to enter single-user mode.
At the question about the shell to use, hit kbd:[Enter] which will display a # prompt.
Enter `mount -urw /` to remount the root file system read/write, then run `mount -a` to remount all the file systems.
When there is a need to change the keyboard layout, run `kbdmap`, select the preferred one and confirm by pressing kbd:[Enter].
Enter `mount -urw /` to remount the root file system read/write.
To remount all the remaining file systems, run `mount -a` for UFS filesystems and `zfs mount -a` when using ZFS.
Run `passwd root` to change the `root` password then run `exit` to continue booting.
[TIP]