Commit Graph

454 Commits

Author SHA1 Message Date
PartialVolume
0df4678fbc Update README.md - fix broken link 2020-05-29 12:06:25 +01:00
PartialVolume
18e542bad7 Update README.md 2020-04-26 18:50:25 +01:00
PartialVolume
24d294cf6f Merge pull request #273 from PartialVolume/Update_example_gif
Update the example gif
2020-04-26 17:42:20 +00:00
PartialVolume
08c2b54a3f Update the example gif
Update the example gif and add some explanatory text
to README.md
2020-04-26 18:35:54 +01:00
PartialVolume
8d8e2e3191 Merge pull request #272 from PartialVolume/Fix_nwipes_behaviour_if_S_key_repeats
Fix nwipes behaviour with repeated S key
2020-04-24 22:11:02 +00:00
PartialVolume
86f01f0b36 Fix nwipes behaviour with repeated S key
Prior to this patch if S key held down keyboard would
be unresponsive for x seconds.
Where x = number of S keystrokes x 3.

Now keys are delayed for no longer than 3 seconds
while warning message is displayed, long enough for
the user to read the warning message.
2020-04-24 23:03:59 +01:00
PartialVolume
0e92a9ddee Merge pull request #271 from PartialVolume/Fix_memory_leak
Fix memory leak
2020-04-23 21:53:59 +00:00
PartialVolume
33690b9e37 Fix memory leak
Detected by cppcheck
2020-04-23 22:47:50 +01:00
PartialVolume
b29ca4c29e Update README.md 2020-04-20 21:46:25 +01:00
PartialVolume
cf3c6f148b Update README.md no downloads data in api 2020-04-19 23:40:46 +01:00
PartialVolume
65d6ab45b6 Update README.md install of download badges 2020-04-19 23:33:30 +01:00
PartialVolume
d76868617a Update CHANGELOG.md 2020-04-17 23:45:47 +01:00
PartialVolume
bd59f5ac98 Merge pull request #270 from PartialVolume/Fix_fatal_errors_reported_on_ctrl_C
Fix_error_reporting_on_ctrl_C before wipe starts
2020-04-17 23:35:45 +01:00
PartialVolume
af30da3cc2 Fix_error_reporting_on_ctrl_C before wipe starts
If you do a ctrl c to exit nwipe before you have
even started a wipe, it will be reported in the logs
that there are fatal or non fatal errors. This is
incorrect as no wipe has even been started.

This error is only relevant to when using ctrl c
before a wipe has started and not after a wipe has
started.

Basically the variables that hold the errors are
in an indeterminate state before wiping begins and
in the case of a user abort we mistakenly checked
those values and reported. They should only be used
after a thread has completed or failed when their
values are then valid.

Now if you exit nwipe before any wiping started
there are no fatal/non fatal errors reported.
2020-04-17 23:31:00 +01:00
PartialVolume
4cc8a34bbc Merge pull request #267 from PartialVolume/Add_ctrl_a_toggle_for_drive_selection
Add ctrl a to select/deselect wipe for ALL drives.
2020-04-17 15:17:02 +01:00
PartialVolume
b3def7c336 Add ctrl a to select/deselect wipe, all drives.
To select or deselect all drives for wiping you can
now type ctrl a.

Useful for users that are wiping many drives
simultaneously.
2020-04-17 15:13:07 +01:00
PartialVolume
dc012e46b2 Update README.md 2020-04-17 07:07:49 +01:00
PartialVolume
88e2adf6a2 Merge pull request #265 from PartialVolume/No_drives_selected_warning
Warn user if no drives are selected, when attempting to start a wipe
2020-04-16 20:13:08 +01:00
PartialVolume
ddb0ca8c35 Warn user about no drives selected
If a user attempts to start a wipe but hasn't yet
selected any drives for wiping, a warning message
will now appear for a few seconds suggesting
they select a drive.

