1753637 Members
5768 Online
108798 Solutions
New Discussion юеВ

Root disk delete?

 
SOLVED
Go to solution
James M. Dunn
Frequent Advisor

Root disk delete?

What is the best way to erase a root disk so it cant be used anymore?

Thanks

J
9 REPLIES 9
Deoncia Grayson_1
Honored Contributor
Solution

Re: Root disk delete?

Some prefer doing a dd to the disk because a mediainit takes to long but they both will erase your root disk:

Discussion of interest:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=985801

If no one ever took risks, Michelangelo would have painted the Sistine floor. -Neil Simon
Chan 007
Honored Contributor

Re: Root disk delete?

James,

use any of the following
1. pvcreate -f
2. dd if=/dev/zero of=/dev/rdsk/ bs=1024k
3. rm -rf /etc, /stand, /usr

Enjoy..!!!

Chan
Geoff Wild
Honored Contributor

Re: Root disk delete?

Re-install the OS.

After that, just do a rm -rf /

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
MarkSyder
Honored Contributor

Re: Root disk delete?

When you say "so it can't be used any more" do you mean that literally? If so, you could do what we do: take it out of the server/workstation and bang it on the corner of an overhead cabinet. It definitely can't be used any more then!

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
Mark Nieuwboer
Esteemed Contributor

Re: Root disk delete?

Hi James,

If you want the data can't be read by any program. Then you need to write the disk 3 times completly.
If you just want to destroy the disk. Get it trhough a shredder.

grtz. Mark
Doug Burton
Respected Contributor

Re: Root disk delete?

I've used mediainit without any problems but some folks say it can cause problems.

mediainit -v /dev/rdsk/c?t?d?

However, this is what I do:

rm -rf /stand/* /etc/*
then I do....
for x in `ls /dev/rdsk`
do
dd if=/dev/zero of=/dev/rdsk/${x} bs=1024k &
done

Run this to watch the fun...

while true
do
date ; ps -ef | grep zero | grep -v grep | awk '{print $10}' | sort ; echo "\n\n" ; sleep 30
done

The reboot and shutdown commands are now gone so you'll need to get on the GSP or physically get to the server to down it the rest of the way.
James M. Dunn
Frequent Advisor

Re: Root disk delete?

Mark & Mark,

Funny :)

All good answers. I will be trading the servers in and dont want to destroy the hardware just the data.

Thanks!

J
MarkSyder
Honored Contributor

Re: Root disk delete?

Strangely enough, it wasn't a joke - that's really what we do if we don't want a disc to be used again.

Mark
The triumph of evil requires only that good men do nothing
James M. Dunn
Frequent Advisor

Re: Root disk delete?

k