diff --git a/bin_util/blkid b/bin_util/blkid deleted file mode 100755 index ba5906d..0000000 Binary files a/bin_util/blkid and /dev/null differ diff --git a/bin_util/hwinfo b/bin_util/hwinfo deleted file mode 100755 index a509a53..0000000 Binary files a/bin_util/hwinfo and /dev/null differ diff --git a/bin_util/shred b/bin_util/shred deleted file mode 100755 index df459fb..0000000 Binary files a/bin_util/shred and /dev/null differ diff --git a/bin_util/smartctl b/bin_util/smartctl deleted file mode 100755 index f1bac60..0000000 Binary files a/bin_util/smartctl and /dev/null differ diff --git a/doc/prototype_manual_DE.md b/doc/prototype_manual_DE.md index d8353eb..c9d5039 100644 --- a/doc/prototype_manual_DE.md +++ b/doc/prototype_manual_DE.md @@ -1,5 +1,5 @@ **[1]** In terminal als root einloggen\ -**[2]** In reHDD wechseln\ +**[2]** In reHDD_prototype wechseln\ **[3]** Abhängigkeiten installieren\ `apt-get install smartmontools`\ `apt-get install hwinfo`\ @@ -24,6 +24,33 @@ Die PARTUUID kann mittels `blkid /dev/sda` ermittelt werden, wobei `/dev/sda` de **[6]** reHDD starten mit `./reHDD` +# Benutzung +reHDD sucht automatisch nach allen verfügbaren Festplatten und filtert die zu ingnorierenden heraus. +Für die verbleibenden Festplatten wird eine Übersicht ausgegeben. Der Nutzer wird gefragt welche Festplatte bearbeiten werden soll und gibt die Nummer ein. +Beispiel: +linux-898t:/home/hendrik/Schreibtisch/reHDD_prototype # ./reHDD +refurbishingHddTool +created app +app logic +search drives ... +------------DRIVES--------------- + Drive: 0 +Path: /dev/sdd +ModelFamily: +ModelName: ADATA SU650 +Capacity: 120034123776 +Serial: H50125K001601 +PowerOnHours: 93 +PowerCycle: 187 +ErrorCount: 0 + +--------------------------------- +Select drive to wipe: +0 +Selected drive index: 0 +wipe: shred -v /dev/sdd +shred: /dev/sdd: Durchgang 1/3 (random)… +shred: /dev/sdd: Durchgang 1/3 (random)…847MiB/112GiB 0% diff --git a/src/reHDD.cpp b/src/reHDD.cpp index a123c19..ec03080 100644 --- a/src/reHDD.cpp +++ b/src/reHDD.cpp @@ -55,7 +55,7 @@ void reHDD::searchDrives(vector * pvecDrives) char * cLine = NULL; size_t len = 0; - FILE* outputfileHwinfo = popen("./bin_util/hwinfo --short --disk", "r"); + FILE* outputfileHwinfo = popen("hwinfo --short --disk", "r"); if (outputfileHwinfo == NULL) { @@ -120,7 +120,7 @@ void reHDD::filterIgnoredDrives(vector * pvecDrives) // cout << "Same drive path found" << endl; char * cLine = NULL; size_t len = 0; - string sCMD = "./bin_util/blkid "; + string sCMD = "blkid "; sCMD.append(it->getPath()); // cout << "cmd: " << sCMD << endl; FILE* outputfileBlkid = popen(sCMD.c_str(), "r"); //get UUID from drive diff --git a/src/smart.cpp b/src/smart.cpp index 5350ed2..f85cab1 100644 --- a/src/smart.cpp +++ b/src/smart.cpp @@ -33,7 +33,7 @@ void SMART::readSMARTData(Drive* drive) size_t len = 0; //lenght of found line char* cLine = NULL; //found line - string sCMD = ("./bin_util/smartctl --json -a "); + string sCMD = ("smartctl --json -a "); sCMD.append(drive->getPath()); const char* cpComand = sCMD.c_str(); diff --git a/src/wipe.cpp b/src/wipe.cpp index aac5c33..a5626f9 100644 --- a/src/wipe.cpp +++ b/src/wipe.cpp @@ -20,7 +20,7 @@ void Wipe::wipeDrive(Drive* drive) char* cLine = NULL; //found line #ifndef DRYRUN - string sCMD = ("./bin_util/shred -v "); + string sCMD = ("shred -v "); sCMD.append(drive->getPath()); #endif #ifdef DRYRUN