Berion
Developer
@4laZr3d Do NOT attempt to zeroing SSD like that. Because it will not removed all data and as result You wear off more media. Behind the scene, SSD controller doing titanic jobs in readdressing and writing data. The only safe method to clear it is using internal command called Advanced/Enhanced Secure Erase.
Code:
sudo hdparm -I /dev/sdx
sudo hdparm --user-master u --security-set-pass <password> /dev/sdx
sudo hdparm --user-master u --security-erase-enhanced <password> /dev/sdx
- "-I" is to see if drive is not frozen, if it is, then put computer at sleep then awake him and try again
- You must set password to invoke ase/se atacmd
- on some SSD, zeroing using ase/se is not possible because this atacm works different on them (like eg. changing encryption keys only)
- some SSD not supporting "--security-erase-enhanced" but "--security-erase" only
Last edited:
