Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
As i am using opensuse11.3, i have a another 160GB HDD which has to be formatted in low level.
Mainly its very important to me is when formatted my HDD, no one should be able to recover the data, I heard there are recovery softwres which can get back our data.
so using data recovery software also no one should be able to get data again. Data has to be completely deleted fro HDD.
I'd use the dd command along with /dev/random - do it several times over to ensure that the data is completely gone (it can still be retrieved after a single wipe sometimes due to resident magnetic charge left on the drive platters). There is a thread in this forum I believe regarding the dd command - an excellent resource.
I'd use the dd command along with /dev/random - do it several times over to ensure that the data is completely gone (it can still be retrieved after a single wipe sometimes due to resident magnetic charge left on the drive platters). There is a thread in this forum I believe regarding the dd command - an excellent resource.
Hi
Thankx for the reply. .
I have done format using DD command. I hope all the data has been erased.
There are multiple threads around here about this--getting a disk "empty" so no files could be recovered from it--so you might want to look them up as well. The bottom line in them is:
- "formatting" does not help, as is usually means just writing a filesystem on the disk, which does practically nothing to the actual data (so often "file recovery" means just figuring out where on the disk is what, and then creating a working file out of it to a working filesystem)
- the only surefire way is to put the disk into parts (drill, cut, melt, ...) so it's physically not possible to get it working anymore; the bigger the damage, the better the result
- the software way is to overwrite very many times the whole disk, and hope that the result makes the disk contents look random enough to make recovery process so long and difficult that it's practically useless; this is time-consuming and, given the disk prices today, in my opinion useless as well
The thing is, even if your average program can't right away get any data out of your shredded-three-times-over disk, physically there may still be (faint) patterns which can be used to get some of the data back, or make guesses about what there may have been. I think some standards require 10-30 overwrite rounds, but I think it's still only very probable that the contents are "fully erased", not a fact. If you're paranoid, a couple dozen dollars/euros, or even a hundred-something, is a small price to pay for getting a factory-clean disk and trashing the old one to oblivion. Especially after you've tried overwriting a 1TB disk 30 times on a typical home computer configuration
There is a command to do what you need, it is called shred. Do a man shred to learn more.
shred maybe a good idea, but it handles files, but not partitions or the whole disk. So you don't have any access to files which are already deleted with rm.
As I've understood the OP he wants to get rid of any data which ever have been stored on the disk. This is (referring to the manpage) not possible.
A simple dd with /dev/zero would suffice, unless your enemy works at the NSA and in this case we probably shouldn't be helping you at all.
It's true that, if you know the current status of a bit, it's relatively easy to know the previous one (provided the current you use to change it is a constant). That's maths. But in a disk there are maybe billions of bits (thousands of millions of bytes), and the fact that a bit changed doesn't mean the next one has also changed, in other words: you can't be sure what bit pattern to choose, you can only look at a single bit each time and then try to make out of it something that makes any sense, which is complicated because to start with you don't even know if you are inside the position of a meaningful file of any kind or in the middle of an "empty" area of the disk surrounded by random crap. This is a work that takes not only specialized hardware (that alone would sort out the average joe from spying you) but also a lot of manual work, time, money, and a huge exercise in logic.
When all the paranoid crew in the net talks about this they usually forget that they are talking about what's physically possible in theory, over the papers. But that's one thing, and the real world and the limited lifetime of a human being makes it practically impossible; unless you have all the technology and money it takes at your hands, and you are seeking truly worthwhile information.
That probably means that you are as safe rewriting with /dev/zero as you would be if you disintegrated your HD with a LASER beam.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.