Commit Graph

376 Commits

Author SHA1 Message Date
PartialVolume
415f43c975 Update README.md 2020-03-25 10:11:00 +00:00
PartialVolume
5809d0febd Merge pull request #231 from PartialVolume/Fix_duplicated_serial_no
Fix duplicated serial number
2020-03-24 23:12:29 +00:00
PartialVolume
fdf3140249 Fix duplicated serial number
If any drive doesn't have a serial number it's
serial number field was populated with the previous
drives serial number.

This is fixed by this patch.
2020-03-24 23:07:39 +00:00
PartialVolume
2f7979476b Update README.md readlink smartmontools 2020-03-24 22:41:44 +00:00
PartialVolume
c53a93ec9c Update README.md 2020-03-24 22:39:56 +00:00
PartialVolume
6943e35a33 Merge pull request #230 from PartialVolume/Get_device_bus_type_and_serial_number
Add serial number support for USB devices
2020-03-24 21:07:27 +00:00
PartialVolume
541a002a99 Add serial number support for USB devices
Add serial number support for USB devices for USB
to IDE/SATA adapters. Note this will only work
with USB IDE/SATA adapters that support ATA pass
through. See #149 for further details of
supported devices.

This patch requires readlink and smartmontools (smartctl)
to be installed. If not installed the serial number for
supported USB hardware will be missing.

The device type, i.e USB or ATA is now shown on the selection
and wipe windows.
2020-03-24 21:01:05 +00:00
PartialVolume
c29185999e Update CHANGELOG.md - Fix system info - Debian Sid 2020-03-22 22:53:15 +00:00
PartialVolume
fc406d2346 Merge pull request #229 from PartialVolume/Check_for_dmidecode_in_sbin
Check for dmidecode in /sbin
2020-03-22 22:43:56 +00:00
PartialVolume
0c4493e11c Check for dmidecode in /sbin
In Debian Sid dmidecode is not found as /sbin is not
searched when nwipe only specifies 'dmidecode', so
if it fails then it will next try /sbin/dmidecode
which is where it's normally located if it's installed.

In ubuntu etc, the sudo environment is setup so /sbin
is automatically searched.
2020-03-22 22:34:50 +00:00
PartialVolume
acf296d25d Merge pull request #228 from PartialVolume/Fix_visual_syncing_annoyance
Make the [syncing] a bit easier on the eyes
2020-03-22 16:56:39 +00:00
PartialVolume
2738522bb8 Make the [syncing] a bit easier on the eyes
I don't know if it's just me, but I'm not keen on the
way the status line length changes every few seconds
depending on whether nwipe is syncing or not. So
while still retaining the syncing message I think
it looks better if when not syncing, [syncing] is
replaced with [-------]. This keeps the status line
length pretty much constant and I find it easier on
my eyes.
2020-03-22 16:33:41 +00:00
PartialVolume
34d86e9c19 Merge pull request #227 from PartialVolume/Fix_inaccurate_throughput_calculation
Fix throughput so it shows the average throughput
2020-03-22 10:41:39 +00:00
PartialVolume
8f10179120 Fix throughput so it shows the average throughput
Fix throughput so it shows the average throughput
calculated from the start of the wipe.

Because we currently use cached access to the disks
initially for a few seconds or minute the throughput looks high
as nwipes writes are cached in memory before being written to disc.

When we change to a non cached or nwipe buffered model the
throughput will reflect a throughput that is actual
disc throughput.

Using an averaged throughput means that when the wipe finishes it will show
a higher value than the previous calculation but this new calculation is the
actual averaged speed of the wipe and reflects a value that is closer to what
you would expect a given drive to exhibit.

For instance a 160GB WD1600AAJS using Dod-S, B+VL, using the old
calculation would finish with a throughput of 48MB/s, using the
new calculation it finishes with a throughput of 76MB/s. This was tested
over multiple wipes and multiple rounds and gave consistently similiar
results.

