Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| linux:notes:drive_wipe [2026/03/18 14:40] – [sda] Sean Rhone | linux:notes:drive_wipe [2026/05/21 18:55] (current) – Sean Rhone |
|---|
| * [[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 ====== |
| ==== 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 === |