Created
June 11, 2018 04:35
-
-
Save proegssilb/363e0bcb3981247e46f7b89336074bc6 to your computer and use it in GitHub Desktop.
A quickie bash script I might need later...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for dev in /dev/sd[b-q]; do | |
[ -e "$dev" ] || continue | |
fdisk "$dev" <<EEOF | |
g | |
n | |
w | |
EEOF | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This partitions several disks with a brand new GPT partition table and a single partition taking up the entire disc. If you have 16 drives that all need to be partitioned...