fixed fdisk command and added a short sleep to give the partition table time to resolve