<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.9.3">
</HEAD>
<BODY>
Thanks Mike I wasn't sure if Rsync was the best tool.  A sudo Nautilus works fine for the home partition, but with all the links and special files a commandline tool is definitely need for /. I'll give it a burl.<BR>
<BR>
Regards Russell<BR>
<BR>
On Thu, 2005-12-22 at 22:21 -0800, Mike Bird wrote: 
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">On Thu, 2005-12-22 at 21:55, Russell Cook wrote:</FONT>
<FONT COLOR="#000000">> What I want to know is if there's a simple technique to move the root</FONT>
<FONT COLOR="#000000">> and boot partitions to the new drive? I'm, happy enough to edit the</FONT>
<FONT COLOR="#000000">> grub installation, but I'm not sure what's involved in maintaining</FONT>
<FONT COLOR="#000000">> permissions when copying etc, dev, proc, sbin and other important and</FONT>
<FONT COLOR="#000000">> special folders. Is there a tool or technique for this? </FONT>

<FONT COLOR="#000000">With the new root mounted at /newroot,you can use</FONT>
<FONT COLOR="#000000">"cp -vax / /newroot".  Mount the new boot at /newroot/boot</FONT>
<FONT COLOR="#000000">and "cp -vax /boot /newroot/".  You may wonder why there's</FONT>
<FONT COLOR="#000000">no boot on the end of that last command.  You can experiment</FONT>
<FONT COLOR="#000000">on some small folders in /tmp if you want to figure it out.</FONT>

<FONT COLOR="#000000">The "-x" (or the "x" in "-vax") ensures that it only copies one</FONT>
<FONT COLOR="#000000">filesystem at a time.</FONT>

<FONT COLOR="#000000">Or a cpio pipeline is kind of traditional.</FONT>

<FONT COLOR="#000000">However, I personally prefer using rsync.  I can use "-n" to</FONT>
<FONT COLOR="#000000">see what it's going to do before I let it loose:</FONT>
<FONT COLOR="#000000">"rsync -n -vax -H --delete / /newroot/".  When it looks</FONT>
<FONT COLOR="#000000">like its going to do the right thing just run it again without</FONT>
<FONT COLOR="#000000">the "-n".  Then "rsync -n -vaz -H --delete /boot/ /newroot/boot/".</FONT>

<FONT COLOR="#000000">You also need to get Grub or LILO working on the new drives.</FONT>
<FONT COLOR="#000000">There's lots of different techniques.  If the system is not</FONT>
<FONT COLOR="#000000">three thousand miles away just boot the CD in recovery mode,</FONT>
<FONT COLOR="#000000">let it find your new root, chroot into it, mount your /boot</FONT>
<FONT COLOR="#000000">in the jail if it's not already there, then run Grub or LILO.</FONT>

<FONT COLOR="#000000">--Mike Bird</FONT>


</PRE>
</BLOCKQUOTE>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
Kind Regards Russell<BR>
==================<BR>
www.windsorcycles.com.au<BR>
sales@windsorcycles.com.au<BR>
ph. 02 4577 3209<BR>
bikes.no-ip.info<BR>
Linux user #369094<BR>
================== <BR>
<BR>
<BR>
<BR>
<BR>
</TD>
</TR>
</TABLE>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
Kind Regards Russell<BR>
==================<BR>
www.windsorcycles.com.au<BR>
sales@windsorcycles.com.au<BR>
ph. 02 4577 3209<BR>
bikes.no-ip.info<BR>
Linux user #369094<BR>
================== <BR>
<BR>
<BR>
<BR>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>