1833062 Members
3093 Online
110049 Solutions
New Discussion

Clear data off disks

 
SOLVED
Go to solution
David Pscheid
Occasional Contributor

Clear data off disks

We have an old K200 system running HPUX 10.20 and I have been instructed to delete all data on all of the disks. I looked for a format command to just overlay everything but couldn't find anything. What's my easiest way to clear the disk so we can scrap the system.

Thanks
4 REPLIES 4
Vincent Fleming
Honored Contributor
Solution

Re: Clear data off disks

for i in /dev/rdsk/*
do
dd if=/dev/null of=$i bs=64k
done

should do the trick... You probably want to exclude the root drive, and save that for last.
No matter where you go, there you are.
Sanjay_6
Honored Contributor

Re: Clear data off disks

Hi David,

Do a vgremove for all the VG's you have on the system. once done do a pvcreate on all the disks using "pvcreate -f /dev/rdsk/c?t?d?".

That should do the trick.

Hope this helps.

thanks

P.S. : Vincent if use the script as mentioned by you it will take into account the root disk also.
David Pscheid
Occasional Contributor

Re: Clear data off disks

Thanks for your help.
Ian Dennison_1
Honored Contributor

Re: Clear data off disks

http://www.protocol-analyzers.com/scsidatascrubber/scsidatascrubber.htm

Just found this link, so thought I would put it in the forums for people to find as an alternative solution.

Null points please. Ian
Building a dumber user