Metadata-Version: 2.4
Name: disk-wiper
Version: 1.0.5
Summary: Disk wipe tool for home-server preparation
Author: Casa Eureka
License: AGPL-3.0-or-later
Requires-Python: >=3.13
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# disk-wiper

Standalone disk wiping utility for preparing storage devices in home server environments.

## Purpose

Completely wipes storage devices to prepare for use:
- Removes all partitions
- Clears filesystem signatures
- Removes LVM/RAID/ZFS metadata
- Verifies devices are clean

## Features

- Auto-detects non-USB disks (interactive mode)
- Shows detailed device information
- Double confirmation before wiping
- USB device protection (prevents accidental wipe of boot drive)
- Complete cleanup (partitions + filesystem signatures + metadata)
- Verification after wipe

## Usage

```bash
# Interactive: auto-detect and wipe all non-USB disks
sudo disk-wiper

# Wipe specific devices
sudo disk-wiper /dev/sda
sudo disk-wiper /dev/sda /dev/sdb
```

## Requirements

- Must run as root
- Python 3.10+
- System utilities: wipefs, sgdisk, lsblk, blkid, dd, blockdev, partprobe

## Installation

### Via Nix

```bash
nix profile install github:casaeureka/disk-wiper
disk-wiper --version
```

### Standalone

```bash
# Install dependencies first
bash install-dependencies.sh

# Run directly
sudo python3 disk_wiper.py
```

## Safety Features

- Refuses to wipe USB devices by default (likely your boot drive)
- Requires typing "WIPE ALL DATA" to confirm
- Requires additional "YES" confirmation
- Shows device details before wiping
- Override available for USB devices (requires explicit confirmation)

## License

GPLv3 - See [LICENSE](LICENSE)
