Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a seagate hard disk which is under warranty for next 4 years. I always had a problem reading this hard disk as I had to tilt the usb cable for it to make proper contact with the pins. However, for last 2 to 3 months, it has stopped working altogether.

fdisk -l does not yield any device info apart from the partitions on the internal hard disk. However, the hard disk does light up when I successfully connect it (that is, by tilting the USB cable)

My problem is that I can not simply give my hard disk to the seagate customer support for replacement as there are some personal pictures and scanned images of almost all identity cards possible and educational certificates.

Is there a way to somehow erase the data on this hard disk without opening it (as that would void the warranty)? Magnetic degaussing comes to mind, however, as this guy has mentioned here, it requires industry grade magnets to do it. I know I should have encrypted my data and I learned it the hard way, but is there a way out so that I can erase the data and make use of the warranty as well?

share|improve this question
This isn't an Ubuntu question, is it? If you can see and mount the drive from your Ubuntu install, we can help you get the data wiped. If not, it's off-topic and should be closed. – Tom Brossman Apr 21 '12 at 18:36

We have answered this fully over on security stack exchange - - and it was such a popular topic it also got a feature on our blog -

Summary of key methods

  • Degaussing
  • Physical Destruction
  • Manual Dis-assembly
  • Electrical Scrambling
  • Wanton Destruction
share|improve this answer

If your disk is not working anymore degaussing seems to be the only way. There are some professional degaussing services around. Look for one close to your location. Here the first one I found on google ...

share|improve this answer
If you don't trust the drive manufacturer, why would you trust these guys? If you aren't going to degauss it yourself, there's not much point in sending it to someone else to do it for you. – psusi Apr 21 '12 at 16:25
If you send it to the manufacturer the disk might get repaired and sold as refurbished without being properly deleted. You are right, you need to find a degaussing company you trust. – Ruediger Apr 21 '12 at 16:32

Now be careful that you use the exact right device, or you will be erasing the wrong disk.

  1. Find the device name to your USB drive: cat /proc/partitions. It is probably /dev/sdb, but you should check the size against the actual disk size. If in doubt, copy the output in your question. You can double check with the dmesg command. That should show the connecting/disconnecting of the USB cable and the exact device name assigned.
  2. sudo bs=4M if=/dev/zero of=/dev/your_device_name
  3. The drive LED will light up and you'll have to wait a while until it finishes. Approx. 50-100 GB/hr. In your case you might want to use an elastic band to keep the USB connector up.

You can repeat it several times, but that is not really necessary. Recovering data from a drive erased this way is already extremely difficult. You'll need a specialized laboratory and drive firmware already.

share|improve this answer
or use shred /dev/[yourdevice] – Ruediger Apr 21 '12 at 14:55
With default options shred runs 3 times, tripling the time required for erase. Otherwise a good option. – jippie Apr 21 '12 at 14:59
The question stated that the device doesn't show up when connected, so that's not an option. – psusi Apr 21 '12 at 16:21

If you are that paranoid that you do not trust the drive manufacturer to look at your data, then you simply need to destroy the drive physically, write off the cost, and buy a new one rather than return it for repair or replacement.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.