On Wed, Jun 15, 2005 at 08:12:30PM +1200, Steve Crosby wrote:

> > Rsync is cool if you have installed it.  Mount the empty partition on
> > /mnt/lfs-new and run:
> > 
> >     rsync -a /mnt/lfs/ /mnt/lfs-new
> > 
> > (NB: the trailing slash on /mnt/lfs/ is important, don't leave it
> > out!)
> 
> Just as a note for the unwary - make sure you don't have proc,
> sysfs, dev et al mounted in /mnt/lfs when you create the tarball or
> copy the files to the new partition ;)

D'oh!  "rsync -ax" won't recurse into mount points so that's safer.
/dev is OK if it's a regular file system, "rsync -a" handles device
nodes fine.  If you're using devfs/udev it's probably a different
story.

For real peace of mind, boot off a Knoppix Live CD or similar, mount
both the old and new partitions to temporary directories and rsync
them.  Now you *know* exactly what you're copying.  Works for /
partitions too!

Cheers, 

Jeremy Henty 
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to