Shred

Stephen Partington cryptworks at gmail.com
Tue Aug 30 08:34:01 MST 2022


I was just about to link some similar information.

https://www.thomas-krenn.com/en/wiki/Perform_a_SSD_Secure_Erase
https://grok.lsu.edu/article.aspx?articleid=16716

On Mon, Aug 29, 2022 at 8:15 PM Michael Butash via PLUG-discuss <
plug-discuss at lists.phxlinux.org> wrote:

> SSD/NVME usually have secure wipe functions in the controller for this not
> to destroy the flash with shred or like.  From my notes:
>
> ## if SSD
>
> ## if you need to wipe the disks, use a security erase on them
> ## you will sometimes need to unfreeze drives, a suspend and awaken works
>
> sudo hdparm -I /dev/sda | grep froz
> sudo hdparm -I /dev/sdb | grep froz
>
> ## make sure these are the right disks, they will be wiped.
>
> hdparm --user-master u --security-set-pass PasSWorD /dev/sda
> hdparm --user-master u --security-erase PasSWorD /dev/sda
>
> hdparm --user-master u --security-set-pass PasSWorD /dev/sdb
> hdparm --user-master u --security-erase PasSWorD /dev/sdb
>
> ## if NVME/M.2
>
> ## confirm nvme-cli is available
>
> which nvme
>
> ## confirm secure erase mode, should be 0x1
>
> nvme id-ctrl -H /dev/$nvme-disk0$ | egrep 'Crypto Erase'
> nvme id-ctrl -H /dev/$nvme-disk1$ | egrep 'Crypto Erase'
>
> nvme format -s1f /dev/$nvme-disk0$
> nvme format -s1f /dev/$nvme-disk1$
>
> -mb
>
>
> On Mon, Aug 29, 2022 at 3:05 PM Retro64XYZ via PLUG-discuss <
> plug-discuss at lists.phxlinux.org> wrote:
>
>> Don't do that to an SSD.
>> On 8/29/22 14:47, Michael via PLUG-discuss wrote:
>>
>> To delete everything would I type
>> sudo shred /dev/sda
>> From a live disk?
>> --
>> :-)~MIKE~(-:
>>
>> ---------------------------------------------------
>> PLUG-discuss mailing list - PLUG-discuss at lists.phxlinux.org
>> To subscribe, unsubscribe, or to change your mail settings:https://lists.phxlinux.org/mailman/listinfo/plug-discuss
>>
>> ---------------------------------------------------
>> PLUG-discuss mailing list - PLUG-discuss at lists.phxlinux.org
>> To subscribe, unsubscribe, or to change your mail settings:
>> https://lists.phxlinux.org/mailman/listinfo/plug-discuss
>
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss at lists.phxlinux.org
> To subscribe, unsubscribe, or to change your mail settings:
> https://lists.phxlinux.org/mailman/listinfo/plug-discuss



-- 
A mouse trap, placed on top of your alarm clock, will prevent you from
rolling over and going back to sleep after you hit the snooze button.

Stephen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.phxlinux.org/pipermail/plug-discuss/attachments/20220830/e9d06384/attachment.html>


More information about the PLUG-discuss mailing list