'dd' access to a drive

Posted by John on Ask Ubuntu See other posts from Ask Ubuntu or by John
Published on 2012-03-24T23:00:57Z Indexed on 2012/03/24 23:39 UTC
Read the original article Hit count: 253

Filed under:
|
|

I've been working with making custom bootloader and kernel code (not necessarily Linux kernel). I'm putting the images on USB, and was using dd to place them on the sector they needed to be on, and I'm getting tired of burning the image to /dev/sda instead of /dev/sdb (effectively destroying my hard drive).

So I was wondering if I could somehow give user access to the 'dd' command, but only to the /dev/sdb drive, so that if I accidentally type /dev/sda it won't let me, because I wouldn't have run the command as sudo or root.

© Ask Ubuntu or respective owner

Related posts about permissions

Related posts about user