This presents a way to repair a damaged HardenedBSD system with the installation media (Live-CD). In the example, the ZFS file system is used.
-
Download the HardenedBSD installation media.
-
Boot on this and select "Live CD" (the username is "root" without password).
-
If you want to choice other keybord, use
kbdmap
command. -
You probably need to enable DHCP on your network card via the command:
dhclient em0
-
You may need to know your partitions:
gpart show
-
Run zpool import to get name of zpool (probably zroot):
zpool import
-
Create a mountpoint for zpool:
mkdir -p /tmp/zroot
-
Import zpool:
zpool import -fR /tmp/zroot zroot
-
Create a mountpoint for zfs /:
mkdir /tmp/root
-
Mount / (the directories will now be available in /tmp/root):
mount -t zfs zroot/ROOT/default /tmp/root
-
Repair HardenedBSD (hash link for hbsd-update):
chroot /tmp/root /bin/sh
hbsd-update -d -V -U -v hbsd-v1x0000x-UPDATE-HASH
exit
Make changes or save your stuff as needed export zpool: zpool export zroot
Boot normally.
Source: forums.freebsd.org