Moving a partition
Ken Moffat
kmoffat at drizzle.com
Mon Sep 1 13:27:34 PDT 2008
Bill Campbell wrote:
> On Mon, Sep 01, 2008, Ken Moffat wrote:
>
>> Any opinions on this procedure for moving a linux install
>>
> >from one partition (hda1) to another (sda4)?
>
> I generally use cpio for this:
>
> cd /mnt/hda1
> find . | cpio -pduma /mnt/sda4
>
> One could probably use ``cp -r --something'' as well, but I have
> been using find|cpio for decades on all flavors of *nix without
> portability problems.
>
> The rsync program is also good for this sort of thing if one
> already has a copy on the destination, and all that's necessary
> is to update it to the current state. I frequently will use the
> find|cpio to copy /home to a new partition while the system is
> active, then bring it down to single-user and use rsync to make
> the new partition current before making the final switch. This
> minimizes down-time if the initial copy takes a long time.
>
> Bill
>
I think the dump/restore procedure can be done from the active install.
Is this true of the cpio procedure?
More information about the Linux-users
mailing list