shell script to create an image and perform initial examination on a drive