I used the "shred" command on Linux to wipe a specific partition on my HDD (just a once-over with zeroes; no extra passes of random data).
The command I used:
shred -uvz -n 0 /dev/sda
But once it completed the shredding, the disk appeared to have transformed into one homogeneous raw partition that can't be mounted. The Ubuntu disk utility reads "Contents Unknown" when the device is selected.
I also gave the HDD a look using dskmgmt
on Windows to get some additional perspective. It gives the following message:
"You must initialize a disk before Logical Disk Manager can access it."
Any idea about what happened?
This was a big shred, by the way. I shredded 2.6 TB of a 3.6 TB HDD.
Is my HDD toast, or the data on my HDD toast?
I do have a backup of just about everything on the HDD on a SSD, so the situation is not dire. But if I could save the disk contents somehow, that would be really nice. I understand that there is recovery software but I wanted to reach out to the community for some advice: perhaps there is a simpler fix, or perhaps I could get a recommendation of recovery softawre to use?
Thanks for the help.
PS There were multiple partitions on the HDD (e.g. sda1, sda 4). So I did not inadvertently shred the whole thing. Also, as it was shredding, I could see in the terminal that the total size to be shredded was the expected size -- only 2.6 of the 3.6 TB.
Hmmm... okay. Before I shredded the thing, I was thinking the same thing: "isn't sda
the whole device?" But when I was looking at the partitions on the Disk Utility one was labeled sda0
another sda1
etc. and then the partition I wanted to shred was simply labeled sda
. I wonder why that would be the case. Perhaps because it was simply unformatted space on the drive and not a partition proper? (I can't remember whether or not I formatted the space prior to shredding.)
shred [..] /dev/sda
- and that is not a partition, it's the entire device. A partition would be/dev/sda0
– Panki Jun 06 '22 at 19:01sda
is the whole drive, and I doubt you had asda0
, partitions are typically numbered from 1. I hope you have a backup of the data you didn't mean toshred
because there are no tools on Linux (or any other OS) that can bring them back. – Henrik supports the community Jun 07 '22 at 06:26sda0
anothersda1
etc. and then the partition I wanted to shred was simply labeledsda
. I wonder why that would be the case." – I don't know the utility, but if by "labeled" you mean these were the labels then they could be almost anything, because labels are arbitrary strings you can set (see here or here). Now the question may be: why would anyone set such misleading labels? Misleading or not, labels are not device names. – Kamil Maciorowski Jun 07 '22 at 18:59