Operating System - HP-UX
1752812 Members
5879 Online
108789 Solutions
New Discussion

How do I erase a K class disk (a3353a)

 
Eric Firkey
Regular Advisor

How do I erase a K class disk (a3353a)

 
1 REPLY 1
Stan Sieler
Respected Contributor

Re: How do I erase a K class disk (a3353a)

It depends upon how
thoroughly you want to erase it.

If you just want to overlay the data with something else,
you could copy multiple copies
of, say, /stand/vmunix to it.

Of course, the ease/difficulty of erasing it
may depend upon whether or
not it's part of 1 or more
logical volumes.

It's fairly simple to write
a trivial program that does:

open /dev/rdsk/

and then loops, writing
a zeroed-out buffer to
it over and over until
write() returns an error.
(Run as root, of course)

Our company happens to have
an "erase disk" product,
but I don't know the etiquette
of posting info like that here. (At least I discussed
two free ways of doing it :)

sieler@allegro.com