View Single Post
  #8   (View Single Post)  
Old 2nd September 2009
revzalot's Avatar
revzalot revzalot is offline
Shell Scout
 
Join Date: May 2008
Posts: 123
Default

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

Last edited by revzalot; 2nd September 2009 at 04:30 PM. Reason: Added final step.
Reply With Quote