On Thu, 21 Jul 2011 19:47:44 +1000
yudi v <yudi....@gmail.com> wrote:

> Hi
> 
> I need to write random data to a partition before encrypting it.
> Suggested way is to use urandom:
> 
> #dd if=/dev/urandom of=/dev/sda2
> 
> What is the use of operand "bs" in the following case? I see the above
> command executed as follows sometime:
> 
> #dd if=/dev/urandom of=/dev/sda2 bs=1M
> 
> For the hard drive I got, should I use the following command:
> 
> #dd if=/dev/urandom of=/dev/sda2 bs=4096
> 
> >From what  I understand, the first command above will write data in
> >512 byte
> blocks, the second one in 1MB blocks, and the third in 4096 byte
> blocks. Right?
> I am a bit confused about the usage of this operand in this case.
> 

That is correct.  They will both do effectively the same thing,
however, the version with a larger block size will probably run faster
on a modern machine.

--
rbmj


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/20110721062827.419c9...@blairasus.mason.homeunix.org

Reply via email to