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 want to securely delete the hdd using dd because I intend to sell it. Using the buffer will speed up the process. I can't find out the size though:

arno@arno-X55A:~$ hdparm -i /dev/sdb
/dev/sdb: Permission denied
arno@arno-X55A:~$ sudo hdparm -i /dev/sdb
[sudo] password for arno: 

 HDIO_GET_IDENTITY failed: Invalid argument
share|improve this question
up vote 1 down vote accepted

To find out, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the commands below.

sudo hdparm -I /dev/sdb1

Replace sdb1 with your hard drive name

*it has to be an uppercase I

enter image description here

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.