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.

    Sony Z: How to wipe SSD free space?

    Discussion in 'VAIO / Sony' started by Growler, Dec 18, 2010.

  1. Growler

    Growler Notebook Enthusiast

    Reputations:
    0
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    5
    Might be opening a can of worms here.

    I want to securely erase all trace of deleted files from my SSD.

    I tried CCCleaner using Wipe Free Space and File Shredder, using both One Pass and 3 pass.

    Looks like it works when you check with Recuva, but when I forensically examine it using MiniTool Power Data Recovery (Digital Media Recovery setting) it finds loads of images which it displays as thumbnails. They aren't all recoverable, but for your interest you can tell what they were.

    I've since read warnings not to attempt to wipe the free space and MFT on SSDs, though they might not apply to the Z.

    Does anyone have a solution here?
     
  2. Growler

    Growler Notebook Enthusiast

    Reputations:
    0
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    5
    Well here's an interesting development. I ran the same scan a day later, with very little subsequent disk activity other than browsing and deleting cache, and whaddyaknow the deleted files are no longer visible.

    I presume this is the Garbage Collection in action. This could have all kinds of implications. Now I need to know more.
     
  3. Growler

    Growler Notebook Enthusiast

    Reputations:
    0
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    5
    A further follow-up.

    Looks like my last post was a bit premature. I'm still able to recover deleted files after doing a free space wipe and leaving the computer idle for 24 hours.

    This is a pretty serious privacy downside to the SSD.
     
  4. beaups

    beaups New Jack Hustler

    Reputations:
    476
    Messages:
    2,376
    Likes Received:
    4
    Trophy Points:
    56
    Are you trying to just wipe free space or the whole drive?
     
  5. Oscar2

    Oscar2 Notebook Deity

    Reputations:
    209
    Messages:
    1,030
    Likes Received:
    0
    Trophy Points:
    55
    This is very interesting. I am going to try this as well.
     
  6. travfar

    travfar Notebook Evangelist

    Reputations:
    49
    Messages:
    565
    Likes Received:
    0
    Trophy Points:
    30
    Why don't you just fill up the disk with junk files? That should overwrite the blocks that contain your delete files. It's simple to do. Write a little program that just writes out 0's til your disk is filled.
     
  7. arth1

    arth1 a҉r҉t҉h

    Reputations:
    418
    Messages:
    1,910
    Likes Received:
    0
    Trophy Points:
    55
    This hasn't anything to do with SSD vs HDD, but how Windows with NTFS works.
    There are extra copies on the disk unless you turn off restore options completely, and even then there's the icon cache, which can be scanned for thumbnails of larger deleted images. Then there's the paging file, which also may contain copies of what has earlier been in the memory.
    Oh, and the registry probably has multiple references to the files. And programs you opened them with might have their own icon caches and histories.

    In short, getting rid of all traces isn't easy unless you planned it from the start. Like running a virtual machine on a partition where restore is turned off, and restoring the VM to a snapshot to get rid of what was on it.

    At present, your best bet is to boot the machine from removable media (like a Linux LiveCD), and overwrite the entire Windows partiton (something like dd if=/dev/zero of=sda2 should work, given that the Windows partition is sda2), and then do a Windows restore, followed by a restore from a real backup (not a drive image).

    If you don't have a backup, wiping and restoring to factory settings may be the only viable choice.
     
  8. Oscar2

    Oscar2 Notebook Deity

    Reputations:
    209
    Messages:
    1,030
    Likes Received:
    0
    Trophy Points:
    55
    On an ssd, would there be an additional issue related to the wear leveling? (since overwriting a spot on the disk doesn't necessarily overwrite the same physical location)
     
  9. arth1

    arth1 a҉r҉t҉h

    Reputations:
    418
    Messages:
    1,910
    Likes Received:
    0
    Trophy Points:
    55
    Forensically, yes, but through the standard ATA interface, no. If a block is internally marked as deleted because of wear leveling and hasn't been erased yet, another read of it won't return the old data -- it will point to the reallocated block.
    When you access that physical block again, it will be through a different address, and then it has been erased/rewritten.

    But forensically, yes, it's possible to dump SSD drives without going through the ATA interface. But in reality, you don't get much extra that way, because modern SSD drives pre-emptively move blocks around and erase sectors to reduce the risk of hitting the horrible worst case random write time of SSDs.
     
  10. Growler

    Growler Notebook Enthusiast

    Reputations:
    0
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    5
    What did you find Oscar?

    Growler
     
  11. Oscar2

    Oscar2 Notebook Deity

    Reputations:
    209
    Messages:
    1,030
    Likes Received:
    0
    Trophy Points:
    55
    Nothing yet. But when I get back from traveling, I want to play around with this.
     
  12. Growler

    Growler Notebook Enthusiast

    Reputations:
    0
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    5
  13. ssssssssss

    ssssssssss Notebook Evangelist

    Reputations:
    234
    Messages:
    542
    Likes Received:
    0
    Trophy Points:
    30
    Although it's pretty advanced level, and you're unlikely to require proper military-grade erasure, this is well worth a read. Basically it is very very difficult to 100% erase data from a SSD (check out the comments as well for some hardcore discussion re. destroying the physical drive thermite, 500kV overvolting, carbon arc torches etc, and how even this can leave all your data readable if you're not careful!)

    You should probably do a cost/benefit analysis as to whether the data of yours that is on the drive is worth more to you than you are selling the drive/computer for.
     
  14. ggcvnjhg

    ggcvnjhg Notebook Evangelist

    Reputations:
    37
    Messages:
    616
    Likes Received:
    0
    Trophy Points:
    30
    So what you're saying is if I were to sell my laptop, someone might be able to recover my collection of midget ?
     
  15. mokeiko

    mokeiko Notebook Enthusiast

    Reputations:
    10
    Messages:
    23
    Likes Received:
    1
    Trophy Points:
    6
    lol :D

    mokeiko
     
  16. Achusaysblessyou

    Achusaysblessyou eecs geek ftw :D

    Reputations:
    334
    Messages:
    1,809
    Likes Received:
    1
    Trophy Points:
    56
    I assume passing a drive through a MRI would completely erase it too right?
     
  17. ggcvnjhg

    ggcvnjhg Notebook Evangelist

    Reputations:
    37
    Messages:
    616
    Likes Received:
    0
    Trophy Points:
    30
    Lol, there was a word following that was censored by NBR.
     
  18. mokeiko

    mokeiko Notebook Enthusiast

    Reputations:
    10
    Messages:
    23
    Likes Received:
    1
    Trophy Points:
    6
    I still had a good laugh, thanks for that.

    mokeiko
     
  19. ssssssssss

    ssssssssss Notebook Evangelist

    Reputations:
    234
    Messages:
    542
    Likes Received:
    0
    Trophy Points:
    30
    The MRI would rip all the ferrous metal in the drive to shreds I guess, but the information would probably still be recoverable if you had the time or the inclination to do so. NAND chips don't store things magnetically like hard drives.
     
  20. Growler

    Growler Notebook Enthusiast

    Reputations:
    0
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    5
    This is about erasing the "free space," not the entire drive.
     
  21. ssssssssss

    ssssssssss Notebook Evangelist

    Reputations:
    234
    Messages:
    542
    Likes Received:
    0
    Trophy Points:
    30
    What do you believe the difference to be?
     
  22. Growler

    Growler Notebook Enthusiast

    Reputations:
    0
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    5
    Erasing the whole drive wipes everything. Free space just writes over the empty space to make what's been deleted unrecoverable.