Dnia 2010-04-04, o godz. 21:04:03
Neil Bothwick <n...@digimed.co.uk> napisał(a):

> On Sun, 04 Apr 2010 20:35:11 +0100, Kerin Millar wrote:
> 
> > Whichever way you go about it, ensure that no pseudo-filesystem or
> > bind mounts are present within "/mnt/oldrootfs" at the time.
> 
> Use the -x option with rsync to stop it descending into other
> filesystems.
> 
> 

AFAIK

"mount --bind / /somewhere" and rsync'ing /somewhere/ instead of / would
be more useful then "-x" option - stage1,2,3 has static /dev entries
which should also be copied. Since udev mounts it with tmpfs, rsync
with -x would skip those entries (static and from tmpfs).

I suppose you can ignore static /dev if you use initrd.

Since author of this thread wants to mount filesystem(s) of "the
system" from livecd of some kind, there is no point in using any of
ideas in this or previous email - there will be no other filesystems
mounted.

I often use that trick with /somewhere/ to backup live system from
laptop to external drive. But it does not work well with innodb...

man mount
man rsync

good luck

-- 
Kacper Kopczyński

Reply via email to