Results 1 to 5 of 5

Thread: Wipe disk with secure erase

  1. #1
    Join Date
    Jul 2008
    Beans
    2

    Wipe disk with secure erase

    Hello,

    I want to wipe my harddisk completely on a save method. Because the DBAN tool (http://dban.sourceforge.net/)
    does not wipe the hpa and dco, I want to use hdparm. This method supports 'Secure Erase' witch is now build in
    modern disks.

    The problem that I've got is the frozen status of the disk. Does anybody now how to avoid this without doing any physical actions ?

    Or does anybody know an (open source and free) solution to wipe the hpa and dco on a secure way ?

    Thanks a lot,

    LittleTwinkel

  2. #2
    Join Date
    Mar 2006
    Location
    Williams Lake
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Wipe disk with secure erase

    THe first thing to do is to see if hpa is enabled. You can do this using hdparm:

    Code:
    sudo hdparm -N /dev/sdx
    Where sdx is your hard drive. Unless you've specifically used HPA you should have no worries.

    IF you want to securely wipe your hard drive ahve a look at wipe. It is available in the repositories and you can use Add/Remove Programs or Synaptic Package Manager to install it. For more info in a terminal type:

    Code:
    man wipe
    Jim

  3. #3
    Join Date
    Jul 2008
    Beans
    2

    Re: Wipe disk with secure erase

    Jim: thanks for answering my question.

    I'm not sure if the 'wipe' command remove the HPA/DCO of a disk. I think that it just rewrite the disk with zeros and ones depending on the algoritm (like the DoD method) nd it leaves the HPA/DCO intact.

    The 'secure erase' method (see http://cmrr.ucsd.edu/people/Hughes/SecureErase.shtml) uses a function in the (modern) harddisk.

    hdparm support that function also, but I've got some troubles with tool. What I'm doing, I always get an error 5 when using it.

    Issuing SECURITY_SET_PASS command, password="test", user=master, mode=high
    Problem issuing security command: Input/output error
    Error: 5

    Issuing SECURITY_UNLOCK command, password="test", user=master
    Problem issuing security command: Input/output error
    Error: 5

    HDIO_DRIVE_CMD(erase prepare) failed: Input/output error
    Problem issuing security command: Input/output error
    Error: 5

  4. #4
    Join Date
    Sep 2005
    Location
    New York, NY, USA
    Beans
    18
    Distro
    Kubuntu 9.10 Karmic Koala

    Re: Wipe disk with secure erase

    Sorry to resurrect an old post: from your description, your BIOS has probably locked you out from using the ATA Secure Erase command.

    A good resource for the ATA Secure Erase command and Linux: http://ata.wiki.kernel.org/index.php/ATA_Secure_Erase

  5. #5
    Join Date
    Aug 2007
    Location
    US
    Beans
    163
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Wipe disk with secure erase

    I'll re-resurrect this post again...
    In my experience, not all modern drives have secure erase enabled, and I would input/output errors on the drives that didn't support it. So if it's not your BIOS blocking you, it may well be the drive.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •