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???)


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???)