-----BEGIN PGP SIGNED MESSAGE-----

well.. with linux there are a bunch of things you can do.. my prefered
method, because it allows you to resize your partitions, and defragment
the data at the same time (linux doesn't fragment much, but it can a bit
over time) is to use CPIO.

it's not the easiest thing, unless you're used to console tools.  but
anyway.. here's what I do. (this requires you have both disks in a single
system, which can be a problem for laptops.  to dupe a laptop drive, you
can mount a remote filesystem over ethernet, and a change to the CPIO
option will make it an archive.

boot a rescue disk.. like debian installer, or redhat in rescue mode.

fdisk your new drive the way you want it.

mke2fs on all the partitions

mkdir /new

mount all your filesystems onto /new the way you want it

for each old filesystem:

find . -xdev -print | cpio -pdVm /new(+filesystems if necessary)

a quick summary of the options

find: -xdev will only copy one filesystem at a time.. that way it doesn't
try and copy /new onto itself :)

CPIO:
- -p: passthorugh, this is the command that actualy does the passthrough
copying.

- -d: create directories, necessary for filling out the new filesystem

- -V: verbose dots.. for each file, print a '.'

- -m: preserve modification dates.

Thank You,
        Ben Kochie (ben at nerp.net)

 "Unix is user friendly, Its just picky about its friends."

On Tue, 29 May 2001, Jacqueline Urick wrote:

> I'm getting a new, replacement harddrive for my laptop and I think I
> remember seeing some kind of "thing" that allowed you to duplicate the data
> from the old harddrive to the new one, so you don't have to re-install
> everything. Does anyone know what the "thing" is called? And do they
> actually work?
>
> thanks,
>
> Jacque
>
> _______________________________________________
> tclug-list mailing list
> tclug-list at mn-linux.org
> https://mailman.mn-linux.org/mailman/listinfo/tclug-list
>

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: noconv

iQCVAwUBOxPJdctpDhsSpvgtAQHKrAP8Cg9EYfkqgzkmeo12+lWmH6GHq7lcfQVY
24NHlp2EUIo4YkBzbH6hkhBUrRIdH5EIwUhBD2bG1T/M/VDl/jt+Z06fv6lzDVf3
b2fmgYhi2AtIE2vuszq1sWGcm4kFvAjfNjRP6UeetZdhzw/3fn3um03Hf41mVRYQ
L6XwElqtsQ8=
=EQzm
-----END PGP SIGNATURE-----