Changes for page Commands
Last modified by Julien Fleury on 2021/02/02 19:05
edited by Julien Fleury
on 2021/01/06 15:43
on 2021/01/06 15:43
edited by Julien Fleury
on 2021/02/02 19:05
on 2021/02/02 19:05
Change comment:
There is no comment for this version
Summary
-
Page properties (3 modified, 0 added, 0 removed)
Details
- Page properties
-
- Title
-
... ... @@ -1,1 +1,1 @@ 1 - Linux General Documentation1 +Commands - Parent
-
... ... @@ -1,1 +1,1 @@ 1 - iXPathDocumentation.WebHome1 +Documentation.Miscellaneous.Linux.WebHome - Content
-
... ... @@ -17,4 +17,28 @@ 17 17 down 18 18 {{/code}} 19 19 20 - 20 +== Test disk speed == 21 + 22 +dd command allows to copy all or parts of a disk by bytes block without impact from content structure of the disk. 23 + 24 +(% class="box warningmessage" %) 25 +((( 26 +Use dd command with caution as it can cause severe dammage to the system 27 +Do not use dd to duplicate a disk. Prefer ddrescue command 28 +))) 29 + 30 +Command structure 31 + 32 +(% class="box" %) 33 +((( 34 +dd if=<source> of=<target> bs=<block size> count=<number of blocks> oflag=<flag> 35 +))) 36 + 37 +oflag: 'dsync' to use synchronized I/O for data 38 + 39 +{{code language="shell"}} 40 +dd if=/dev/zero of=/tmp/test2.img bs=512 count=1000 oflag=dsync 41 +1000+0 records in 42 +1000+0 records out 43 +512000 bytes (512 kB, 500 KiB) copied, 1.22846 s, 417 kB/s 44 +{{/code}}