[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Repair partition after dd



On Tue 13 Jul 2021 at 22:12:28 +0000, Andrea Neroni wrote:

> While preparing a bootable USB a wild dd command was executed on the
> wrong partition, namely on /dev/sda5 instead of the intended /dev/sdb.
> The consequences are easy to imagine.

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"

OTOH, perhaps it would be wise to read

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=788662
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=751892

-- 
Brian.


Reply to: