dd on Linux to extract data from a tape (yeah it's really oldschool!) and I had a problem. Sometimes, when I extract a file (from different files on one tape), after a really long time and a really big size of the file extract, the extraction is still not finished.
So it's a problem because I know that the size of the file is about 10MB and not 1GB or more.
I know the number of blocks in the file (4092 for example) so I would like to stop the extraction at this number of blocks.
Do you know if it's possible to stop the extraction at 4092 blocks for example?
I have searched for a long time on the Internet and I haven't found a command about this.
I use this command to extract files from a tape:
sudo mt -f /dev/nst0 of=file.out bs=512 conv=noerror,sync