#!/bin/bash # Partition the drive /dev/sdc. # Read from standard input provide the options we want. # n adds a new partition. # p specifies the primary partition type. # the following blank line accepts the default partition number. # the following blank line accepts the default start sector. # the following blank line accepts the default final sector. # p prints the partition table. # w writes the changes and exits. sudo fdisk /dev/sdc <