Go to file
2021-12-31 02:27:50 -05:00
.gitignore Updated clone.go to support file not found on target 2021-12-31 02:13:31 -05:00
clone.go Improved notifications 2021-12-31 02:17:42 -05:00
go.mod Initial commit 2021-12-31 01:32:24 -05:00
LICENSE.md Initial commit 2021-12-31 01:32:24 -05:00
main.go Initial commit 2021-12-31 01:32:24 -05:00
Makefile Initial commit 2021-12-31 01:32:24 -05:00
README.md Updated version 2021-12-31 02:27:50 -05:00
wipe.go Improved notifications 2021-12-31 02:17:42 -05:00

DiskUtil

A simple program for various commonly used disk utilities

Requirements

  • go compiler (only tested on go1.17)

Build

make build

Install

mv diskutil /usr/local/bin/

Commands

wipe [-bs int] [-dod enable/disable] target

-bs defaults to 1024
-dod: defaults to disabled
      This feature will saturate a volume with random data 5 times before
      overriding with 0's.  Default behavior will just write 0's to the volume

clone [-bs int] source target

-bs defaults to 1024

sample usage

`diskutil wipe /dev/sda`
`diskutil wipe -dod=enabled /dev/sda`
`diskutil clone my_cool_iso.iso /dev/sdb`
`diskutil clone -bs=4096 my_cool_iso.iso /dev/sdb`