I routinely copy disk images to SD cards for use on a Raspberry Pi. The usual way I do this is by dd if=/tmp/filesystem.img of=/dev/sdb, which is only a minor typo away from over-writing my computer's boot drive on /dev/sda.
Is there a safer way to do this, eg. by removing permission to do raw writes to the boot drive?
/dev/usbhdd1or/dev/usbhdd%d... or you could use etchercatwill be far faster than thatddcommand.ddcommand I use has a blocksize of 4M, which goes about as fast as the card can handle. I simplified things for the purpose of asking this question.