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?