I have a 1TB big file (disk-image from a damaged drive) and a 1.3MB small file (beginning of a disk-file).
Using the contents of the small file, I want to overwrite portions of the big file. That is, I want to insert/overwrite the first 1.3MB of the 1TB-image using the small file.
Using small temporary files for testing I was unable to overwrite parts of the files. Rather, dd overwrote the files completely. This is not what I want.
Is dd able to do this?
seek=nn
andskip=nn
parameters to set the starting points in your files, andcount=nn
to copy less than the whole input file. – Guntram Blohm Jul 28 '14 at 09:29