The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    Secure wipe 1st gen Z HDD without causing drive to lock?

    Discussion in 'VAIO / Sony' started by led20719, Dec 8, 2011.

  1. led20719

    led20719 Notebook Enthusiast

    Reputations:
    0
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    15
    I want to wipe the HDD with either Secure Erase or KillDisk but I'm concerned the drive will lock if I do that. How can I prevent that from happening?
     
  2. pyr0

    pyr0 100% laptop dynamite

    Reputations:
    829
    Messages:
    1,272
    Likes Received:
    36
    Trophy Points:
    56
    Jump to SECURE ERASE if you want to do a secure erase that recovers write speeds on the SSD. If you want to clean your personal data from the drives, you can use almost any wiping tool or the following command, that does not lock up your SSDs.

    Code:
    time dd if=/dev/urandom of=/dev/[B]sdx[/B]
    Caution! Destroys all data stored at /dev/sdx (replace x with a,b,c,d etc.) by overwriting the entire space with (pseudo-)random numbers. Practically, there is no way to recover your data once the command was executed.

    --------------------------------------------------------

    SECURE ERASE

    In short: break your RAID and fire up a linux live dist and secure erase each ssd where you will have /dev/sda and /dev/sdb on a dual-ssd setup and sda-sdd on a quad respectively.

    You need basic linux knowledge.

    Use following commands (short version) or follow the guide here (long version):

    Code:
    hdparm -I /dev/[B]sdx[/B]
    With this command you can always check the drive state. Before and after the following safely erase procedure, it should show "not enabled" under "Security". After enabling the security mode (next command), it will show "enabled".

    Code:
    hdparm --user-master u --security-set-pass password /dev/[B]sdx[/B]
    this command sets security mode with the password being "password". Replace sdx with the drive that you want to secure erase. Security mode is required for the safe erase action to work.

    Code:
    time hdparm --user-master u --security-erase password [B]/dev/sdx[/B]
    Now this is the security erase command that we send to the drive. It should say "Issuing SECURITY_ERASE command". This process should take a few seconds to complete. After the command has finished, the security mode gets disabled and the drive unlocked automatically. You can check that with the first command. Now go on to the next drive until you are done with all. Then rebuild your RAID array in the RST console.

    Successfully tested on my 512GB Z11 with Samsung SSDs. Works like a charm.
     
  3. chroma_cg

    chroma_cg Notebook Consultant

    Reputations:
    59
    Messages:
    198
    Likes Received:
    2
    Trophy Points:
    31
    for me, i just break the raid setup and then run dban on every drive, but i never got a problem with the drive being locked up?
     
  4. led20719

    led20719 Notebook Enthusiast

    Reputations:
    0
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    15
    It's HDD not SSD. (Vaio Z from 2008)
     
  5. lovelaptops

    lovelaptops MY FRIENDS CALL ME JEFF!

    Reputations:
    1,208
    Messages:
    3,600
    Likes Received:
    107
    Trophy Points:
    131
    Sorry, I don't know the answer - though someone will.

    On behalf of my extremely well intended and knowledgeable colleague, Pyro, I offer a resounding: "never mind." :D (I thought he meant Z1 too, lol.)
     
  6. chroma_cg

    chroma_cg Notebook Consultant

    Reputations:
    59
    Messages:
    198
    Likes Received:
    2
    Trophy Points:
    31
    cant you unlock the HDD first before wiping?