LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 12-14-2006, 01:53 AM   #1
fluppi
Member
 
Registered: Oct 2003
Location: Switzerland (Europe)
Distribution: OpenSuSE, RedHat, Knoppix, IRIX + MacOSX
Posts: 198

Rep: Reputation: 31
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 ?
 
Old 12-14-2006, 02:03 AM   #2
LiamFromLeeds
Member
 
Registered: Dec 2006
Distribution: Arch
Posts: 44

Rep: Reputation: 15
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
 
Old 12-14-2006, 02:35 AM   #3
fluppi
Member
 
Registered: Oct 2003
Location: Switzerland (Europe)
Distribution: OpenSuSE, RedHat, Knoppix, IRIX + MacOSX
Posts: 198

Original Poster
Rep: Reputation: 31
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.
 
Old 12-14-2006, 08:59 AM   #4
fluppi
Member
 
Registered: Oct 2003
Location: Switzerland (Europe)
Distribution: OpenSuSE, RedHat, Knoppix, IRIX + MacOSX
Posts: 198

Original Poster
Rep: Reputation: 31
That the killer-command: "dd if=/dev/urandom of=/dev/rdsk/c0t0d0s2".

Thank you anyway, LiamFromLeeds.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to delete files that won't delete? di11rod Linux - Security 7 10-19-2005 09:14 PM
2 harddisk, now what? greythorne Mandriva 4 01-10-2005 08:28 AM
Low Harddisk space. Can I just transfer the entire Linux to a bigger harddisk? davidas Linux - Newbie 12 04-13-2004 02:03 AM
Tried to delete file as root but it says I don't have permission to delete it! beejayzed Mandriva 23 03-12-2004 02:46 AM
WD-Harddisk Config Linux - Software 2 02-19-2002 07:40 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 05:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration