Re: Overwriting a 4096 byte sector harddisk drive with random data

2011-07-21 Thread Patrick O'Callaghan
On Fri, 2011-07-22 at 09:35 +1000, yudi v wrote: > > > > Making the bs value an integer multiple of > > the the physical block size of the device is probably a good idea in > > most circumstances. > > > > > Going back to my original question, as the HDD I am using is a 4096 physical > and 512 logi

Re: Overwriting a 4096 byte sector harddisk drive with random data

2011-07-21 Thread yudi v
> > Making the bs value an integer multiple of > the the physical block size of the device is probably a good idea in > most circumstances. > > Going back to my original question, as the HDD I am using is a 4096 physical and 512 logical block, what would be a recommended bs value. Yudi -- users

Re: Re: Overwriting a 4096 byte sector harddisk drive with random data

2011-07-21 Thread gilboad
On Jul 21, 2011 7:20pm, Patrick O'Callaghan wrote: Neither of these points is relevant in the case posited by the OP. She's writing directly to the drive, not to some file. There is no question of random versus sequential and there's no filesystem block allocation going on. As you may have gu

Re: Overwriting a 4096 byte sector harddisk drive with random data

2011-07-21 Thread Patrick O'Callaghan
On Thu, 2011-07-21 at 15:34 +0300, Gilboa Davara wrote: > > > Sorry, could you please elaborate a bit more on how a higher size > > block results in better performance. > > > > -- > > Kind regards, > > Yudi > > > > Ouch, of the top my head, there two major reasons: > 1. (Mechanical) disk drive

Re: Overwriting a 4096 byte sector harddisk drive with random data

2011-07-21 Thread Gilboa Davara
> Sorry, could you please elaborate a bit more on how a higher size > block results in better performance. > > -- > Kind regards, > Yudi > Ouch, of the top my head, there two major reasons: 1. (Mechanical) disk drives (AKA Hard drives) dislike random read/writes as their require the drive to

Re: Overwriting a 4096 byte sector harddisk drive with random data

2011-07-21 Thread Michael D. Setzer II
On 21 Jul 2011 at 20:15, yudi v wrote: Date sent: Thu, 21 Jul 2011 20:15:39 +1000 Subject:Re: Overwriting a 4096 byte sector harddisk drive with random data From: yudi v To: Community support for Fedora users Send reply to: Community support for Fedora users

Re: Overwriting a 4096 byte sector harddisk drive with random data

2011-07-21 Thread yudi v
On Thu, Jul 21, 2011 at 8:04 PM, Gilboa Davara wrote: > On Thu, 2011-07-21 at 19:48 +1000, yudi v wrote: > > Hi > > 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? > > Yep. > The 1

Re: Overwriting a 4096 byte sector harddisk drive with random data

2011-07-21 Thread Gilboa Davara
On Thu, 2011-07-21 at 19:48 +1000, yudi v wrote: > Hi > 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? Yep. The 1M should also yield considerably better performance. (Though the random

Overwriting a 4096 byte sector harddisk drive with random data

2011-07-21 Thread yudi v
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