Skip to content

Instantly share code, notes, and snippets.

View pbering's full-sized avatar

Per Bering pbering

View GitHub Profile
@pbering
pbering / autopart.sh
Created July 27, 2016 12:49 — 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>"
}