On 2013-05-01 04:06, amarildojr wrote:
>
> robin_listas;2551285 Wrote:
>> The new disk, eh?
> Yes
>
> robin_listas;2551285 Wrote:
>>> * Erase the partition table with $sudo dd if=/dev/urandom of=/dev/sda
>>> count=1
>>
>> Why urandom?
> It works as well as zero. I like changes sometimes =)
Nope, it doesn’t. You risk that the partitioner you run later thinks
that there is a partition table and tries to do things on it guessing it
wrong.
Please, just zero the partition table 
If you want to, say, give the disk for recycling, you might want to
randomize it first, then zero it on a second step.
>
> robin_listas;2551285 Wrote:
>>> * Create random size partitions with random file systems
>>
>> Why? Once I messed up an Ubuntu install, and even after zeroing the
> partition table the same archives were there, the same bugs were found.
> So just deleting the PT didn’t work when I did it, so I create random
> partition sizes to make sure that won’t happen again.
Well, zeroing the partition table does not erase any files. If you
create the same partition on top, then the filesystems and files are
intact and accessible.
You forgot to reformat that one time ago.
You simply need to zero the partition table, create a new partition
table, then “format”, ie create the target filesystems you want. YaST
does this just fine, has a fine tool for doing it.
>
> Windows updates failed making my system to crash every boot, I tried
> System Recovery but it didn’t work. I then formatted and again the
> system crashed after a specific update. Zeroing the drive would ensure
> that no leftovers would again be read by the system somehow.
There are no “somehows” in computers. These are logical machines with
defined behaviours, not magical things >:-)
If a system crashes on two repeated installs when applying an specific
update, well, chances are that the update is incompatible with your system.
Another possibility is that your disk has errors. Writing to a bad
sector triggers a remapping of that sector. Installing twice would
probably write updates to the same disk region.
> On my old (and failed) 320GB drive, zeroing it took 1 hour. The math
> would be OK, but it took 6 hours with dban (1 pass with zeros). I plan
> to do dd again in the future and watch it’s progress, but I’m comfident
> it took about the amount of time you said.
It is just a question of knowing how many bytes per second your hardware
can manage 
–
Cheers / Saludos,
Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)