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/usbhdd1
or/dev/usbhdd%d
... or you could use etcher – RubberStamp Dec 05 '17 at 02:49cat
will be far faster than thatdd
command. – Chris Davies Dec 05 '17 at 05:29dd
command 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. – Mark Dec 05 '17 at 09:06