Commit Graph

883 Commits

Author SHA1 Message Date
PartialVolume
00e2053ab4 Merge pull request #440 from PartialVolume/HPA_DCO
HPA_DCO_1 - Add HPA, DCO capability
2023-02-23 22:52:38 +00:00
PartialVolume
ef84c65846 HPA_DCO_1 - Add HPA, DCO capability
1. debugging.
2023-02-23 22:30:18 +00:00
PartialVolume
09af2bc5a6 HPA_DCO_1 - Add HPA, DCO capability
1. More debugging.
2023-02-23 21:44:08 +00:00
PartialVolume
2747ab5d4f HPA_DCO_1 - Add HPA, DCO capability
1. More corrections to hdparm command
2023-02-23 21:22:21 +00:00
PartialVolume
a2d6735b89 HPA_DCO_1 - Add HPA, DCO capability
1. Corrections to hdparm command.
2023-02-23 21:14:48 +00:00
PartialVolume
e4ecd6a68e HPA_DCO_1 - Add HPA, DCO capability
1. Initial commit
2023-02-23 20:46:19 +00:00
PartialVolume
6f7ca938f4 Merge pull request #439 from PartialVolume/PDFGen12
PDFGen12 - further work on PDF certificate
2023-02-23 12:50:18 +00:00
PartialVolume
ecfc252015 PDFGen12 - further work on PDF certificate
1. Add information regarding how many pass, sync
and verify errors, if any.
2023-02-23 12:31:41 +00:00
PartialVolume
40f1e31225 Merge pull request #438 from PartialVolume/PDFGen11
PDFGen11 - further work on PDF certificate
2023-02-22 16:28:42 +00:00
PartialVolume
3b952d3f92 PDFGen11 - further work on PDF certificate
1. Fix a bug in the static and random pass code
where I unnecessarily moved the decrement of z (the
count of bytes remaining) to after the periodic sync
which meant every time it sync'ed z wasn't decremented due
to r being used as a general results variable for the
fdatasync function.

I prefer to just have a variable be responsible for just
one thing hence my assumption r wasn't used for two different
things.

Changed the position of the decrement of z, pass_done and
round_done to their original position prior to the periodic
sync.
2023-02-22 11:56:22 +00:00
PartialVolume
09e41d573f Merge pull request #437 from PartialVolume/PDFGen10
PDFGen10 - further work on PDF certificate
2023-02-22 00:31:51 +00:00
PartialVolume
8b827f9ea0 PDFGen10 - further work on PDF certificate
1. Fix rounds reported on abort or fail.
2023-02-22 00:06:28 +00:00
PartialVolume
c57e04005e PDFGen10 - further work on PDF certificate
1. remove some unnecessary code related to bytes_erased.
2023-02-21 23:39:22 +00:00
PartialVolume
04c409a665 PDFGen10 - further work on PDF certificate
1. Fix percentage for bytes erased on certificate.
2023-02-21 22:59:09 +00:00
PartialVolume
c5f9c1d6e9 PDFGen10 - further work on PDF certificate
1. Added the red cross icon located on the top right of
the certificate. This is displayed when the wipe is aborted
or failed to complete due to disc I/O errors etc. The
green tick icon is displayed on a successful wipe.

