On a secure network:
1. Boot bsd.rd
bsd.rd
boot
2. Recreate MBR
fdisk -iy wd0
3. Recreate Disklabel
disklabel -E wd0
4. Start networkOn a secure network:
ifconfig xl0 192.168.0.4 netmask 255.255.255.0
1. newfs(8)
newfs wd0a
2. mount(8)
mount /dev/wd0a /mnt
3. cd(1) into filesystem
cd /mnt
4. make a temp directory for restore (/tmp isn't big enough)
mkdir /mnt/temp
5. set TMPDIR to point to that temp directory
export TMPDIR=/mnt/temp
6. Pipe backup file into restore(8)
# ftp -o -
ftp://user@server/backup.file.gz | gunzip | restore -rf -
7. remove the temp directory and the restoresymtable file in the top level directory.
rm -rf /mnt/temp
8. Finally make the root drive bootable
cp /usr/mdec/boot /mnt/root
/usr/mdec/installboot -v /mnt/root /usr/mdec/biosboot wd0