Go to file
Hendrik Schutter fc83b60d85 Merge pull request 'create first beta release' (#23) from develop into master
Reviewed-on: #23
2020-09-15 13:47:06 +02:00
doc first beta release 2020-09-15 13:40:40 +02:00
include first beta release 2020-09-15 13:40:40 +02:00
src first beta release 2020-09-15 13:40:40 +02:00
.gitignore updated gitignore 2020-09-10 12:51:07 +02:00
LICENSE Initial commit 2018-11-08 18:31:00 +01:00
README.md added screenshot 2020-09-15 13:43:51 +02:00
ignoreDrives.conf first beta release 2020-09-15 13:40:40 +02:00
makefile fixed states if drive is no longer present 2020-08-26 18:38:39 +02:00
shred_dummy.sh added custom implementation for shred 2020-08-26 00:12:39 +02:00
vcCodium.code-workspace fixed states if drive is no longer present 2020-08-26 18:38:39 +02:00

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
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