#!/bin/sh #DEVICE_LIST="" DEVICE_LIST="/dev/sdc /dev/sdd /dev/sde /dev/sdf /dev/sdg /dev/sdh" for DEVICE in $DEVICE_LIST do echo "+++++create partition for $DEVICE......" parted -s $DEVICE mklabel gpt mkpart gpt2t ext2 0% 100% PARTITION="$DEVICE""1" echo "+++++formatting $PARTITION......" mkfs.ext4 -T largefile $PARTITION done