[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-thinkpad
Subject:    Re: [ltp] Copying Files
From:       Matthias Posseldt <matthi () gmx ! li>
Date:       2004-12-06 16:00:57
Message-ID: 200412061700.57905.matthi () gmx ! li
[Download RAW message or body]

On Monday 06 December 2004 15:23, SOTL wrote:
> Hi All
>
> I want to copy all files in a partition to another partition.
>
> Can I do the following?
>
> dd     if=dev/hda5/*     of=dev/hda6/*

No. That command doesn't work at all, since both "if" and "of" from dd 
require one and only one argument. Furthermore you're using relative 
paths which may be not what you intend to do.

> If not how do I need to modify this or what should I utilize?

You should use a completely different program. dd is disk dump. You can 
use tar via pipe (see http://www.tech-recipes.com/unix_tips115.html) or 
just cp with some options (recursive, keep dates, etc.).

Regards,
Matthias
-- 
There is still the danger of EU software patents!

http://swpat.ffii.org/

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic