Commit Graph

391 Commits

Author SHA1 Message Date
PartialVolume
8430befdc3 Update README.md 2020-03-27 00:19:16 +00:00
PartialVolume
dc692735ce Update README.md 2020-03-27 00:16:57 +00:00
PartialVolume
4e4c37dd4a Update CHANGELOG.md 2020-03-26 20:36:18 +00:00
PartialVolume
ac0fe876a1 Merge pull request #237 from PartialVolume/Correct_disk_capacity_nomenclature
Fix incorrect disk capacity nomenclature.
2020-03-26 20:09:51 +00:00
PartialVolume
e46e80277d Fix incorrect disk capacity nomenclature.
I've always wondered, when you first view
all the drives, why drives above 999GB appeared
in their GB nomenclature instead of TB. For
instance a 2TB drive would appear as 2000GB.
Unlike other places in nwipe that does a proper
job of describing capacity just this one location
in the program was wrong.

This information was obtained by a call to a function
in libparted. Maybe when libparted was written there
was no such thing as a TByte drive ?? Who knows, so
anyway it was far easier to use nwipes build in function
called 'determine_C_B_nomenclature()' This provides us
with the correct nomenclature that is a fixed number of
digits (three) and prefixed with spaces so the length
is always the same. In the GUI this gives a nice
list when viewing multiple drives that appears in neat
columns.
2020-03-26 19:41:07 +00:00
PartialVolume
ac9757dfe7 Merge pull request #236 from PartialVolume/Fix_search_for_dmidecode
Fix search method for dmidecode
2020-03-25 23:08:07 +00:00
PartialVolume
7af0dd57c7 Fix search method for dmidecode 2020-03-25 22:58:51 +00:00
PartialVolume
14d5178013 Merge pull request #235 from PartialVolume/smartctl_directory_search-2
Fix the way I look for smartctl & readlink
2020-03-25 22:31:25 +00:00
PartialVolume
2446db741f Fix the way I look for smartctl & readlink 2020-03-25 22:26:43 +00:00
PartialVolume
081051c25f Merge pull request #234 from PartialVolume/smartctl_directory_search-1
fix smartctl directory search
2020-03-25 18:27:22 +00:00
PartialVolume
055b90d4c7 fix smartctl directory search 2020-03-25 18:20:06 +00:00
PartialVolume
9789c4748f Merge pull request #233 from PartialVolume/Check_directories_for_smartmontools_and_readlink
Search extra directories for smartctl & readlink
2020-03-25 17:41:18 +00:00
PartialVolume
a2f70661b8 Search extra directories for smartctl & readlink
This is mainly required for Debian sid if using
su instead of su - to run nwipe.
2020-03-25 17:35:14 +00:00
PartialVolume
bb0019fe40 Merge pull request #232 from PartialVolume/tidy_smartctl_and_readlink_warning_messages
Tidy the smartctl & readlink warning messages
2020-03-25 15:07:41 +00:00
PartialVolume
186ec9172c Tidy the smartctl & readlink warning messages 2020-03-25 15:02:40 +00:00
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