Writing data to a raw disk using dd
Hi,
I have formatted my pen drive as a raw disk for testing purpose. How can I write data into that using dd ? Regards, |
Have you tried searching the forum?
Or google? http://www.linuxquestions.org/linux/...ything_With_DD http://www.linuxquestions.org/questions/tags/dd/ |
Actually, I was trying to send few bytes of data directly, but seems dd takes either from file or direct h/w interface.
dd if=/dev/sdc of=new bs=11 count=1 where if=i/p interface, file to be read of=o/p interface or file to be written bs= block size in bytes count = no of blocks With Thanks, Barun |
If you don't specify an input interface, dd reads from stdin. The data does, after all, have to come from someplace. If you just want to write zeros, or perhaps something random, specify "if=/dev/zero" or "if=/dev/urandom", respectively.
|
All times are GMT -5. The time now is 02:10 PM. |