Prior to this patch, if you tried to start a wipe
without selecting a drive, nwipe would immediately
display a message saying the wipe was complete
and press enter to exit. You had no choice but to
exit and restart nwipe.
2020-04-16 20:06:33 +01:00
PartialVolume
b185818732 Update README.md 2020-04-16 14:19:07 +01:00
PartialVolume
1335455d7e Update README.md 2020-04-16 13:14:01 +01:00
PartialVolume
cf75391b93 Update README.md
Make it clear right at the start of the readme, that the latest version of nwipe is available as a bootable USB flash image
2020-04-16 13:12:16 +01:00
PartialVolume
082a4e53d6 Merge pull request #263 from PartialVolume/Warn_user_if_the_press_lower_case_s
Warn user if they press 's' instead of 'S'
2020-04-15 22:26:32 +01:00
PartialVolume
a4d5164602 Warn user if they press 's' instead of 'S'
I have come across a new user that couldn't start a wipe, until it was
pointed out that to start a wipe you needed to type shift S. While this
is often true, shift S doesn't start a wipe if you have caps lock on. To
be precise you need to type a capital S. Confusing to a new user because
if they have been told to type shift S but their caps lock is on, then
nothing happens. Also how would you know you are supposed to type a
capital S when the key info puts all keys in caps.

The fix for this is to trap the lower case s and then print a message on
the status line that says "Use capital S to start a wipe". This message
could remain on the status line for 3 seconds then revert back to the
standard key info.

The use of capital S is to try to reduce the likelihood of an accidental
wipe you didn't mean to start, however, I've always thought that maybe
we should have a 'are you sure ?' after the user types 'S' .
A non issue once you're familiar with nwipe but probably irritating to
a new user.
2020-04-15 22:01:56 +01:00
PartialVolume
7d93a44f18 Update README.md with revised shredos info 2020-04-14 13:06:18 +01:00
PartialVolume
52df4390f7 Merge pull request #259 from PartialVolume/Fix_minor_error_in_disc_block_size_pertains_to_log_display_only
Fix minor error in reporting block size in log
2020-04-08 22:28:34 +01:00
PartialVolume
92a6a76c51 Fix minor error in reporting block size in log
Fix a minor error in the reporting of the
discs total number of blocks. This only
affects reporting to the log file and
does not affect the programs operation.
2020-04-08 22:24:09 +01:00
PartialVolume
68ef665b2d Merge pull request #258 from PartialVolume/Remove_unnecssary_ATA_that_prefixes_some_model_numbers
Remove redundant ATA prefix from the model number.
2020-04-08 17:10:07 +01:00
PartialVolume
fcd35ea910 Remove redundant ATA prefix from the model number.
We already determine the bus type,
ATA, USB, NVME, VIRT (loop) etc
and display the bus type on the GUI.
libparted prefixes the model number
with ATA which we don't need, especially
as we try to keep the drive display length
to a maximum of 80 characters.
2020-04-08 17:05:06 +01:00
PartialVolume
5aded13bf7 Merge pull request #257 from PartialVolume/Summary_table_FAILED_should_take_precedence_over_UABORTED
Fix summary table message precedence
2020-04-08 11:14:56 +01:00
PartialVolume
5cd00da2a6 Fix summary table message precedence
Previously if a drive failed during
a multiple drive wipe and the user
decided to abort nwipe to say remove
the drive and start over, the user would
use CONTROl-C to abort. This would be
reflected in the summary table as ALL drives
having been aborted including the drive that
failed. It makes more sense for a failed drive
to be marked as failed in the summary table
even though the user aborted the wipe.

This patch fixes that, so that if a drive failed
it reflects that drives status in the summary
even if the user aborts the wipe.
2020-04-08 10:59:09 +01:00
PartialVolume
3ee514c395 Merge pull request #255 from martijnvanbrummelen/Update-README.md-with-latest-ShredOS-details
Update README.md with latest ShredOS details
2020-04-05 18:58:08 +01:00
PartialVolume
fe93c77e22 Update README.md with latest ShredOS details
Recompiled ShredOS with support for Smartmontools, C++ V7.x support. Nwipe in this version of ShredOS, now supports the display of serial numbers for USB bridges that have chipsets that support ATA pass through functionality.
2020-04-05 18:49:35 +01:00
PartialVolume
d3ac79bb0e Update README.md update img link 2020-04-02 23:15:50 +01:00
PartialVolume
2322c690a4 Merge pull request #252 from martijnvanbrummelen/PartialVolume-patch-1
Update README.md Add link to nwipe bootable master
2020-04-02 18:51:49 +01:00
PartialVolume
243d8a5e81 Update README.md Add link to nwipe bootable master 2020-04-02 18:48:17 +01:00
PartialVolume
4596c5f06d Merge pull request #251 from martijnvanbrummelen/PartialVolume-patch-1
Update README.md ShredOS download with nwipe master
2020-04-02 18:39:54 +01:00
PartialVolume
e91721d06b Update README.md ShredOS download with nwipe master
Build of ShredOS and download link with the latest nwipe master.
2020-04-02 18:14:31 +01:00
PartialVolume
2a6d6e10df Update CHANGELOG.md spelling mistake 2020-04-02 04:43:38 +01:00
PartialVolume
73b6b2ef6d Merge pull request #249 from PartialVolume/Fix_--nousb_missing_a_USB_drive
Fix --nousb missing a drive
2020-04-01 21:35:15 +01:00
PartialVolume
0488138c43 Fix --nousb missing a drive
If a USB device generated a particular error
code from smartmontools, the --nousb option
incorrectly did not exclude it from the
enumerated drives.

