Page 1 of 1
software disk wiper ? with advanced options ?
Posted: June 7th, 2013, 9:27
by raven4d
hello , i know this might sound strange , but i need a software that can wipe some sectors every "some sectors"
so if a drive have 1000000000 LBAs
i want to wipe 2 sectors every 10 sectors and so on ...
thank you for your help
Re: software disk wiper ? with advanced options ?
Posted: June 7th, 2013, 12:21
by lcoughey
Write a shell script using dd?
Re: software disk wiper ? with advanced options ?
Posted: June 7th, 2013, 12:28
by Vulcan
Agreed - appropriate use of the dd "seek" parameter would seem to fit the OP's stated requirement.
Re: software disk wiper ? with advanced options ?
Posted: June 7th, 2013, 16:15
by raven4d
aha , never thought of this ..
i would appreciate if you can provide me with the script to use
dd if=/dev/zero of=/dev/sda bs=1024
the upper command should wipe 2 sectors of the selected devise , but how to make it jump over 10 LBAs and write two zero sectors again ? adding seek=5120 ?!?!
never thought of using the dd for such a task
what r the flags that should be added ?
thank you very much
Re: software disk wiper ? with advanced options ?
Posted: June 8th, 2013, 4:48
by raven4d
#bin/sh
for ((i=0 ; i<1000000000 ; i=i+10)); do dd if=/dev/zero of=/dev/sda seek=$i bs=512 count=2 ;
done ;