11Jan2008 (UTC +8)

Just thought I'd share a little tech tip with you, before I go out for
my delayed dinner, as I frequently experience the boredom of scrubbing
HDDs. Here's
something that can cut down the time in half, as compared to using dcfldd or dd.

Tried it on my 128MB USB flash drive, and I haven't listed all the
disadvantages / advantages of one tool over the other yet, except that
"badblocks" command is faster, & also checks the health of the HDD for
re-use. Please feel free to contribute.


[EMAIL PROTECTED] ~]# time badblocks -c 512 -s -w -t random -v /dev/sdd
Checking for bad blocks in read-write mode
>From block 0 to 128000
Testing with random pattern: done
Reading and comparing: done
Pass completed, 0 bad blocks found.

real    0m31.177s
user    0m0.434s
sys     0m0.032s

[EMAIL PROTECTED] ~]# time dcfldd if=/dev/urandom bs=512  of=/dev/sdd
256000 blocks (125Mb) written.dcfldd:: No space left on device

real    1m7.754s
user    0m0.128s
sys     0m25.701s

[EMAIL PROTECTED] ~]# time dd if=/dev/urandom bs=512  of=/dev/sdd
dd: writing `/dev/sdd': No space left on device
256001+0 records in
256000+0 records out
131072000 bytes (131 MB) copied, 67.507 s, 1.9 MB/s

real    1m7.519s
user    0m0.131s
sys     0m25.428s



Drexx Laggui  -- CISA, CISSP, CFE Associate, CCSI, CSA
http://www.laggui.com  ( Singapore / Manila / California )
Computer forensics; Penetration testing; QMS & ISMS developers; K-Transfer
PGP fingerprint = 6E62 A089 E3EA 1B93 BFB4  8363 FFEC 3976 FF31 8A4E
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph

Reply via email to