FOGProject / fos

FOG Operating System
30 stars 33 forks source link

Change fog.wipe to wipe NVMe drives correctly. #61

Closed rluzuriaga closed 1 year ago

rluzuriaga commented 1 year ago

The fog.wipe script currently uses shred or dd to wipe out the hard drive. Wiping an SSD or NVMe drive like this will make the drives deteriorate very quickly.

Sebastian-Roth commented 1 year ago

@rluzuriaga I though we had that fixed already in #40

rluzuriaga commented 1 year ago

@Sebastian-Roth I did some more research and yes everything said in #40 is correct. SSDs are frozen at boot from the UEFI, the way to unfreeze them would be to suspend the computer. Suspending the computer of course does not work on FOS since it is a login shell. SSDs will have to keep using shred and dd.

An NVMe is a different story. UEFI does not freeze an NVMe. NVMe drives have their own way to format using nvme-cli. I will work on implementing this.