Throughput is not so accurate on small loop drives due to the fact the drive
is so small it fits within CPU memory so when reading back to verify your're
actually reading back from cache not the disk. Another reason I want to move
to non cached I/O and have nwipe manage buffering and size of block writes.
2020-03-22 10:37:03 +00:00
PartialVolume
2b225f5cb9 Merge pull request #225 from PartialVolume/Add_ETA_to_status_when_SIGUSR1_received
Add eta to status when sigusr1 received
2020-03-20 18:57:09 +00:00
PartialVolume
8d31f2cf4a Update CHANGELOG.md 2020-03-20 18:05:51 +00:00
PartialVolume
d59e0323de Add ETA to to status when nwipe is sent a SIGUSR1
If a sudo kill -s USR1 (Nwipe's PID) is issued
on the command line while nwipe is operating in
--nogui mode, ETA is now displayed along with
percentage completion, pass and round information.

Note! Because we rely upon cached I/O at the moment
the calculated ETA early in the wipe is very inaccurate
but becomes more accurate as CPU memory cache is filled.
2020-03-20 17:52:35 +00:00
PartialVolume
7ac7c80731 Update CHANGELOG.md - --nogui drive stats 2020-03-19 22:00:01 +00:00
PartialVolume
a1e6e3bd52 Merge pull request #224 from PartialVolume/fix_summary_duration_during_shutdown_in_middle_of_wipe
Fix incorrect summary duration during shutdown
2020-03-19 21:20:19 +00:00
PartialVolume
62a8e76205 Fix incorrect summary duration during shutdown
If the system is shutdown while nwipe is still
wiping, the duration calculation would be
incorrect. This patch fixes that problem, so for
instance if a UPS signals the system running nwipe to
shutdown, nwipe typically traps that signal and
exits in an orderly manner. The log summary
is generated showing the wipe was aborted and
the wipe duration shows a valid value i.e the
elapsed time since the start of the wipe.
2020-03-19 21:09:02 +00:00
PartialVolume
fbfcbf8d34 Merge pull request #223 from PartialVolume/create_nwipe_log_summary_table
Add a summary table to the log that shows each drives status
2020-03-18 23:57:01 +00:00
PartialVolume
6c99166b75 Add a summary table to the log that shows each drives status
Add a summary table to the log that shows each drives status
i.e. erased or failed, throughput, duration of wipe, model,
serial no etc. In particular it benefits those that wipe many
drives simultaneously in rack servers. At a glance any failed
drives can be seen without having to browse back through the
log. Especially useful in --nogui mode, but also useful in GUI
mode.
2020-03-18 23:42:44 +00:00
PartialVolume
a022fffacb Update README.md 2020-03-14 11:51:11 +00:00
PartialVolume
ec9a322683 Update README.md - changes to automation section 2020-03-14 09:00:29 +00:00
PartialVolume
e6dd32a74b Update README.md 2020-03-14 08:56:01 +00:00
PartialVolume
523351531c Update README.md 2020-03-14 08:54:04 +00:00
PartialVolume
1d83fd6f8f Merge pull request #221 from louib/version_badge
Adding version badge to README.
2020-03-14 07:04:22 +00:00
louib
74243d392d Adding version badge to README. 2020-03-13 21:35:04 -04:00
PartialVolume
06fe803eb1 Merge pull request #220 from PartialVolume/create_spinner
Add a spinner to the GUI for each drive
2020-03-13 23:49:55 +00:00
PartialVolume
298ee05b8c Merge branch 'master' into create_spinner 2020-03-13 23:48:56 +00:00
PartialVolume
4928eb094e Add a spinner to the GUI for each drive
Add a spinner to the GUI for each drive being wiped.
When nwipe is syncing the percentage completion pauses,
having a spinner gives a clear indication that the wipe
is still running. Each devices spinner disappears on completion
of a given devices wipe.
2020-03-13 23:43:32 +00:00
PartialVolume
9caceaa75d Update CHANGELOG.md 2020-03-13 18:06:20 +00:00
PartialVolume
75fce57ab4 Merge pull request #219 from PartialVolume/reduce_unneccesary_lines_in_log_while_retaining_info
Reduce unnecessary lines in log while retaining info
2020-03-13 17:51:32 +00:00
PartialVolume
e955725fc5 Style formatting 2020-03-13 17:48:20 +00:00
PartialVolume
1c1b25e1ae Keep nwipe_log notices succinct
1. Keep nwipe_log notices succinct and below 80 chars in length including
timestamp. This is especially relevant for 80x30 terminal use such
as ALT-F2 etc or Shredos without losing any information.

2. Add [SUCCESS] to blanked & verified messages to make them stand out for quicker checking.
2020-03-13 17:24:08 +00:00
PartialVolume
d4963092dd Update README.md 2020-03-13 08:42:39 +00:00
PartialVolume
1083207d49 Update README.md with automation script
This script will install all the necessary libraries and software to compiling nwipe, download the latest master version of nwipe and run it, all with a single command ./buildnwipe
2020-03-13 01:22:01 +00:00
PartialVolume
458a3d780f Update CHANGELOG.md, adding verbose option to 0.29
Add verbose option -v, --verbose
Only display thread cancellation info messages, excluding error
messages, only when verbose option is selected.

This helps to keep the log a bit cleaner especially when wiping many
drives simultaneously.
2020-03-12 13:03:09 +00:00
PartialVolume
08c9cbe9f1 Merge pull request #217 from PartialVolume/add_verbose_option
Add verbose option
2020-03-12 12:59:13 +00:00
PartialVolume
e9caad3bef Add verbose option
Add verbose option -v, --verbose
Only display thread cancellation info messages, excluding error
messages, only when verbose option is selected.

This helps to keep the log a bit cleaner especially when wiping many
drives simultaneously.
2020-03-12 12:55:10 +00:00
PartialVolume
50e7cfaa7b Merge pull request #216 from PartialVolume/master
Update CHANGELOG.md
2020-03-12 00:45:15 +00:00
PartialVolume
ea39f57afb Update CHANGELOG.md 2020-03-12 00:38:25 +00:00
PartialVolume
880823cc9b Merge pull request #215 from PartialVolume/add_auto_poweroff
Add auto poweroff, fix non working nowait option.
2020-03-12 00:05:20 +00:00
PartialVolume
7d3a3c5f1e format code style 2020-03-12 00:00:06 +00:00
PartialVolume
e33c1bb06d Add --autopoweroff option
Fix non working --nowait option.
Update version info to 0.29-release candidate
2020-03-11 23:44:11 +00:00
PartialVolume
50079a15f9 Merge pull request #211 from PartialVolume/Release_0.28
Release 0.28
v0.28
2020-03-11 16:48:48 +00:00
PartialVolume
cc82687cf3 Release 0.28 2020-03-11 16:44:13 +00:00
PartialVolume
82a867b569 Merge pull request #210 from martijnvanbrummelen/PartialVolume-fix_individual_throughput
Update CHANGELOG.md
2020-03-11 14:06:21 +00:00
PartialVolume
fee849b35e Update CHANGELOG.md 2020-03-11 14:03:16 +00:00
PartialVolume
09d9fc88fb Merge pull request #209 from PartialVolume/fix_individual_device_throughput
Fix individual device throughput.
2020-03-11 13:58:24 +00:00