User Tools

Site Tools


linux:notes:drive_wipe

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:notes:drive_wipe [2026/03/18 14:40] – [sda] Sean Rhonelinux:notes:drive_wipe [2026/05/21 18:55] (current) Sean Rhone
Line 14: Line 14:
   * [[linux:notes:disk_gpt_format|Disk Format (GPT)]]   * [[linux:notes:disk_gpt_format|Disk Format (GPT)]]
   * [[linux:notes:rsync_nas|Drive-to-drive rsync]]   * [[linux:notes:rsync_nas|Drive-to-drive rsync]]
 +
 +====== LiveUSB Maintenance ======
 +
 +****
 +
 +  sudo umount '/dev/sda'* | sudo dosfsck -a -w -v '/dev/sda2' && sudo e2fsck -D -E 'discard,optimize_extents,inode_count_fullmap' -f -v -y '/dev/sda3'
  
 ====== Tools ====== ====== Tools ======
Line 107: Line 113:
 ==== sda ==== ==== sda ====
  
-  :!: TODO: On newer Live ISOs this seemingly fails the first ''security-erase'' when ran AIO ((it's fine ran separately))+****
  
-<code>sudo blkdiscard --force --verbose '/dev/sda' && sudo hdparm --user-master u --security-set-pass 'x' '/dev/sda' && sudo hdparm --user-master u --security-erase 'x' '/dev/sda' && sudo hdparm --user-master u --security-set-pass 'x' '/dev/sda' && sudo hdparm --user-master u --security-erase-enhanced 'x' '/dev/sda' && sudo rm -f '/sys/firmware/efi/efivars/'* || sync</code>+<code>sudo blkdiscard --force --verbose '/dev/sda' && sleep '0.5' && sudo hdparm --user-master u --security-set-pass 'x' '/dev/sda' && sleep '0.5' && sudo hdparm --user-master u --security-erase 'x' '/dev/sda' && sleep '0.5' && sudo hdparm --user-master u --security-set-pass 'x' '/dev/sda' && sleep '0.5' && sudo hdparm --user-master u --security-erase-enhanced 'x' '/dev/sda' && sudo rm -f '/sys/firmware/efi/efivars/'* || sync</code>
  
 === Individual === === Individual ===
/usr/local/www/wiki/data/attic/linux/notes/drive_wipe.1773859251.txt.gz · Last modified: by Sean Rhone

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki