epcim
8/23/2016 - 9:43 PM

partition disk fdisk onliner

partition disk fdisk onliner

echo -e "o\nn\np\n1\n\n\nw" | fdisk /dev/sdb && mkfs.ext4 /dev/sdb1

# http://superuser.com/questions/332252/creating-and-formating-a-partition-using-a-bash-script