From: tuxillo Date: Mon, 21 Sep 2009 21:33:18 +0000 (-0700) Subject: (no commit message) X-Git-Url: https://gitweb.dragonflybsd.org/ikiwiki.git/commitdiff_plain/f35bce331cb278fba19b049140b7133c4096f821 --- diff --git a/docs/howtos/howto_reinstall_hammer/index.mdwn b/docs/howtos/howto_reinstall_hammer/index.mdwn index fba2858e..1ee9fa10 100644 --- a/docs/howtos/howto_reinstall_hammer/index.mdwn +++ b/docs/howtos/howto_reinstall_hammer/index.mdwn @@ -1,3 +1,5 @@ +*** THIS GUIDE IS INCOMPLETE *** + [[!toc]] # Scenario I have got a 250GB SATA harddisk with DragonFlyBSD 2.3.2 32-bit installed on it. @@ -24,6 +26,9 @@ If not, you would have to use hammer version-upgrade. See [hammer(8)](http://lea You will need a DragonFlyBSD LiveCD in order to perform steps for the new installation. Release 2.4.0 or later is recommended. Download the ISOs from [here](http://www.dragonflybsd.org/mirrors/). +## /boot partition + +Note that if your /boot is out of the ROOT HAMMER filesystem, you should copy the data also, so you can restore your current kernel in the new installation. Having kernel and world out of sync can be a problem sometimes. You have been warned. # Data backup At this point you should have a place ready to store all the compressed files you are going to generate. @@ -166,6 +171,43 @@ Finally, we create the filesystems: ## Prepare mount points +Now we setup the mount points where the data will actually be restored. + +You will need + + # mkdir /root/target + # mount_hammer /dev/ad4s1d /root/target + # mkdir /root/target/boot + # mkdir /root/target/pfs + # 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 + + # hammer pfs-slave /root/target/var/tmp + [....] + # hammer pfs-slave /root/target/var/crash + [....] + # hammer pfs-slave /root/target/usr/obj + [....] + # hammer pfs-slave /root/target/rootcopy + Creating PFS #1 succeeded! + /root/target/rootcopy + [....] + + + # Restoring the data