disk_wiper/README.md

56 lines
1.8 KiB
Markdown
Raw Normal View History

2021-07-15 22:12:04 +02:00
# disk_wiper
2021-07-16 03:01:53 +02:00
a disk wiper since shred is "lentoinculo" on some machines
2021-07-16 02:17:19 +02:00
2021-07-16 03:01:53 +02:00
with this the old machine has achieved ~100MB/s instead of shred's ~10MB/s
2021-07-16 02:58:40 +02:00
2021-07-16 03:01:53 +02:00
this should be somewhat less secure than shred's better randomness, but at least the random seed is changed at every pass of random wiping, which for my use case is acceptable.
this should not give you peace of mind regarding the complete wipe of your disks,
2021-07-16 02:59:32 +02:00
this is more a "decommissioning" tool for old disks that could be reused in other scenarios and need to be wiped.
2021-07-16 02:58:40 +02:00
2021-07-16 02:59:32 +02:00
if you are after complete certainty of data removal from your drives then it's better to get going with the power drill, grinder and the very big hammer, for more info on how the GCHQ would achieve that: https://media.ccc.de/v/camp2015-6799-how_to_destroy_a_laptop_with_top_secrets
2021-07-16 02:19:40 +02:00
2021-08-05 01:57:47 +02:00
### usage:
2022-06-19 18:40:13 +02:00
```
2021-08-05 01:57:47 +02:00
./wiper.sh sdb
2022-06-19 18:40:13 +02:00
```
2021-08-05 01:57:47 +02:00
in case you want to override the disk health check to wipe a broken disk:
2022-06-19 18:40:13 +02:00
```
2021-08-05 01:57:47 +02:00
./wiper.sh sdb --override
2022-06-19 18:40:13 +02:00
```
2021-08-05 01:57:47 +02:00
2021-07-16 02:19:40 +02:00
### features:
2021-07-16 02:17:19 +02:00
2021-07-16 02:38:38 +02:00
* checks if disk has errors, in that case instructs you to physically destroy it poiting to the Model and Serial numbers to best identify the drive
* checks if disk is an SSD (see TODO) and reminds you the dangers of SSD's flash reallocation
2021-07-16 02:17:19 +02:00
* differentiate between SAS and SATA to retrieve the correct data
2021-07-16 02:20:03 +02:00
* uses openssl to provide randomness (faster)
2021-07-16 02:17:19 +02:00
* has a nice progress bar for the shredding and zeroing with timing of the current operation
2021-07-16 02:33:54 +02:00
* automatically installs it's prerequisites (pv, smartmontools and hdparm)
2021-07-16 02:17:19 +02:00
2022-06-19 18:39:27 +02:00
### pre-requisites:
- smartmontools
- pv
2022-06-19 18:40:13 +02:00
```
apt install pv smartmontools
```
2021-07-16 02:17:19 +02:00
2021-07-16 02:19:40 +02:00
### TODO:
2021-07-16 02:17:19 +02:00
- [ ] check ATA Secure Erase for SSDs
2021-07-16 22:06:51 +02:00
- [x] needs testing with SATA drives
- [x] needs testing with broken SATA drives
2021-07-16 02:33:54 +02:00
- [ ] needs testing with SSDs
2021-07-16 22:06:51 +02:00
- [x] broaden the platforms for prerequisites installation (at least yum)
2021-07-16 02:58:40 +02:00
### quotes:
"[some] disks don't fail, they just break"