Tag Info

New answers tagged

7

On the face of it, it's a simple dd: dd if=sparsefile of=sparsefile conv=notrunc bs=1M That reads the entire file, and writes the entire contents back to it. In order to only write the hole itself, you first have to determine where those holes are. You can do that using either filefrag or hdparm: filefrag: # filefrag -e sparsefile Filesystem type is: ...



Top 50 recent answers are included