SSDs / NVMEs¶
NVME disks¶
Format nvme disk¶
Sanitize / Secure-erase¶
Arch wiki: Solid_state_drive/Memory_cell_clearing: NVMe_drive
Show available commands for the drive:
Sanitize:
When the Sanitize command is not supported proceed with format:
NVME smart¶
Show percent_used (aka wear levelling):
SSDs¶
Discard / fstrim¶
- Wait... is that how you are supposed to configure your SSD card?
- SSD optimization
- How to properly activate TRIM for your SSD on Linux: fstrim, lvm and dm-crypt
tldr:
- Discard is already added during installation in
/etc/crypttab - The system timer
fstrim.timeris also enabled during installation - Don't enable discard in
/etc/fstab! - Add
discardoption to luks devices in/etc/crypttab - LVM has
issue_discardsalready set by default - A systemd timer + service (
fstrim.timer) is enabled by default alreadysystemctl status fstrim.timer
Show trimming results: systemctl status fstrim.timer
Secure Erase¶
Make sure disk is not frozen:
Set dummy user pw:
Ensure security (pw) is enabled:
Erase:
Takes up to ~12s for 500gb SSD.
Ensure security (pw) is not enabled anymore: