When something went wrong, it is good to boot into single user mode (without the user/root authorization) and do some maintenance tasks.
Boot in to a single user mode
First of all, you must have access to FreeBSD console to manage boot process, because you have to somehowe initiated reboot of the system. When you have access to console keyboard, simply press CTRL+ALT+DEL. Another option is hardware reset or power-ofF & power-on, but this is not a graceful reboot and you can damage something.
During the boot sequence, there is "Bestie boot menu" where you can simply select option 2 by pressing key 2.
![]() |
Bestie boot menu |
Change read-only filesystem to read-write
When FreeBSD is booted into a single user mode, the file system is in read-only mode for safety.
When you want to change someting in file system or even change root or user password, you have to remount file system from read-only mode into read-write mode.
For UFS
Below is the sequence of commands to do so if you have UFS file system.
Command (mount -u /) remounts the root filesystem (/) using the options specified (or defaults from /etc/fstab), without unmounting it.
Command (mount -a) mounts the rest of the filesystems defined in /etc/fstab.
For ZFS
Below is the sequence of commands for ZFS file system.
zfs mount -a
No comments:
Post a Comment