All Projects → pgporada → autoshred

pgporada / autoshred

Licence: GPL-3.0 license
Shred wrapper

Programming Languages

shell
77523 projects
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to autoshred

shredos.x86 64
Shredos Disk Eraser 64 bit for all Intel 64 bit processors as well as processors from AMD and other vendors which make compatible 64 bit chips. ShredOS - Secure disk erasure/wipe
Stars: ✭ 383 (+1723.81%)
Mutual labels:  dban, nwipe
WinDirStat.Net
A WPF implementation of WinDirStat.
Stars: ✭ 55 (+161.9%)
Mutual labels:  drive
PUBG USB
这是 某宝 卖大几千的压枪源码,不做任何数据读取以及侵入,这里采用外数据采集(IMG), 至今可以使用,无视任何更新(新武器,以及新武器的压枪规则,需要自己调试,在data_config下);
Stars: ✭ 44 (+109.52%)
Mutual labels:  drive
Gcsf
a FUSE file system based on Google Drive
Stars: ✭ 2,251 (+10619.05%)
Mutual labels:  drive
URL-Magnet-Cloud-Uploader-Heroku
Aria 2 Rclone Remote URL /magnet Clouds upload via HEROKU
Stars: ✭ 99 (+371.43%)
Mutual labels:  drive
diffbot
DiffBot is an autonomous 2wd differential drive robot using ROS Noetic on a Raspberry Pi 4 B. With its SLAMTEC Lidar and the ROS Control hardware interface it's capable of navigating in an environment using the ROS Navigation stack and making use of SLAM algorithms to create maps of unknown environments.
Stars: ✭ 172 (+719.05%)
Mutual labels:  drive
Port-Able-Suite
🌐 Manager for portable applications
Stars: ✭ 35 (+66.67%)
Mutual labels:  drive
gdrive-index
An index server for Google Drive
Stars: ✭ 107 (+409.52%)
Mutual labels:  drive
Torrent-To-Google-Drive-Downloader
Simple notebook to stream torrent files to Google Drive using Google Colab and python3.
Stars: ✭ 256 (+1119.05%)
Mutual labels:  drive
Apps Script Samples
Apps Script samples for Google Workspace products.
Stars: ✭ 3,301 (+15619.05%)
Mutual labels:  drive
lethe
Secure drive wipe
Stars: ✭ 47 (+123.81%)
Mutual labels:  drive
webpack-plugin-ramdisk
🐏 A webpack plugin for blazing fast builds on a RAM disk / drive
Stars: ✭ 118 (+461.9%)
Mutual labels:  drive
cNVMe
An NVMe Device Simulation Library.
Stars: ✭ 41 (+95.24%)
Mutual labels:  drive
octo-drive
Turn your GitHub repository into encrypted filesystem (=
Stars: ✭ 24 (+14.29%)
Mutual labels:  drive
GdriveSearcherBot
Google Drive Searcher Bot Written In Python Using Pyrogram.
Stars: ✭ 57 (+171.43%)
Mutual labels:  drive
libDrive
libDrive is a Google Drive media library manager and indexer, similar to Plex, that organizes Google Drive media to offer an intuitive and user-friendly experience.
Stars: ✭ 14 (-33.33%)
Mutual labels:  drive
WD-Decrypte
Western Digital Decryption tools
Stars: ✭ 53 (+152.38%)
Mutual labels:  drive
stremio-gdrive
Stremio addon for fetching videos from your google drive.
Stars: ✭ 73 (+247.62%)
Mutual labels:  drive
UEHToR
UEHToR, #1 Torrent And File Leecher For Heroku, Based on Node.js. Simple to Install with full SEO Support
Stars: ✭ 28 (+33.33%)
Mutual labels:  drive
go-drive
A simple cloud drive mapping web app supports local, FTP/SFTP, S3, OneDrive, WebDAV, Google Drive.
Stars: ✭ 184 (+776.19%)
Mutual labels:  drive

PayPal donate button License

Overview: autoshred

Shred 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?


Usage

Installation

sudo apt update
sudo apt install -y git coreutils vim screen
git clone https://github.com/pgporada/autoshred && cd autoshred
mv autoshred.example.conf autoshred.conf
lsblk
# Configure your exclusion list to drives that should not be wiped
vim autoshred.conf

Starting the program on boot

sudo crontab -e
@reboot /usr/bin/screen -d -m /home/pi/autoshred/autoshred.sh -f

Displays some help

./autoshred -h

Destroy data

sudo ./autoshred -f

Verifying that autoshred is running

screen -ls
ps aux | grep shred

Development/Testing

The 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

vagrant up
vagrant ssh

Create a volume, mount it, and destroy it

vagrant@ubuntu-xenial:/vagrant$ sudo dd if=/dev/zero of=MyDrive.img bs=1M count=500
500+0 records in
500+0 records out
524288000 bytes (524 MB, 500 MiB) copied, 2.90638 s, 180 MB/s

vagrant@ubuntu-xenial:/vagrant$ sudo fdisk MyDrive.img

Welcome to fdisk (util-linux 2.27.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.

Device does not contain a recognized partition table.
Created a new DOS disklabel with disk identifier 0x5cb4896a.

Command (m for help): p
Disk MyDrive.img: 500 MiB, 524288000 bytes, 1024000 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x5cb4896a

Command (m for help): n
Partition type
   p   primary (0 primary, 0 extended, 4 free)
   e   extended (container for logical partitions)
   Select (default p): p
   Partition number (1-4, default 1): 1
   First sector (2048-1023999, default 2048):
   Last sector, +sectors or +size{K,M,G,T,P} (2048-1023999, default 1023999):

   Created a new partition 1 of type 'Linux' and of size 499 MiB.

   Command (m for help): w
   The partition table has been altered.
   Syncing disks.

vagrant@ubuntu-xenial:/vagrant$ sudo mkfs -t ext4 MyDrive.img
mke2fs 1.42.13 (17-May-2015)
Found a dos partition table in MyDrive.img
Proceed anyway? (y,n) y
Creating filesystem with 512000 1k blocks and 128016 inodes
Filesystem UUID: 48ea4ef2-6393-46e4-b35b-ddf06b27e6a4
Superblock backups stored on blocks:
8193, 24577, 40961, 57345, 73729, 204801, 221185, 401409

Allocating group tables: done
Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done

vagrant@ubuntu-xenial:/vagrant$ sudo mount -t ext4 MyDrive.img /media/test/

vagrant@ubuntu-xenial:/vagrant$ lsblk
NAME   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda      8:0    0   10G  0 disk
└─sda1   8:1    0   10G  0 part /
sdb      8:16   0   10M  0 disk
loop0    7:0    0  500M  0 loop /media/test

Thanks

Thank 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. 😄 🍻

Thanks to http://www.retrojunkie.com/asciiart/cartchar/turtles.htm for the Shredder ascii art.

(C) Phil Porada

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].