Even hard disks are not affected by external magnetic field in the way most people expect. Strong magnetic fields interfere with the operation of drive (seeking voice coil) but accidental erasure of data on platters by external magnetic field is relatively improbable.
Generally most of the damage caused by strong external magnetic fields to any electronics are caused by second order effects, i.e. something gets confused and causes data-destroying failure.