I need a script I can run from a linux livecd which will perform the following on all drives:
1st pass: dd if=/dev/urandom of=/dev/sda, sdb, sdc
2nd pass: dd if=/dev/zero of=/dev/sda, sdb, sdc
dd if=/dev/sda | hexdump -C | grep [^00] (For each drive after both passes have completed for each drive.)
I would also like to output the info to a file so that I can keep a record.
As an extra if I could output in addition....the drive info..ie serial number etc to the file would be even better!