simon / dd

Last active 1 month ago

simon revised this gist 1 month ago · 6974269

1 file changed, 13 insertions

dd.md (file created)
@@ -0,0 +1,13 @@
1 + # dd
2 +
3 + * ensure writes aren't cached:
4 +
5 + `dd if=inputfile of=outputfile bs=10M count=10 conv=fdatasync`
6 +
7 + * write the first and last blocks (saves time):
8 +
9 + ```
10 + dd if=/dev/zero of=FileFabric-1808-single-working-10G.raw bs=1MB count=0 seek=10240
11 +
12 + dd if=/dev/zero of=FileFabric-1808-single-working-10G.raw bs=1024 count=0 seek=$[1024*1024*10]
13 + ```