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


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, August 17, 2005 12:10 pm, gyoza@comcast.net 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         --
> http://www.phillylinux.org
> Announcements -
> http://lists.phillylinux.org/mailman/listinfo/plug-announce
> General Discussion  --
> http://lists.phillylinux.org/mailman/listinfo/plug
>
>

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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFDA5tF6jFfscf5CMERAvDbAKCxNqj4WGisVfkyrj7Agyv+s3aw8gCdGJVp
OH+vHsAJL7pvLkVRTBWkQtQ=
=HHSO
-----END PGP SIGNATURE-----

___________________________________________________________________________
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