Cosmin Nicolaescu on 17 Aug 2005 20:15:47 -0000

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

Re: [PLUG] disk to disk copy

Hash: SHA1

On Wed, August 17, 2005 12:10 pm, wrote:
> What is a good utility for copying a hard drive to a new, larger drive?
> I just learned about partimage, but I don't want to waste time creating
> an image.  I'm looking for something that has a GUI and that does direct
> copying.  Does "dd" have any GUIs?
> ___________________________________________________________________________
> Philadelphia Linux Users Group         --
> Announcements -
> General Discussion  --

Personally I use tar. I tried rsync for this, but tar is much faster, and
if you're not dealing with a live system, you don't have to worry about
checksums and timestamp checks.

If you want to copy the Windows partition can't you just mount it under
linux and use tar again.

Basically I do the following:

boot the old machine
partition the new hdd
mount the new harddrive (eg.: sdb -> /mnt/sdb)
cd /; tar --exclude "./proc" --exclude "./sys" --exclude "./mnt/sdb"
- --exclude "./dev" -cpSf - . | (cd /mnt/sdb/; tar -xpvSf -)
I then create proc, sys and dev, I mknod a couple of critical devices
without which the system doesn't boot
(/dev/console,/dev/null,/dev/kmem,/dev/kmsg), run grub/lilo and install
the boot loader.

- -Cos

- --
GPG key fingerprint = DE9F 4664 E666 2BD1 903E  4F4D EA31 5FB1 C7F9 08C1

Version: GnuPG v1.4.1 (GNU/Linux)


Philadelphia Linux Users Group         --
Announcements -
General Discussion  --