Destructive Windows Script

Mike Meyer mwm at mired.org
Mon Jun 6 16:50:38 EDT 2005


"Terry Reedy" <tjreedy at udel.edu> writes:
> On *nix, one could open '/dev/rawdisk' (actual name depends on the *nix 
> build) and write a tracks worth of garbage for as many tracks as there are. 
> I don't how to programmaticly get the track size and number (if there is a 
> standard way at all).

Modern Unix systems assume drives don't care much about geometry, what
with sector forwarding and variable track lengths and the like.

Just open the raw disk device (assuming your Unix has such), and start
writing data to it. Keep going until the write fails at the end of the
media.

        <mike
-- 
Mike Meyer <mwm at mired.org>			http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.



More information about the Python-list mailing list