2 dd if=working/diskinfo/mbr.sdi of=/dev/sdi
6 # Format all partitions on disk /dev/sdi -- created by getdiskinfo
9 echo "This script will format all partitions on disk /dev/sdi."
11 echo "IT WILL DESTROY ALL DATA ON DISK /dev/sdi !!!!"
13 if [ ! -f noprompt ];then
14 echo -n "Are you sure you want to continue? yes/no: "
16 if [ x$a != xyes ] ; then
20 if [ ! -f badblocksnoprompt ];then
21 echo "Do you want to do a disk check for bad blocks?"
22 echo -n "It is recommended, but takes time. yes/no: "
24 if [ x$a = xyes ] ; then
34 # Format all partitions on disk sdj1 -- created by getdiskinfo
37 echo "This script will format all partitions on disk sdj1."
39 echo "IT WILL DESTROY ALL DATA ON DISK sdj1 !!!!"
41 echo -n "Are you sure you want to continue? yes/no: "
43 if [ x$a != xyes ] ; then
46 if [ ! -f badblocksnoprompt ];then
47 echo "Do you want to do a disk check for bad blocks?"
48 echo -n "It is recommended, but takes time. yes/no: "
50 if [ x$a = xyes ] ; then
58 # Format all partitions on disk sdh1 -- created by getdiskinfo
61 echo "This script will format all partitions on disk sdh1."
63 echo "IT WILL DESTROY ALL DATA ON DISK sdh1 !!!!"
65 echo -n "Are you sure you want to continue? yes/no: "
67 if [ x$a != xyes ] ; then
70 if [ ! -f badblocksnoprompt ];then
71 echo "Do you want to do a disk check for bad blocks?"
72 echo -n "It is recommended, but takes time. yes/no: "
74 if [ x$a = xyes ] ; then
82 # Format all partitions on disk sdg1 -- created by getdiskinfo
85 echo "This script will format all partitions on disk sdg1."
87 echo "IT WILL DESTROY ALL DATA ON DISK sdg1 !!!!"
89 echo -n "Are you sure you want to continue? yes/no: "
91 if [ x$a != xyes ] ; then
94 if [ ! -f badblocksnoprompt ];then
95 echo "Do you want to do a disk check for bad blocks?"
96 echo -n "It is recommended, but takes time. yes/no: "
98 if [ x$a = xyes ] ; then