2. When the user manually aborts the wipe, the bytes so
far erased incorrectly displayed as zero. This change updates the
c->bytes_erased variable in the static pass and random
pass functions to correct this.
2023-02-21 21:33:19 +00:00
PartialVolume
d9fed5bcc6 Merge pull request #436 from PartialVolume/PDFGen9
PDFGen9 - further work on PDF certificate
2023-02-21 12:09:43 +00:00
PartialVolume
84048ba58b PDFGen9 - further work on PDF certificate
1. Added rounds requested & completed. Coloured
green if equal and red if not.
2. Fixed endtime sometimes not being recorded when
a wipe is aborted. This affected the creation of the
PDF filename. Now ok.
3. Added throughput using the appropriate nomenclature
such as KB/sec MB/sec, GB/sec etc
2023-02-21 11:51:36 +00:00
PartialVolume
f0b61a0bc1 Merge pull request #435 from PartialVolume/PDFGen8
PDFGen8 - further work on PDF certificate
2023-02-21 00:48:42 +00:00
PartialVolume
eda930f06d PDFGen8 - further work on PDF certificate
1. Added bytes erased including percentage, green
if equal to disc size and red if the drive hasn't been
fully erased at least once.
2. Added explanation of bytes erased to certificate.
3. Added throughput
2023-02-21 00:35:52 +00:00
PartialVolume
2320015841 Merge pull request #434 from PartialVolume/PDFGen7
PDFGen7 - further work on PDF certificate
2023-02-18 23:14:28 +00:00
PartialVolume
581e83e615 PDFGen7 - further work on PDF certificate
1. Change model/serial no in header to bold and move left
2. Create a filename for the report that identifies the
wipe uniquely ie:
nwipe_report_YY-MM-DD_HH-MM-SS_Model_XXXX_Serial_XXXX.pdf
3. Move size data 2 characters right to allow for up to two
space prefix on size string. So data doesn't get written over
the end of the 'Size:' label.
2023-02-18 23:04:28 +00:00
PartialVolume
eef866fa54 Merge pull request #433 from PartialVolume/PDFGen6
PDFGen6 - further work on PDF certificate
2023-02-18 00:20:54 +00:00
PartialVolume
a29cc3b543 PDFGen6 - further work on PDF certificate
1. Fix @param in pdfgen.h, committed and accepted upstream
2. Added size of disk in bytes
3. When NVME drive show message "Not applicable" for HPA, DCO
4. Highlight status ERASED, FAILED etc with coloured ellipse
5. Added function help for nwipe_log (shows in hints in IDE)
2023-02-18 00:13:56 +00:00
PartialVolume
630837b207 Merge pull request #431 from PartialVolume/PDFGen5
PDFGen5 - further work on PDF certificate
2023-02-16 21:00:11 +00:00
PartialVolume
b5eb549c59 PDFGen5 - further work on PDF certificate
1. Rearranged the layout so the Tech/ID signature
is at the bottom of the report.
2. Added start date/time
3. Added end date/time
4. Changed data from helvetica to helvetica-bold
5. Created a definition for PDF_DARK_GREEN text in
create_pdf.h and moved the previously created PDF_GRAY
to create_pdf.h, to keep pdfgen.h vanilla.
6. Added the erasure status, ERASED, FAILED, ABORTED.
ERASED in green and FAILED, ABORTED in red.

Further code to follow ..
2023-02-16 20:49:41 +00:00
PartialVolume
142a140ddf Merge pull request #430 from PartialVolume/PDFGen4
PDFGen4 - further work on PDF certificate
2023-02-16 00:06:36 +00:00
PartialVolume
ac6f14d86d PDFGen4 - further work on PDF certificate
1. Display unknown in serial number field for loopback device
2. Added device type, USB, SATA, VIRT etc
3. Added duration of wipe in hh:mm:ss
4. Added pseudo random number generator type, twister, isaac etc
5. Added final blanking pass type, none, zeros, ones
6. Added number of rounds
2023-02-15 23:52:17 +00:00
PartialVolume
e7797bf874 Merge pull request #429 from PartialVolume/PDFGen3
PDFGen3 - further work on PDF certificate
2023-02-15 01:28:53 +00:00
PartialVolume
40fdaf49a3 Formatted text .. I need to auto run make format! 2023-02-15 01:25:10 +00:00
PartialVolume
0c0e3f2930 PDFGen3 - further work on PDF certificate
1. Changed most titles in certificate to gray with
the data in black.

Started adding real data to template including:
Model, serial no., method, verify, size.

