On Sun, Jan 17, 2010 at 08:48:21AM +0200, Nikos Chantziaras wrote:
> On 01/17/2010 12:40 AM, YoYo siska wrote:
>> On Sat, Jan 16, 2010 at 03:21:32PM +0200, Nikos Chantziaras wrote:
>>> On 01/15/2010 07:33 PM, Jarry wrote:
>>>  [...]
>>> I'll just copy the instructions I have someone else here:
>>>
>>> You can clone the existing Gentoo installation into the new partition
>>> and boot from it.  You can do this while the system is actually running.
>>>   The new partition can be anything you want (different size, different
>>> file system).  This usually means:
>>>
>>>
>>> rsync your existing / to your target / (except /dev, /sys and /proc and
>>> of course mount points that belong to a different filesystem, /boot or
>>> /home for example if you're using dedicated partitions for those).  If
>>> you mounted your target / as /root/newpart, this is done with:
>>>
>>> rsync -ax / /root/newpart
>>>
>>> If this copied directories it shouldn't have (like /sys or /proc),
>>> simply delete them again.
>>> [...]
>>
>> If you are doing it this way (on a running system with mounted
>> dev/proc/sys...), you can just bind-mount your current / to another
>> directory. That "copy" will not contain any "sub-mounts"
>
> rsync -ax / /target shouldn't copy any sub-mounts either, because of the  
> -x option.  See man rsync.  I mentioned it just in case ;)
>
yes, but it will miss any files "hidden" under those mounts, though
normally that menas only /dev/, the others are empty...
and i like it more, because it makes a more "exact" copy ;)

yoyo


Reply via email to