Clear disk on Itanium

 
SOLVED
Go to solution
Fernando Boza
Regular Advisor

Clear disk on Itanium

How clear disk with partitions on HP-UX v2?
8 REPLIES 8
Tim Nelson
Honored Contributor

Re: Clear disk on Itanium

When you say "clear" I am assuming you wish to erase all forms of data on these disks ?

If so:
-bulk eraser
-mediainit ( takes forever )
-dd a pile of jibberish onto the disk (also takes forever but not quite )
-some commercial shredder software

Fernando Boza
Regular Advisor

Re: Clear disk on Itanium

yes
I want to remove (delete) partitions:
/dev/dsk/c3t12d0s1
/dev/dsk/c3t12d0s2
/dev/dsk/c3t12d0s3
Tim Nelson
Honored Contributor
Solution

Re: Clear disk on Itanium

In that case. How about the same utility that was used to create it.

man idisk

idisk -R is probably the option you want.

Ivan Krastev
Honored Contributor

Re: Clear disk on Itanium

You can use idisk with -R option as well - http://docs.hp.com/en/B3921-90010/idisk.1M.html

regards,
ivan
Fernando Boza
Regular Advisor

Re: Clear disk on Itanium

dont work
James R. Ferguson
Acclaimed Contributor

Re: Clear disk on Itanium

Hi:

Your response was "dont work". Did you enable the write-back? viz.

# idisk -Rw /dev/rdsk/cXtYdz

Regards!

...JRF...
Fernando Boza
Regular Advisor

Re: Clear disk on Itanium

nothing

# ioscan -funH 0/1/1/1.12.0
Class I H/W Path Driver S/W State H/W Type Description
======================================================================
disk 7 0/1/1/1.12.0 sdisk CLAIMED DEVICE HP 73.4GST373307LC
/dev/dsk/c3t12d0 /dev/rdsk/c3t12d0
/dev/dsk/c3t12d0s1 /dev/rdsk/c3t12d0s1
/dev/dsk/c3t12d0s2 /dev/rdsk/c3t12d0s2
# idisk -Rw /dev/rdsk/c3t12d0
idisk: Write mode requires description file
idisk version: 1.32
********************** WARNING ***********************
If you continue you will destroy all partition data on this disk.
Do you wish to continue(yes/no)? yes
# ioscan -funH 0/1/1/1.12.0
Class I H/W Path Driver S/W State H/W Type Description
======================================================================
disk 7 0/1/1/1.12.0 sdisk CLAIMED DEVICE HP 73.4GST373307LC
/dev/dsk/c3t12d0 /dev/rdsk/c3t12d0
/dev/dsk/c3t12d0s1 /dev/rdsk/c3t12d0s1
/dev/dsk/c3t12d0s2 /dev/rdsk/c3t12d0s2
ManojK_1
Valued Contributor

Re: Clear disk on Itanium

Use rmsf command

for eg:-

rmsf /dev/dsk/c3t12d0s1
rmsf /dev/dsk/c3t12d0s2
rmsf /dev/dsk/c3t12d0s3

Thanks and Regards,
Manoj K