Article 5B14W How can I dd copy all files from 1 hdd to another but without the target being in an image file?

How can I dd copy all files from 1 hdd to another but without the target being in an image file?

by
blooperx3
from LinuxQuestions.org on (#5B14W)
Basically, i want to copy all files from one hdd to another and have the 2 hdd's exactly the same. But on the target hdd, i do NOT want an image file.

Reason for this: when using "cp" not all of my files transfer over because of long names, etc. So it is much faster to just dd them over because all of them do transfer over with dd.

Here is a list of known dd commands, though i am not necessarily sure which situation goes with which command:

Code:1- sudo dd if=/dev/sdx bs=8M of=/filepath/directory.name"

2- sudo dd if=/dev/sde bs=8M of=/directory.name.external.media.mounted.to/directory.name.new.files.go.here"

3- sudo dd if=/directory/filename bs=8M of=/filepath/new.file.name" ((this seems to be for a single file only))

4- sudo dd if=/dev/sdx bs=4M of=/path.to.backup.img"

5- sudo dd if=/dev/sdx bs=4M of=/dev/sdy"

6- sudo dd if=/filepath/filename bs=8M of=/filepath/new.file.name"

7- sudo dd if=/filepath/filename bs=8M of=/dev/sdx" (converting an image to an OS???)latest?d=yIl2AUoC8zA latest?i=ImZf0vureO4:ce6FvjT3YEs:F7zBnMy latest?i=ImZf0vureO4:ce6FvjT3YEs:V_sGLiP latest?d=qj6IDK7rITs latest?i=ImZf0vureO4:ce6FvjT3YEs:gIN9vFwImZf0vureO4
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments