I've created a sparse file with dd. How do I copy contents of another file there, leaving all the zero blocks unallocated?
The solution is apparently to use cp --sparse=always. My first attempt was with writing some Python code, but unfortunately the MD5 sums didn't match (could anyone tell me why? the code's in edit history).
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
3 years ago
2 years ago