Moving a partition
Bill Campbell
linux-sxs at celestial.com
Mon Sep 1 10:33:28 PDT 2008
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
--
INTERNET: bill at celestial.com Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way
Voice: (206) 236-1676 Mercer Island, WA 98040-0820
Fax: (206) 232-9186
Now if there is one thing that we do worse than any other nation, it is
try and manage somebody else's affairs.
Will Rogers
More information about the Linux-users
mailing list