I’ve got an external USB storage device (hard drive) which I’m using for backups. Unfortunately manually deleting some old backups seems to have destroyed the hard drive, and now whenever I connect the device I’m getting a kernel panic in the HFS kernel extension. I’m working on the assumption that the data on the device is lost, and now I’d just like to make the hardware usable again by formatting the drive. But for that I’ve got to connect it to my computer, which immediately causes it to crash.
I can’t use the solution from How to Disable USB Auto-mount because I cannot find out the drive’s UUID (to do so I’d need to be able to connect it). The only other computer I have access to also runs macOS (High Sierra) and has the same issue. So I’m looking for a way of disabling automounting for all devices, rather than just a specific device. Is this possible?