#the partitions are still there!
This part, at least, is still normal. You have to re-read partition table to update the partition information. You can trigger a re-read with
blockdev --rereadpt /dev/sdx
(alternatively sfdisk --re-read but that option has been removed from recent versions of sfdisk).
For everything else, yes it's possible for flash based ...
I've got bunch of corrupted .gz files with text files inside, tried to use unzip -FF with no success. Surprisingly 7z managed to extract with no problem, gave me ERROR: Unexpected end of data but extracted:
sudo apt-get install p7zip-full
7z x text.log.gz
You can do it pretty efficiently in Bash without external files, except the device to write to, or external commands, except dd.
Use printf to generate a byte with all one bits, and put it in a Bash variable.
Concatenate the Bash variable to itself multiple times.
Use Bash process substitution to fake an infinitely long input file that repeatedly echoes the ...
I use mt all the time for operations relating to tape. Things like moving forward, backward, ejecting, etc. But I don't think it reports record sizes (I'll have to double check this). I'm really after something showing record size as this will be a valuable QC tool when reading data from tape. A bonus would doing this during the read so as not to have to ...