more code to follow...
2023-02-15 01:15:36 +00:00
PartialVolume
d5286a1965 Merge pull request #428 from PartialVolume/PDFGen2
Further updates to the PDF Erasure Report code
2023-02-14 01:54:11 +00:00
PartialVolume
cb129ffbc2 As usual, forgot to run make format ! 2023-02-14 01:48:16 +00:00
PartialVolume
8c7b1839f4 Embed PDF header images, plus font
1. Embed the images contained in the PDF into nwipes code
rather than use external image files.
2. Changed the font from Times New Roman to Helvetica
to give it a cleaner look.
2023-02-14 01:42:27 +00:00
PartialVolume
ac26aad3ac Merge pull request #427 from PartialVolume/PDFGen
Create PDF Disk Erasure Report for each drive wiped (Initial code, more to come)
2023-02-13 23:24:55 +00:00
PartialVolume
b41a84f5af Update workflow.
clang-format-7 missing from latest ubuntu so
modified to clang-format
2023-02-13 23:00:19 +00:00
PartialVolume
ed478f6dc0 Create Disk Erasure Report PDF template
This commits code that creates a erasure report
pdf file. Further to will follow that populates
the template.
2023-02-13 22:38:30 +00:00
PartialVolume
602b835aef Merge pull request #424 from sporqist/patch-1
Add grml to distros that ship nwipe
2022-09-14 16:12:42 +01:00
Marius Alwan Meyer
c2ab19a109 Update README.md with additional nwipe distro grml
I was searching for a DBAN alternative that runs in a normal Linux distro so I can hot-swap drives and not hale to reboot the system. When I found nwipe, I went to install it in a grml live system. Turns out, nwipe ships with grml by default as you can see in [grml's dpkg.list](https://packages.grml.org/files/grml64-small_2021.07/dpkg.list).

It's not exactly the most up-to-date version (0.30-1+b2 for amd64) because grml is close to Debian stable. It even comes with the the small live system image.
2022-09-14 16:56:59 +02:00
PartialVolume
9feea8b3cf Merge pull request #423 from DimitriPapadopoulos/ubuntu-18.04
The `ubuntu-18.04` runner image is being deprecated
2022-09-14 15:10:26 +01:00
Dimitri Papadopoulos
1b6ba8e8a2 The ubuntu-18.04 runner image is being deprecated
https://github.com/actions/runner-images/issues/6002
2022-09-14 16:01:47 +02:00
PartialVolume
b6d5388759 Merge pull request #421 from DimitriPapadopoulos/actions
Update GitHub Actions
2022-09-14 01:12:05 +01:00
PartialVolume
24fd407b43 Merge pull request #420 from DimitriPapadopoulos/codespell
Typos found by codespell
2022-09-14 01:07:19 +01:00
Dimitri Papadopoulos
53b5c020e0 Update GitHub Actions 2022-09-13 13:27:57 +02:00
Dimitri Papadopoulos
87f4b48705 Typos found by codespell 2022-09-13 13:24:39 +02:00
Martijn van Brummelen
099d380f3c bump 0.34 v0.34 2022-07-08 13:18:18 +02:00
PartialVolume
f3ace2aa7c Merge pull request #417 from PartialVolume/Fix_zero_length_strings
Fixes a compiler warning -Wformat-zero-length string
2022-07-02 19:52:22 +01:00
PartialVolume
f6483ca055 Fixes a compiler warning -Wformat-zero-length string 2022-07-02 19:43:56 +01:00
PartialVolume
0a5dbeb5a4 Update README.md
Use Warning symbol markup
2022-05-29 17:01:45 +01:00
PartialVolume
cf57297953 Update README.md re HDA
Although reported in issues some time ago, make it clear nwipe doesn't support HDA and you will need to run hdparm in order to detect and if necessary correct the disks reported size prior to running nwipe.
2022-05-29 11:15:33 +01:00
PartialVolume
1d67d9e0d3 Merge pull request #411 from PartialVolume/Bump_to_0.33
Bump to v0.33
v0.33
2022-03-20 14:15:05 +00:00