Operating System - HP-UX
1833811 Members
3687 Online
110063 Solutions
New Discussion

erase data from root disk

 
SOLVED
Go to solution
santosh jha
Frequent Advisor

erase data from root disk

Hey ,

Please give me some script to erase data from root disk.
I want to clear the system is going to be traded.

Regards
Santosh Jha
5 REPLIES 5
Arunvijai_4
Honored Contributor
Solution

Re: erase data from root disk

Hi Santhosh,

Check this thread and read A.Clay's solution for removing data,

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=860835

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Pete Randall
Outstanding Contributor

Re: erase data from root disk

Firstly, if your system is properly configured, there shouldn't be any data other than the Operating System itself on your root disk. You can simply remove your site specific configuration files and ship it off.

If you wish to be more thorough than that, you can either use dd (dd if=/dev/zero of=/dev/rdsk/c0t0d0 bs=1024k, for example) or run mediainit.


Pete

Pete
Geoff Wild
Honored Contributor

Re: erase data from root disk

One of the easiest ways - just re-install the OS...

For the most part, a simple rm -rf / does a pretty good job.

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.
santosh jha
Frequent Advisor

Re: erase data from root disk

The following command failed

"bash-2.01$ sudo dd if=/dev/zero bs=256k of=/dev/rdsk/c2t0d0

Password:

I/O error
138932+0 records in
138931+1 records out
bash-2.01$
"

Please help

Regards
James R. Ferguson
Acclaimed Contributor

Re: erase data from root disk

Hi Santosh:

The command didn't fail. You wrote 138,932 records until the disk's end.

Regards!

...JRF...