You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Is it safe to erase and resell an external SSD?

I want to resell an external SSD (bought one too many) that I have used for a few weeks. Initially I erased and formatted the way it's done with mechanical drives, until I learned that that's useless for SSD (interestingly, Apple mentions that in the manual, but there's no indication of it in the settings themselves, so the knowledge is acquired by chance).


I want to do this as simply and quickly as possible. Is it ok to simply erase and resell? I guess not. I have read somewhere that I can first encrypt the drive and then erase it. But would a different user be able to use the drive?


Thanks.


[Re-Titled by Moderator]

iMac 21.5″ 4K, macOS 13.6

Posted on Sep 13, 2024 2:43 AM

Reply
Question marked as Top-ranking reply

Posted on Sep 13, 2024 5:40 AM

As pice of information worthy of reading


" Hard drives vs. SSDs

To securely erase data, hard disk drives fill the occupied space on the drive with a file consisting of zeroes or execute multiple writes of different characters; for more, see Securely wipe disk drives. Flash storage has an inherent limitation in that data may only be written to and erased from a given location a certain number of times. This number is typically over 10,000, but it's still possible a user could hit that limit over the life of the storage device.

To address this problem on solid-state drives, manufacturers use wear-leveling algorithms that evenly distribute data among SSD blocks, which means that data is constantly moved around on the drive so the blocks will be worn at an equal rate.


A side-effect of wear-leveling is that a file's data blocks aren't always kept adjacent to one another but could be distributed and disjointed. Wiping programs like DBAN  have a hard time identifying all the far-flung data blocks, so they don't do a good job of secure deletion on an SSD.


Standard secure deletion tools damage SSDs by performing an unnecessary number of additional writes without being able to tell where the data is written.

11 replies
Question marked as Top-ranking reply

Sep 13, 2024 5:40 AM in response to StockStoic7

As pice of information worthy of reading


" Hard drives vs. SSDs

To securely erase data, hard disk drives fill the occupied space on the drive with a file consisting of zeroes or execute multiple writes of different characters; for more, see Securely wipe disk drives. Flash storage has an inherent limitation in that data may only be written to and erased from a given location a certain number of times. This number is typically over 10,000, but it's still possible a user could hit that limit over the life of the storage device.

To address this problem on solid-state drives, manufacturers use wear-leveling algorithms that evenly distribute data among SSD blocks, which means that data is constantly moved around on the drive so the blocks will be worn at an equal rate.


A side-effect of wear-leveling is that a file's data blocks aren't always kept adjacent to one another but could be distributed and disjointed. Wiping programs like DBAN  have a hard time identifying all the far-flung data blocks, so they don't do a good job of secure deletion on an SSD.


Standard secure deletion tools damage SSDs by performing an unnecessary number of additional writes without being able to tell where the data is written.

Sep 13, 2024 4:40 AM in response to StockStoic7

User wrote >>

"  Using this method from Apple should be enough."

No, it's not. I had already done all this, as I have indicated before: 'Initially I erased and formatted the way it's done with mechanical drives'.

Please read the last sentence in the link you provided, which is this:  Note: With a solid-state drive (SSD), secure erase options are not available in Disk Utility. For more security, consider turning on FileVault encryption when you start using your SSD drive."


That last part is if you are keeping the Drive not when selling the drive


If your were to Encrypt the Drive and sell it


The New Owner would not be able to use the drive at all.


User wrote >>

'' built-in function called Garbage Collection ''

Ok, do all SSD drives have that? I am using a Kingston ssd, not a Crucial one


Respectfully - are we ( you ) adjusting their original position on this issue ?


https://media.kingston.com/support/downloads/secure-erase-user-guide_ksm.pdf





Sep 13, 2024 5:02 PM in response to StockStoic7

You verify whether any data is still stored on the external SSD by first retrieving the device identifier for the physical external drive. You can get this from Disk Utility. It will be in the form of "diskX" where "X" will be a number. Use the following Terminal command, but make sure to replace "diskX" with the correct device identifier for your external SSD:


First you may need to unmount all volumes on that external drive:

diskutil  unmountDisk  diskX


Second, this will show you the raw data on the specified drive:

sudo  hexdump  -C  /dev/diskX


The second command will prompt you for your admin password. Nothing will appear on the screen as you type the password, so press the "Return" key to submit the password.


Also, the output of the second command will scroll by extremely quickly, but most of it should be zeroes or at least the same value. Sometimes these apps will just stop scrolling and show the last line with all zeroes. Pressing Control + S will pause the scrolling, while pressing most any other key will resume scrolling. Because the macOS Disk Utility "Erase" feature always creates a partition & file system, you may see a few small bits of data mostly at the beginning of the drive/output. If you want to have it go by slowly, then just add " | less" to the end of the command which will allow you to scroll through the output (use Fn + Down Arrow to scroll down by a page/screen)....make the Terminal window to fit the height of the screen in order to view the most data possible for each screen/page full.

sudo  hexdump  -C  /dev/diskX  |  less


If for some reason you don't have "hexdump" installed, then you can use "xxd" instead to get the same output (you can add " | less" to this command as well):

sudo  xxd  /dev/diskX



If you have TRIM enabled & working on the external SSD, then even a simple erase using Disk Utility will be enough to destroy all data on the SSD. I'm not sure when TRIM is not enabled, but eventually it will be zeroed as the others have mentioned with the SSD's Garbage Collection. To enable TRIM for third party SSDs, you can use the following Terminal command:

sudo  trimforce  enable


You may need to run Disk Utility First Aid scan on the external drive volume in order to force a TRIM event to occur right away assuming macOS & the SSD will allow TRIM to be enabled. You can check the Apple System Profiler to see if TRIM is shown as enabled for the specific drive.


Some SSD manufacturers include an option to perform a hardware secure erase using the SSD manufacturer's proprietary software. They may not make a macOS version of the software, so you may need a Windows system.


Of course the simplest option would be to encrypt the external SSD, then erase it destroying the encryption keys.


Sep 13, 2024 4:23 AM in response to PRP_53

'' Using this method from Apple should be enough''


No, it's not. I had already done all this, as I have indicated before: 'Initially I erased and formatted the way it's done with mechanical drives'.


Please read the last sentence in the link you provided, which is this:


Note: With a solid-state drive (SSD), secure erase options are not available in Disk Utility. For more security, consider turning on FileVault encryption when you start using your SSD drive.




Sep 13, 2024 5:11 AM in response to PRP_53

'' That last part is if you are keeping the Drive not when selling the drive ''


Which is why I asked in my post: But would a different user be able to use the drive?


'' Respectfully - are we ( you ) adjusting their original position on this issue ?''


I don't know what you mean. You are getting rubbed off the wrong way for my remarks about you giving the wrong advice about the secure erase options not applying to SSD, which is really the issue, and then you ignored my observation about this, and mentioned all the other stuff I already know, including the link to the pdf you provided. For the Kingston software is not available on Mac, otherwise I would have used that. I had already done that work, I had already looked into that. Ok so you didn't know I knew, fair enough. No problem.


So the question remains: can I erase the drive safely, to resell it, in a simple enough way?


So far, you told me stuff that quite simply is not true, and the rest is either irrelevant, or I knew it already.


Sorry, but why blaming me for it.

Is it safe to erase and resell an external SSD?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.