I am going to be testing user flows that use USB mounting/unmounting and file placement on a USB on a Linux based machine. One of our use cases is to notify the user if the USB device they have plugged in is corrupt or unreadable.
Is there a way to purposefully corrupt/break a USB device via command line so that we have one to test a "corrupt device" scenario?
Ideally, if the USB device can mount, but not be readable/writable this is what I am looking for.
error
orflakey
. I haven't done it myself though.