# mount /dev/ad4s1a /root/target/boot
You must create an intermediate slave PFS in order to restore / mount. PFS#0 cannot be downgraded to slave, so you have no choice here.
-We create all the PFSs as slaves, and mount_null them.
- # hammer pfs-slave /root/target/var
- [....]
- # hammer pfs-slave /root/target/usr
- [....]
- # hammer pfs-slave /root/target/tmp
- [....]
- # hammer pfs-slave /root/target/home
- [....]
- # cd /root/target && mv var usr tmp home pfs
- # mkdir var usr tmp home
+# Restoring the data
- # hammer pfs-slave /root/target/var/tmp
- [....]
- # hammer pfs-slave /root/target/var/crash
+Let's start recovering our data into the physical media:
+
+ # gunzip -c /root/pfs/usr.gz | hammer mirror-write /root/target/pfs/usr
+ PFS slave /root/target/pfs/usr does not exist.
+ Do you want to create a new slave PFS? (yes|no) y
+ Creating PFS #1 succeeded!
[....]
- # hammer pfs-slave /root/target/usr/obj
+
+ # gunzip -c /root/pfs/var.gz | hammer mirror-write /root/target/pfs/var
+ PFS slave /root/target/pfs/var does not exist.
+ Do you want to create a new slave PFS? (yes|no) yes
+ Creating PFS #2 succeeded!
+ And so on with all the PFSs we backed up.
[....]
- # hammer pfs-slave /root/target/rootcopy
- Creating PFS #1 succeeded!
- /root/target/rootcopy
+
+Now we need to restore our **/** in the intermediate PFS, then cpdup it into our target dir:
+
+ # gunzip -c /root/pfs/root.gz | hammer mirror-write /root/target/pfs/rootcopy
+ PFS slave /root/target/pfs/rootcopy does not exist.
+ Do you want to create a new slave PFS? (yes|no) y
+ Creating PFS #6 succeeded!
[....]
+ # cpdup -vv -I /root/target/pfs/rootcopy/ /root/target/
+ # cd /root/target/pfs/rootcopy/boot && cpdup . /root/target/boot
+# Fixing the configuration
+Our next step is to make all our slave PFS to master and wipe out rootcopy, which is temporary.
+Also we will create /usr/obj, /var/tmp and /var/crash PFSs.
+
+ # hammer pfs-destroy /root/target/pfs/rootcopy/
+ You have requested that PFS#6 () be destroyed
+ This will irrevocably destroy all data on this PFS!!!!!
+ [....]
+ # rm /root/target/pfs/rootcopy
+
+ # hammer pfs-upgrade /root/target/pfs/usr
+ pfs-upgrade of PFS#3 () succeeded
+ # hammer pfs-upgrade /root/target/pfs/tmp
+ pfs-upgrade of PFS#2 () succeeded
+ # hammer pfs-upgrade /root/target/pfs/home
+ pfs-upgrade of PFS#4 () succeeded
+ # hammer pfs-upgrade /root/target/pfs/var
+ pfs-upgrade of PFS#1 () succeeded
+ # hammer pfs-master /root/target/pfs/var.tmp
+ Creating PFS #7 succeeded!
+ # hammer pfs-master /root/target/pfs/var.crash
+ Creating PFS #8 succeeded!
+ # hammer pfs-master /root/target/pfs/usr.obj
+ Creating PFS #9 succeeded!
+
+Finally fix your /etc/fstab to match your new slice entries!
-# Restoring the data
-# Fixing the configuration
# Booting
+Problems after the new installation.
+
+