当前位置: 首页 >> 榆树网-系统 >> 文章正文

Cloning a FreeBSD system

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 -

相关文章

发表评论