log in and password.

Mike Clarke jmc-freebsd2 at milibyte.co.uk
Mon Oct 6 18:22:19 UTC 2014


On Friday 03 Oct 2014 13:57:48 Andrei Brezan wrote:

> On 10/03/14 12:08, Polytropon wrote:
> > When you enter single user mode, no password should be required.
> > At the boot prompt, enter "boot -s", and then confirm /bin/sh
> > as the default shell. Enter the command "mount -uw /" to access
> > the root partition (where the password is stored). Then enter
> > "passwd" (or "passwd root") to change root's password. You will
> > not be asked for the previous password.
> 
> If ZFS is used I would do a "zfs list" to see which fs has the
> rootfs  and "zfs set readonly=off name/of/rootfs"
> 
> Also it might help to "zfs mount -a" to mount all other filesystems
> as /usr.
> 
> I never tried mount -uw in single user mode on zfs though.

After converting my system from ufs to zfs I just kept on using "mount -u /" out of habit and it's 
always worked OK.

-- 
Mike Clarke


More information about the freebsd-questions mailing list