LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   How to delete a harddisk with dd ? (https://www.linuxquestions.org/questions/solaris-opensolaris-20/how-to-delete-a-harddisk-with-dd-510291/)

fluppi 12-14-2006 01:53 AM

How to delete a harddisk with dd ?
 
On a running system I tried
"dd if=/dev/urandom of=/dev/rdsk/c0t0d0 ; dd if=/dev/zero of=/dev/rdsk/c0t0"
it took a while but nothing happens, the data is still there !

On Linux I used "dd if=/dev/urandom of=/dev/sda", but how it works on Solaris ?

LiamFromLeeds 12-14-2006 02:03 AM

For wiping disks on Solaris I use the format utility.

*WARNING* This wipes your disk
From the format menu I think its

analyze -> verify
quit

Then go back into format and do

backup
quit

The verify command writes to the disk (and takes a long time). The backup command rewrites the disk label.

For more info see -> http://www.sun.com/blueprints/0600/scrub.pdf

fluppi 12-14-2006 02:35 AM

Oh no: "Cannot do analysis on a mounted partition."

I just want do destroy all data, but without to boot from CD or attach a terminal, keyboard or anything.
(It's inaccessible on top of a rack)

It should be the last command befor the final shutdown, later it will be scraped.

fluppi 12-14-2006 08:59 AM

That the killer-command: "dd if=/dev/urandom of=/dev/rdsk/c0t0d0s2".

Thank you anyway, LiamFromLeeds.


All times are GMT -5. The time now is 01:51 AM.