At least now I know it takes about 8 hours to copy 1TB of information at about 40MB/s. Take note of that number and then type in another terminal window kill -USR1 4112 sleep 1 This will give me the time, seconds elapsed since it began and how much is has copied. You can see the process ID by typing ps -e and looking for dd or just ps -e|grep dd and looking at the number in the front. For example in my case is Process Id 4112. Take note of that number and then type in another terminal window kill -USR1 4112 sleep 1 This will give me the time, seconds elapsed since it began and how much is has copied. In the venerable Unix command dd, the disk/data duplicator (or, sometimes, disk destroyer) allows us to copy raw data from one source to another. For now, I've reluctantly opted for dd as it seems the best command-line option out there for both uses. What this means is that in another terminal you would run the following line using the Process ID of the DD you want to check. You can see the process ID by typing ps -e and looking for dd or just ps -egrep dd and looking at the number in the front. I'm learning bash, and what with all the confusion around the many, many different ways there are to zero-write a drive or transfer data from/to one (shred vs dd vs pv vs cat vs tee and so on), I'm already overwhelmed. Print I/O statistics to standard error and then resume copying.ĩ387674624 bytes (9.4 GB) copied, 34.6279 seconds, 271 MB/s Either version can create a bootable pendrive or DVD, as well as copying disks. Note that the trailing slash on /src/ is important. At any rate, after the initial copy, I do an rsync step to sync it all up: cd /dst rsync -avPHSx -delete /src/. For more information, see dd (1) or the full documentation. Similarly to cp, by default dd makes a bit-to-bit copy of the file, but with lower-level I/O flow control features. dd will happily copy using the BS of whatever you want, and will copy a partial block (at the end). convnoerror tells dd to continue despite any errors that occur. Or maybe the process will get interrupted, or if it is a filesystem migration, the you might want to do the initial copy before the actual migration step. dd is a core utility whose primary purpose is to copy a file and optionally convert it during the copy process. dd if /dev/ sdX of /dev/ sdY bs 64 This example increases the default block size from 512 bytes to 64 kilobytes. You can speed up the process by increasing the block size. Anyway for what I checked with dd -help which mentions at the end of the help (I can't really believe I did not see THAT) the following: Sending a USR1 signal to a running `dd' process makes it It is licensed as both freeware and commercial. By default, dd can take a while to transfer data. but magically I find it AFTER creating the question -.- ). When I ask something I then find the answer somehow (even if I looked for hours.
0 Comments
Leave a Reply. |