diskutil/README.md

25 lines
689 B
Markdown
Raw Normal View History

# DiskUtil
2021-12-31 06:32:24 +00:00
A simple program for various commonly used disk utilities
## Requirements
- go compiler
2021-12-31 07:19:03 +00:00
## Build
`make build`
2021-12-31 06:32:24 +00:00
## 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`