I think the best you could do is duplicate (
dump()/
restore())
s1a to
s1h, then modify
/boot/loader.conf to use that as the root filesystem.
However, I would instead back it all up, repartition, then restore. Having an unusual partition layout can make for unpleasant surprises when it is inevitably forgotten.
See
Backup Options For FreeBSD.
I actually thought linking root would be the solution because something like that does work for
tmp, swap and
var slices
and more. I once read a lot about this and I tried. The plan was to combine
tmp and
var-tmp, and/or to
link-up more swap-space. Maybe it was by way of files and not partition slices (I’m getting confused and sleepy).
Now after thinking as I write this reply, I’m looking up those old notes I been keeping. See the commands below (but thinking the root way). I will try it myself by Tuesday. My 12/4 (four on/four off) is wearing me out but those are the types of hours that I must do. I thought this was the the best way to work but you mostly only sleep your four days off.
Anyway, for another who has time and good backup, maybe you can try this just to see what happens. If it’s proven or said that there is no way to do this with root, than I will no longer waste time, and will deal with the standard way of doing things:
]However, I would instead back it all up, repartition, then restore.
I know this is the best way
wblock@, but I was hoping something by way of root can come out of this. If not, to the dumpster it goes.
Code:
ls -lo /var
ls -lo /usr/var/var/tmp --> /usr/var/tmp/tmp
mount -u / # re-mount root partition as read-write
mount -a # mount all partitions in fstab
(I'm not sure about the above. They could have been just notes to get me started. Below is documented stuff that I found while I was googling this a few years back and after playing with it, it worked. Now I wonder if it can work for the root slice. I keep the original web-page copy to give credit where credit is due but it's so deep among thousands of others saved pages and I can’t search my hard-drive right now for it. Please force me to make the effort if needed soon.
Code:
chflags -R noschg /var/empty
chflags -R noschg /var/run/devd.pipe
mv /var /usr/var/var # move var to usr-var
mv /usr/var/var/tmp /usr/var/tmp/tmp # move usr-var-tmp to usr-tmp
mv /tmp /usr/tmp/tmp # tmp is a sylink to a none writeable area
ln -fs /usr/var/tmp/tmp /usr/var/var/tmp
ln -fs /usr/var/var /var
ln -fs /usr/tmp/tmp /tmp
ln -s /extra/src/sys /usr/sys # /sys linked to /extra/src/sys
ln -s /extra/src /usr/src # /usr/src linked to /extra/src
chflags schg /usr/var/var/empty