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

Re: Copying partitions on same disk



On Fri, 17 Sep 2004 00:15:28 -0400 (EDT), Prashant Kumar
<prashkr@cse.iitk.ac.in> wrote:
> How do  copy my / containing directory root boot tmp bin
> proc etc to a different partition of same disk.
> 
> I used dd if=/dev/sda1 of=/dev/sda4 but it seems to "hang".
> 
> cp -up could not handle /tmp correctly
> 
> Thank in advance for your reply.
> 

You can use cpio or afio. I prefer afio, you can do something like this:

find source_path -depth -print0 | afio -p -xv -0a destination_path


P.S. probably you don't need to copy the /temp dir, anyway...

-- 
Andrea



Reply to: