Skip to content

Instantly share code, notes, and snippets.

View guydou's full-sized avatar

Guy Doulberg guydou

View GitHub Profile
@guydou
guydou / autopart.sh
Last active June 5, 2017 07:56 — forked from trentmswanson/autopart.sh
Linux bash script to partition and format all data disks in azure
#!/bin/bash
# An set of disks to ignore from partitioning and formatting
BLACKLIST="/dev/sda|/dev/sdb"
# Base directory to hold the data* files
DATA_BASE="/media"
usage() {
echo "Usage: $(basename $0) <new disk>"
}