Cosmin Nicolaescu on 12 May 2006 15:44:42 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Moving system between drives


On Fri, May 12, 2006 7:22 am, K.S. Bhaskar wrote:
> What I do is just use rsync with the -x flag to tell it not to cross
> file system boundaries.  Since I often play with configurations, as a
> way to keep a stable partition, I frequently will set up a PC with 2
> root partitions, think of them as / and /spare.  The way I will create
> a /spare is:
>
> 1. rsync -ax / /spare/
>
> 2. Edit /spare/fstab and reverse the definitions of / and /spare
>
> 3. Add boot entries to /boot/grub/menu.lst and /spare/boot/grub/menu.lst
>
> I suggest you do the above, make sure that you can boot successfully
> on the alternate drive, and then run grub-install on the new drive and
> remove the old one.
>
> -- Bhaskar
>

Overhead. rysnc is a much more complex algorithm and usually used to make
network-based transfers. In that case, rsync is great because it gives you
a lot more power (update only, checksum etc.)

Whenever I moved data from one partition to the other I used tar. There
was a thread a while ago about how to do this but basically (I'm assuming
you partitioned the drive):

cd /path/to/original
tar cSplf - . | (cd /path/to/new && tar -xSpvf -)

-Cos

-- 
Cosmin Nicolaescu
(267)-918-8505
GPG key fingerprint = DE9F 4664 E666 2BD1 903E  4F4D EA31 5FB1 C7F9 08C1

___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug