Get the answers to your technical questions.
0 votes
in Operating System/OS by (2.5k points)

1 Answer

0 votes
  • Run lsblk to get the file paths of your devices
  • Use dd if='/dev/[source file/device path]' of='/dev/[destination file/device path] bs=4m
  • Change the bs=4m to suit your needs if you're copying a huge file.
  • Complete command:   sudo dd if=/dev/sdc of=/dev/sdd bs=64M && sync
  • which datadumps from input file (if=) device sdc to output file (of=) device sdd, bs= is the number of bytes copied at a time.

    After it completes it syncs (forces write out of any unwritten buffers [still in memory]) to allow removal.

    Of course change sdc & sdd to be what is appropriate

by (2.5k points)
41 questions
40 answers
0 comments
692 users