[SOLVED] Will the following dd command completely erase my hdd?
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.
Thanks. I know to delete everything including every piece of malware on a hdd, there is software made by the company Blancco which works 100%; don't believe there is anything out there that can compete with it, including dban. It is able to open locked areas, etc.; I don't remember all the details.
How would you compare this dd command to blancco, if you had to guess?
I see mention of malware ( I didn't see that post before I made mine )
if you wanted to get rid of that,, it would depend on the malware and how sophisticated it is.
you could completely fill the drive with random, then repeat a few times.
I don't know blancco , it is probably doing something similar to that.
does it take a while?
So, as mentioned; it depends on what you want.
If you want to write zeros' to the whole drive, then just use dd command without count.
When it reaches the end, you will see message similar to "no space left on device".
I see mention of malware ( I didn't see that post before I made mine )
if you wanted to get rid of that,, it would depend on the malware and how sophisticated it is.
you could completely fill the drive with random, then repeat a few times.
I don't know blancco , it is probably doing something similar to that.
does it take a while?
Yes, blancco takes about 8-12 hours for a 1TB hdd. It is used around the world to clean hospital drives, financial places, etc.
So, as mentioned; it depends on what you want.
If you want to write zeros' to the whole drive, then just use dd command without count.
When it reaches the end, you will see message similar to "no space left on device".
In this case, it doesn't matter if it can be gotten to later since there will be a lot of duplicate data anyway. For one drive I just need to get rid of it so I can encrpypt the partition and then add data. So the faster the better, in this case. Thanks.
In this case, it doesn't matter if it can be gotten to later since there will be a lot of duplicate data anyway. For one drive I just need to get rid of it so I can encrpypt the partition and then add data. So the faster the better, in this case. Thanks.
in that case
the dd in the OP will be fine
/!\ do make sure you are writing to the correct drive /!\
Personally I would just delete the existing partitions with the partition manager I would be using to create the partitions for the encrypted drive.
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
Rep:
Sorry hddfsck, I should have been more clear than what I was. The command in your OP would zero out the MBR partition table, or in the case of GPT partitioning, the header that points to where it is (from my understanding of GPT partitioning). Therefore that would effectively "erase" the drive as far as the system's concerned as said above - that's what I should have said.
In any case, why not just format whatever partitions you have on the drive if you don't care about the data on it?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.