Hello!

On Thu, Jun 16, 2005 at 05:26:56PM +0300, Mihai IACOB wrote:
>Tony Lambiris wrote:

>> its quite simple... boot into single user mode, foreach partition you have, 
>> mount the src under /src/X and /dst/X (where src is the old disk and dst is 
>> the new disk) and do a:
>> cd /src/X; tar cf -  . | (cd /dst/X; tar xpf - )

I also like:

cd /dst/mountpoint
dump -0 -f - /src/mountpoint | restore -r -f -

mount the destination async (or softdep) for better speed.
If you use tar, mount the source noatime for better speed.

>> ive used this before, works great.
>> after that just make sure you install your boot blocks. 

>I performed the steps Tony told me and it worked just fine, but... one
>thing is the / partition had to be mounted read-write (tar complained
>about not being able to write to /tmp); the other is my new / has
>double the size of the original / after copying it. I ran the same
>command line for all my partitions, but / was the only one to grow.
>Why is that?

Do you have different block sizes on the old vs. new filesystem? Or
sparse files on the source?

Btw, you don't need to mount the source rw, you can just mount a big
enough mfs on top of /tmp or set TMPDIR to some temporary directory
which is writable (I think it may also be on the destination at least if
you use tar).

And there's also pax -rw -pe ... as another alternative.

>Thanks

Kind regards,

Hannah.

Reply via email to