<br><br><div><span class="gmail_quote">On 9/1/05, <b class="gmail_sendername">Michael Skowvron</b> <<a href="mailto:michaels@penguincentral.org">michaels@penguincentral.org</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Chris Romano wrote:<br>> Say that I want to use Knoppix and use the network, what is the best way<br>> to copy the data over? I have never did anything like this before.<br>> Would I have to partition the disk and format it first with Knoppix?
<br><br>Correct.<br><br>1. Bring the system up on Knoppix and partition the system disk to<br>match the source system.<br><br>2. Make filesystems and mount the partitions. I usually use something<br> like /d2, so I end up with:
<br> / is /d2<br> /var is /d2/var<br> /home is /d2/home<br><br> etc...<br><br>3. Ensure that networking is up. If I recall, you'll configure this<br> during the Knoppix boot.<br><br>4. Move your data across using ssh
<br><br> target # cd /d2<br> target # ssh root@source "cd / ; tar cBlf - ." | tar xBf -<br> target # cd /d2/var<br> target # ssh root@source "cd /var ; tar cBlf - ." | tar xBf -<br><br> -B is required to block the data correctly across the net
<br> -l prevents tar from crossing into another mount point<br><br>5. After populating the system drive, configure the boot loader, by<br> chroot-ing into the root filesystem and running the appropriate<br> command
<br><br> target # chroot /d2<br> target # lilo<br> tarxet # exit<br><br>6. Reboot!<br><br>Some folks might be concerned about copying a live filesystem and it's<br>true that there is a small chance for a file to change during the
<br>copy. Most likely, it's just going to be a log file and will not be an<br>issue.<br><br>I always use xfsdump to move my data because, by design, it is safe<br>for dumping live filesystems. If you're using xfs filesystems, I
<br>highly recommend xfsdump/xfsrestore over tar.</blockquote><div><br>
<br>
I am using <font size="-1">reiserfs. My partitions are very
simple for these machines. I just have a swap and "/"
partition. I normally break out "home" and "var", but these are
only going to be proxy servers and nothing else .. well they will have
some firewall rules and they will NAT so I guess they are just proxies.<br>
<br>
I will give those a try.<br>
<br>
Thanks,<br>
Chris<br>
</font> </div><br></div><br>