I’m buying a used SSD for storage and want to start fresh without writing over the whole drive and adding unnecessary wear. Is deleting its partitions and creating a new filesystem enough, and what can I use on Linux to check whether the drive’s reported capacity is genuine?
Is reformatting a used SSD enough to clear possible malware?
Answers
For ordinary file-based malware, deleting the old partitions and making a new partition table and filesystem is a reasonable reset. Don’t mount or open the old files first. A quick format is not a secure erasure of the previous data, but that’s a separate concern from preventing old files from being used.
There is a remote possibility of malicious drive firmware, which a normal format would not replace. If you have a specific reason to suspect a targeted firmware compromise, replacing the drive is more sensible than trying to verify it yourself. For a typical second-hand storage drive, that threat is unlikely.
Reply to this answer
If you want to clear leftover partition metadata without overwriting the entire SSD, use a partitioning tool to remove the existing layout and create a fresh one. Writing zeros across the drive generally isn’t needed for this, and SSD controllers can make host-side overwrite behavior less straightforward than it looks.
For a stronger erase, check whether the drive supports a manufacturer or firmware-level secure erase function, but that’s aimed at removing old data, not specifically at ordinary malware. Confirm the selected device carefully before running any erase command.
Reply to this answer
For checking capacity, look for a Linux tool that writes test data and reads it back across the drive, such as F3. A quick benchmark can show suspiciously poor performance, but it does not prove that every reported sector is usable. A full capacity test involves writing across the drive, so there isn’t a no-write check that gives the same assurance.
Reply to this answer
Don’t treat antivirus scans as a substitute for wiping the old layout. Scanners can inspect accessible files, but they can’t establish that every hidden area or the drive firmware is clean. For regular use, a fresh partition table and filesystem are the practical low-wear option. If the drive’s condition or origin feels too uncertain, the simplest answer is not to use it.
Reply to this answer
Add your answer
Answers are reviewed before publication.
Related Discussions