Hi, Brian wrote: > It would be nice to avoid having to have root privileges in order > to do 'cp <ISO> /dev/sdX' with a USB stick. A udev rule under > /etc/udev/rules.d/ could be a solution: > > SUBSYSTEM=="block", ATTRS{removable}=="1", GROUP="floppy"
This could have prevented the mishap, indeed, provided that /dev/sda is an internal SATA disk. But i think that the criterion of being "removable" does not sufficiently characterize a valid target for dd-ing an installation ISO, although being an internal disk is a strong indication for being not the right one. It is rather about the current content of the USB stick or memory card which should be considered. Best is to make an unambiguous relation between the physical stick in the user's hand and the target device file. My proposal for a mitigation of the currently dangerous situation is to see on https://wiki.debian.org/XorrisoDdTarget Have a nice day :) Thomas