tomclegg.net


Diary
Examples
    256-router
    adzap
    apache-double-reverse
    cacti-adodb-php4
    debian-quota
    diskonmodule
    dollarsperbyte
    dynip
    ezmlm-linux
    fbsdhabits
  >freebsdclone<
    macbook-quantal-sound
    maildirpop3d-awfulhak
    mandy
    md
    mrtg
    net-snmp
    nodefaultroute
    oracle9i
    oracle9i-bsd5
    oracle9i-client
    oracle9i-nat
    php-cgi
    php-commandline
    php-image
    php-kics
    php-mini_httpd
    pinouts
    pizzaperdollar
    plesk-symlink-php
    pxe
    qmail-linux
    qmail-qfilter
    racoon-sonicwall
    redundant-vpn
    rewriterule
    seahorse-workaround
    setting-locale-failed
    smalldog
    snmpv3-cacti
    spamassassin
    squid-tproxy
    supfile
    suse73
    svc-nmbd
    svc-smbd
    svc-smtpd
    switch-virtualbox-virsh
    toyotastereo
    vm
    vn-file
    wmp-invalid
    xcode-remote-install
    xen-eth0-renamed
    xen-monowall
    xen3-ubuntu-dapper
    zz-update-grub-fail
Hire Tom
Mostly Mozart
Patches
School
Scrapbook
Software
Telephones




colocation
comments
davidireland
edsgranola
faq
funsites
goodlooking
goodmovies
google-earth-saucy-amd64
houserules
liberating
resume
resume2
scratch
shopping
snacks
todo
university
warisbogus

Cloning a FreeBSD system
Posted June 6, 2003

Simplifying by assuming a single partition, a secure network, and ucspi-tcp already installed on ORIG...

Install fresh hard disk in CLONE, and boot from a FreeBSD rescue floppy.

Rather than installing, go to the "configure" submenu and do "fdisk" and "slice." Use W Q instead of just Q to quit each one. Install a boot manager just as if you were building a new system.

Go back to the main menu and choose "fixit," then "live filesystem on CD-ROM."

Press alt-f4 to switch to the emergency shell.

Start tcpserver on ORIG:

tcpserver -vRHl 0 -c 1 10.23.1.1 1234 sh -c '
echo HTTP/1.1 200 OK
echo Content-type: application/octet-stream
echo
exec dump -0f - /'

Go back to CLONE:

cd /mnt
fetch -q -o - http://10.23.1.1:1234/foo | restore -rvf -