USB flash data rot

I have an old bootable stick.
After 8 years data has changed slightly, enough to panic at every boot (privileged instruction fault in kernel mode).
Changed mobo/memory/cpu and whatnot until i figured it out.
no fsck errors, no surface scan errors
the stick is only used for booting, no write/no flash wearing, so it just lost charge
i knew it could happen but never expected it :)
less than 0.1% of the data has changed
 
less than 0.1% of the data has changed
It only has to have a couple of bits flipped in the "right" place to corrupt a file. With some files that's not so dramatic (a couple of wrong characters in a text file for example) but a few flipped bits in a binary executable or a kernel is a whole different ballgame.
 
well, the stick is still good, it probably has under 2G of data written to it in its lifetime
it just lost charge and data got corrupted
 
just read/scan
dd if=/dev/da0 of=/dev/null bs=64k
also fsck could not find any problem
the device is used just several times a year when the server boots
 
… fsck could not find any problem …

fsck_ffs(8) is unlikely to detect rotten data.

From the UFS chapter of a 2006 book on Solaris internals (I can't find anything similar and more recent for UFS in FreeBSD):

1637730299518.png

– not entirely without checksumming, but this is for a log. Not for data.
 
PS, with zfs you can do an n-way mirror on one physical device with n partitions ...
That remains only the gptzfsboot vulnerable ?
 
Back
Top