Solaris / OpenSolarisThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
we are taking six server in rental (ultra,e250,etc).now return the all server.But important data stored in the HDD.we delete the all data. How to delete the data or how to delete the HDD label.
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
Quote:
Originally Posted by vermaden
Code:
# while true; do dd < /dev/random > /dev/dsk/c0d0p0; done
1: This won't work on SPARC H/W, that should be c0d0t0s2 there.
2: This will crash the system before all the disk has been overwritten, which may be sufficient or not, as the question is self-contradictory (we delete all the data. How to delete the data ?).
1: This won't work on SPARC H/W, that should be c0d0t0s2 there.
2: This will crash the system before all the disk has been overwritten, which may be sufficient or not, as the question is self-contradictory (we delete all the data. How to delete the data ?).
I generally do not use Solaris too much, so I will propably mess strict Solaris things like devices, I just wanted to show idea of how to do that.
Of course from some LiveCD, or by ataching the drive to other box ane wipe it there.
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
No problem, Solaris (SVR4 actually) device naming scheme is often tricky to understand for Linux admins.
Beware that when used from a live distro, your command will not only wipe the disk but may eventually destroy it after a (long) while, as it never ends.
Also, to have a better performance with this kind of commands better to use:
- the faster and less resource consuming /dev/urandom instead of /dev/random
- dd blocking factor to improve writing throughput
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,197
Rep:
It's actually possible (but difficult) to recover data from files that have only been overwritten once. There are DOD standards for data obliteration and typically the data should be overwritten 7 times, with all 0's, with all 1's, with a pattern of 0101010, etc.
I observed once a situation where a couple of aspiring programmers were demonstrating their software for a software company. They were convinced to demo it on one of the companies computers. When done, they deleted and overwrote their stuff. After they left, the companies developers descended on the computer and successfully recovered the code. The aspiring programmers never got a call back to buy their work.
Lots of people actually destroy or seriously degauss drives before disposing of computers. Obviously, you can't do that, because you are dealing with rental machines that you are returning.
There was a lengthy discussion on the Sunmanagers list not too long ago that is summarized here:
There was a more recent discussion of the same topic, but I was having trouble finding it just now. Anyway, there is also now a sourceforge project for doing this:
It's actually possible (but difficult) to recover data from files that have only been overwritten once. There are DOD standards for data obliteration and typically the data should be overwritten 7 times, with all 0's, with all 1's, with a pattern of 0101010, etc.
Thaat is why I added infinite loop for that, while true ...
Code:
# while true; do dd < /dev/random > /dev/dsk/c0d0p0 bs=8m; done
25 times should be ok imho.
There is also Linux utility shred (gshred on FreeBSD) which does that, shreds all data from disk by /dev/zero or /dev/random, example:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.