This has now been corrected.
2020-04-01 21:29:08 +01:00
PartialVolume
57eeab2292 Update CHANGELOG.md Fixed obscure segfault 2020-04-01 20:22:07 +01:00
PartialVolume
c3756e0f53 Merge pull request #248 from PartialVolume/Fix_segfault_when_scrolling_drive_selection_window
Fix obscure segfault when resizing terminal
2020-04-01 20:00:26 +01:00
PartialVolume
d140feb94b Fix obscure segfault when resizing terminal
This was a very obscure segmentation fault I
stumbled across while testing the drive
selection window. I confirmed it exists
in all versions at least going back prior
to 0.24 and maybe a lot earlier.

It was a very tricky bug to track down as you
had to do some very specific things to cause it to
occur. Probably most people would not have seen
it, however for those that did, this was what you
needed to do to trigger it.

1. First you had to be wiping more than one drive.

2. Then you needed to scroll down to the bottom
drive in the list.

3. You then needed to minimise the vertical height
of the terminal so you could no longer see the
selected drive.

4. Then you needed to expand the vertical height
of the terminal. This last step would trigger a
segmentation fault and crash nwipe.

So, the theory. nwipe uses four variables to
allow you to scroll through multiple displayed
drives. These four variables are:

count = the number of enumerated drives.

slots = the number of available horizontal lines
        to display the drives. The number of slots
        varies depending upon vertical resizing
        of the terminal. So slots is calculated
        in real time.

focus = which drive the GUI '>' pointer is pointing to.

offset = A value between 0 and slots that describes
         what drives are displayed in the available
         slots.

offset is then used along with i in a for loop to index
the drive contexts. This is where the segfault
occurred.

The calculation failed to take correct account of a varying
number of slots so in the condition described above the
offset would create an index that was out of bounds.

So first I fixed the miss calculation and second I placed
an if statement that acts as a bounds checker so if
ever this code is changed by someone in the future and
they break the calculation the bounds checker 'if' statement
will log the details of the error and prevent a segfault which
is far easier to debug.
2020-04-01 19:50:04 +01:00
PartialVolume
62beaca8ac Merge pull request #247 from PartialVolume/Add_NVME_to_bus_types_and_make_bus_types_4_digits
Add NVME & VIRT to device types.
2020-03-31 15:20:06 +01:00
PartialVolume
497fcb73b5 Add NVME & VIRT to device types.
Added NVME and VIRT to device type table.

VIRT are virtual devices such as loop devices
created with losetup.

NVME for solid state storage devices.

Due to the longer device names used for NVME, I will
need to do some work on the device name in the selection
window so column alignment is maintained.
2020-03-31 15:14:41 +01:00
PartialVolume
00085b403e Merge pull request #246 from PartialVolume/Add_Green_Red_color_to_SUCCESS_FAILURE_messages
Visually enhance failure messages
2020-03-30 22:19:41 +01:00
PartialVolume
fea6facadc Visually enhance failure messages
When a drive fails display the failure message
with red text on a white background.

This makes it more visually obvious a drive
failure has occurred.
2020-03-30 22:02:54 +01:00
PartialVolume
186bd9e03b Update CHANGELOG.md 2020-03-30 20:42:47 +01:00
PartialVolume
f5db72a983 Merge pull request #244 from PartialVolume/Use_nomenclature_function
Use nwipe's nomenclature function
2020-03-30 16:20:13 +01:00