You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Hendrik Schutter 45a5cb303b upload log to dev 3 weeks ago
doc added update script 1 month ago
include release of Beta 0.2.0 1 month ago
src release of Beta 0.2.0 1 month ago
.gitignore updated gitignore 1 month ago
LICENSE Initial commit 1 year ago
README.md upload log to dev 3 weeks ago
astyle.sh define-switch for frozen alert 1 month ago
ignoreDrives.conf added update script 1 month ago
makefile define-switch for frozen alert 1 month ago
shred_dummy.sh added custom implementation for shred 1 month ago
vcCodium.code-workspace fixed states if drive is no longer present 1 month ago

README.md

reHDD

Useful for:

  • checking new drives for the first time
  • checking used drives for their next live
  • deleting a drive securely via overwriting

Screenshot

alt text

Debian Build Notes

  • apt-get install ncurses-dev git make g++
  • clone repo
  • make release

Create Standalone with Debian

Instructions how to create a standalone machine that boots directly to reHDD. This is aimed for production use, like several drives a day shredding.

Software requirements

Start reHDD after boot without login (as a tty shell)

nano /etc/systemd/system/reHDD.service

[Unit]
Description=Custom user interface on tty1
Conflicts=getty@tty1.service
Before=getty.target

[Service]
WorkingDirectory=/root/reHDD
ExecStart=/root/reHDD/reHDD
StandardInput=tty
StandardOutput=tty
Restart=always
RestartSec=1
UtmpIdentifier=tty1
TTYPath=/dev/tty1
TTYReset=yes
TTYVHangup=yes
TTYVTDisallocate=yes
SendSIGHUP=yes

[Install]
WantedBy=multi-user.target

nano /etc/systemd/system/reHDDSettings.service

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/bash /root/reHDDSettings.sh

[Install]
WantedBy=multi-user.target

nano /root/reHDDSettings.sh

#!/bin/bash
dmesg -n 1 #disable overlay if a drive is attached/detached
# remove comment for the following to activate log telemetie
# curl -k -T /root/reHDD/reHDD.log -u "ra7466BsoSPqJFG:" -H 'X-Requested-With: XMLHttpRequest' https://schuttercloud.com/public.php/webdav/`echo $(date '+%Y-%m-%d_%H-%M')`_reHDD.log
rm -f /root/reHDD/reHDD.log

Make sure the binary reHDD is in /root/reHDD/ Add your system drive in /root/reHDD/ignoreDrives.conf like: /dev/sdX:e102f49d-5ed5-462b-94c5-ef66a4345671 Get your UUID via blkid /dev/sdX

systemctl enable reHDD.service

systemctl enable reHDDSettings.service