{"id":15655444,"url":"https://github.com/pgporada/autoshred","last_synced_at":"2025-05-05T03:42:48.362Z","repository":{"id":149290405,"uuid":"42933744","full_name":"pgporada/autoshred","owner":"pgporada","description":"Shred wrapper","archived":false,"fork":false,"pushed_at":"2023-01-19T20:04:44.000Z","size":3888,"stargazers_count":24,"open_issues_count":1,"forks_count":9,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-05-05T03:42:40.824Z","etag":null,"topics":["data","dban","destruction","drive","harddrive","nwipe","shred"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pgporada.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-09-22T12:58:32.000Z","updated_at":"2024-12-19T13:55:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"2e5ea5b0-5f2c-4ca0-9ee8-8776f75ef7a4","html_url":"https://github.com/pgporada/autoshred","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgporada%2Fautoshred","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgporada%2Fautoshred/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgporada%2Fautoshred/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgporada%2Fautoshred/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pgporada","download_url":"https://codeload.github.com/pgporada/autoshred/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252436240,"owners_count":21747467,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["data","dban","destruction","drive","harddrive","nwipe","shred"],"created_at":"2024-10-03T12:59:15.159Z","updated_at":"2025-05-05T03:42:48.356Z","avatar_url":"https://github.com/pgporada.png","language":"Shell","funding_links":["https://paypal.me/pgporada"],"categories":[],"sub_categories":[],"readme":"\u003cspan class=\"badge-paypal\"\u003e\u003ca href=\"https://paypal.me/pgporada\" title=\"Donate to my project using Paypal\"\u003e\u003cimg src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /\u003e\u003c/a\u003e\u003c/span\u003e\n[![License](https://img.shields.io/badge/license-GPLv3-brightgreen.svg)](LICENSE)\n\n# Overview: autoshred\n[Shred](https://www.gnu.org/software/coreutils/manual/html_node/shred-invocation.html) wrapper script that will allow you to plug in external drives and automatically wipe the data. While shooting, smashing, and drilling harddrives is cool and fun, why not repurpose the drives?\n\n![](imgs/shred.jpeg)\n\n- - - -\n# Usage\n\nInstallation\n\n    sudo apt update\n    sudo apt install -y git coreutils vim screen\n    git clone https://github.com/pgporada/autoshred \u0026\u0026 cd autoshred\n    mv autoshred.example.conf autoshred.conf\n    lsblk\n    # Configure your exclusion list to drives that should not be wiped\n    vim autoshred.conf\n\nStarting the program on boot\n\n    sudo crontab -e\n    @reboot /usr/bin/screen -d -m /home/pi/autoshred/autoshred.sh -f\n\nDisplays some help\n\n    ./autoshred -h\n\nDestroy data\n\n    sudo ./autoshred -f\n\nVerifying that autoshred is running\n\n    screen -ls\n    ps aux | grep shred\n\n- - - -\n# Development/Testing\n\nThe average user shouldn't need to worry about this section. This will take you through the process of creating a vagrant and a garbage volume to test the script out\n\n    vagrant up\n    vagrant ssh\n\nCreate a volume, mount it, and destroy it\n\n```\nvagrant@ubuntu-xenial:/vagrant$ sudo dd if=/dev/zero of=MyDrive.img bs=1M count=500\n500+0 records in\n500+0 records out\n524288000 bytes (524 MB, 500 MiB) copied, 2.90638 s, 180 MB/s\n\nvagrant@ubuntu-xenial:/vagrant$ sudo fdisk MyDrive.img\n\nWelcome to fdisk (util-linux 2.27.1).\nChanges will remain in memory only, until you decide to write them.\nBe careful before using the write command.\n\nDevice does not contain a recognized partition table.\nCreated a new DOS disklabel with disk identifier 0x5cb4896a.\n\nCommand (m for help): p\nDisk MyDrive.img: 500 MiB, 524288000 bytes, 1024000 sectors\nUnits: sectors of 1 * 512 = 512 bytes\nSector size (logical/physical): 512 bytes / 512 bytes\nI/O size (minimum/optimal): 512 bytes / 512 bytes\nDisklabel type: dos\nDisk identifier: 0x5cb4896a\n\nCommand (m for help): n\nPartition type\n   p   primary (0 primary, 0 extended, 4 free)\n   e   extended (container for logical partitions)\n   Select (default p): p\n   Partition number (1-4, default 1): 1\n   First sector (2048-1023999, default 2048):\n   Last sector, +sectors or +size{K,M,G,T,P} (2048-1023999, default 1023999):\n\n   Created a new partition 1 of type 'Linux' and of size 499 MiB.\n\n   Command (m for help): w\n   The partition table has been altered.\n   Syncing disks.\n\nvagrant@ubuntu-xenial:/vagrant$ sudo mkfs -t ext4 MyDrive.img\nmke2fs 1.42.13 (17-May-2015)\nFound a dos partition table in MyDrive.img\nProceed anyway? (y,n) y\nCreating filesystem with 512000 1k blocks and 128016 inodes\nFilesystem UUID: 48ea4ef2-6393-46e4-b35b-ddf06b27e6a4\nSuperblock backups stored on blocks:\n8193, 24577, 40961, 57345, 73729, 204801, 221185, 401409\n\nAllocating group tables: done\nWriting inode tables: done\nCreating journal (8192 blocks): done\nWriting superblocks and filesystem accounting information: done\n\nvagrant@ubuntu-xenial:/vagrant$ sudo mount -t ext4 MyDrive.img /media/test/\n\nvagrant@ubuntu-xenial:/vagrant$ lsblk\nNAME   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT\nsda      8:0    0   10G  0 disk\n└─sda1   8:1    0   10G  0 part /\nsdb      8:16   0   10M  0 disk\nloop0    7:0    0  500M  0 loop /media/test\n```\n\n- - - -\n# Thanks\nThank you for using my software! If you find my code useful to you or your organization, please consider donating some beer money to me via the PayPal badge above. :smile: :beers:\n\nThanks to http://www.retrojunkie.com/asciiart/cartchar/turtles.htm for the Shredder ascii art.\n\n(C) [Phil Porada](https://philporada.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpgporada%2Fautoshred","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpgporada%2Fautoshred","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpgporada%2Fautoshred/lists"}