3 # Format all partitions on disk sda -- created by getdiskinfo
6 echo "This script will format all partitions on disk sda."
8 echo "IT WILL DESTROY ALL DATA ON DISK sda !!!!"
10 if [ ! -f noprompt ];then
11 echo -n "Are you sure you want to continue? yes/no: "
13 if [ x$a != xyes ] ; then
17 if [ ! -f badblocksnoprompt ];then
18 echo "Do you want to do a disk check for bad blocks?"
19 echo -n "It is recommended, but takes time. yes/no: "
21 if [ x$a = xyes ] ; then
27 # Format all partitions on disk /dev/sda -- created by getdiskinfo
28 echo "This script will format all partitions on disk /dev/sda."
29 echo "IT WILL DESTROY ALL DATA ON DISK /dev/sda !!!!"
30 echo "Formatting /dev/sda5 -- swap partition"
31 mkswap -U dbe43254-f760-4685-93f0-99f81549b085 /dev/sda5
32 echo "Formating /dev/sda1 -- ext3 partition"
33 mkfs.ext3 -v -j $check -U bbd25d01-3f39-43f1-9266-ca272fcce5c1 /dev/sda1
36 # Format all partitions on disk sdb -- created by getdiskinfo
39 echo "This script will format all partitions on disk sdb."
41 echo "IT WILL DESTROY ALL DATA ON DISK sdb !!!!"
43 if [ ! -f noprompt ];then
44 echo -n "Are you sure you want to continue? yes/no: "
46 if [ x$a != xyes ] ; then
50 if [ ! -f badblocksnoprompt ];then
51 echo "Do you want to do a disk check for bad blocks?"
52 echo -n "It is recommended, but takes time. yes/no: "
54 if [ x$a = xyes ] ; then
60 # Format all partitions on disk /dev/sdb -- created by getdiskinfo
61 echo "This script will format all partitions on disk /dev/sdb."
62 echo "IT WILL DESTROY ALL DATA ON DISK /dev/sdb !!!!"
63 echo "Formating /dev/sdb1 -- vfat partition"
64 mkfs.vfat $check -n sdb1fat -i 4AF1B654 /dev/sdb1
67 # Format all partitions on disk sdc -- created by getdiskinfo
70 echo "This script will format all partitions on disk sdc."
72 echo "IT WILL DESTROY ALL DATA ON DISK sdc !!!!"
74 if [ ! -f noprompt ];then
75 echo -n "Are you sure you want to continue? yes/no: "
77 if [ x$a != xyes ] ; then
81 if [ ! -f badblocksnoprompt ];then
82 echo "Do you want to do a disk check for bad blocks?"
83 echo -n "It is recommended, but takes time. yes/no: "
85 if [ x$a = xyes ] ; then
91 # Format all partitions on disk /dev/sdc -- created by getdiskinfo
92 echo "This script will format all partitions on disk /dev/sdc."
93 echo "IT WILL DESTROY ALL DATA ON DISK /dev/sdc !!!!"
94 echo "Formating /dev/sdc2 -- xfs partition"
95 mkfs.xfs -f $check -L sdc2_xfs /dev/sdc2
96 xfs_admin -U 2dbb53c3-8eaa-4558-9e1e-aa78fe5a3fe9 /dev/sdc2
99 # Format all partitions on disk sdd -- created by getdiskinfo
102 echo "This script will format all partitions on disk sdd."
104 echo "IT WILL DESTROY ALL DATA ON DISK sdd !!!!"
106 if [ ! -f noprompt ];then
107 echo -n "Are you sure you want to continue? yes/no: "
109 if [ x$a != xyes ] ; then
113 if [ ! -f badblocksnoprompt ];then
114 echo "Do you want to do a disk check for bad blocks?"
115 echo -n "It is recommended, but takes time. yes/no: "
117 if [ x$a = xyes ] ; then
123 # Format all partitions on disk /dev/sdd -- created by getdiskinfo
124 echo "This script will format all partitions on disk /dev/sdd."
125 echo "IT WILL DESTROY ALL DATA ON DISK /dev/sdd !!!!"
126 echo "Formating /dev/sdd1 -- reiser partition"
127 mkreiserfs -u 029b460c-28d3-4aac-9740-41e7eb6b48dd /dev/sdd1
130 # Format all partitions on disk sde -- created by getdiskinfo
133 echo "This script will format all partitions on disk sde."
135 echo "IT WILL DESTROY ALL DATA ON DISK sde !!!!"
137 if [ ! -f noprompt ];then
138 echo -n "Are you sure you want to continue? yes/no: "
140 if [ x$a != xyes ] ; then
144 if [ ! -f badblocksnoprompt ];then
145 echo "Do you want to do a disk check for bad blocks?"
146 echo -n "It is recommended, but takes time. yes/no: "
148 if [ x$a = xyes ] ; then
154 # Format all partitions on disk /dev/sde -- created by getdiskinfo
155 echo "This script will format all partitions on disk /dev/sde."
156 echo "IT WILL DESTROY ALL DATA ON DISK /dev/sde !!!!"
157 echo "Formating /dev/sde1 -- hfs partition"
158 mkfs.hfs $check -v sde1_hfs /dev/sde1
159 echo "Formating /dev/sde2 -- ntfs partition"
160 mkfs.ntfs $check -L sde2_ntfs /dev/sde2
163 # Format all partitions on disk sdf -- created by getdiskinfo
166 echo "This script will format all partitions on disk sdf."
168 echo "IT WILL DESTROY ALL DATA ON DISK sdf !!!!"
170 if [ ! -f noprompt ];then
171 echo -n "Are you sure you want to continue? yes/no: "
173 if [ x$a != xyes ] ; then
177 if [ ! -f badblocksnoprompt ];then
178 echo "Do you want to do a disk check for bad blocks?"
179 echo -n "It is recommended, but takes time. yes/no: "
181 if [ x$a = xyes ] ; then
187 # Format all partitions on disk /dev/sdf -- created by getdiskinfo
188 echo "This script will format all partitions on disk /dev/sdf."
189 echo "IT WILL DESTROY ALL DATA ON DISK /dev/sdf !!!!"
192 # Format all partitions on disk sdg -- created by getdiskinfo
195 echo "This script will format all partitions on disk sdg."
197 echo "IT WILL DESTROY ALL DATA ON DISK sdg !!!!"
199 if [ ! -f noprompt ];then
200 echo -n "Are you sure you want to continue? yes/no: "
202 if [ x$a != xyes ] ; then
206 if [ ! -f badblocksnoprompt ];then
207 echo "Do you want to do a disk check for bad blocks?"
208 echo -n "It is recommended, but takes time. yes/no: "
210 if [ x$a = xyes ] ; then
216 # Format all partitions on disk /dev/sdg -- created by getdiskinfo
217 echo "This script will format all partitions on disk /dev/sdg."
218 echo "IT WILL DESTROY ALL DATA ON DISK /dev/sdg !!!!"
221 # Format all partitions on disk sdh -- created by getdiskinfo
224 echo "This script will format all partitions on disk sdh."
226 echo "IT WILL DESTROY ALL DATA ON DISK sdh !!!!"
228 if [ ! -f noprompt ];then
229 echo -n "Are you sure you want to continue? yes/no: "
231 if [ x$a != xyes ] ; then
235 if [ ! -f badblocksnoprompt ];then
236 echo "Do you want to do a disk check for bad blocks?"
237 echo -n "It is recommended, but takes time. yes/no: "
239 if [ x$a = xyes ] ; then
245 # Format all partitions on disk /dev/sdh -- created by getdiskinfo
246 echo "This script will format all partitions on disk /dev/sdh."
247 echo "IT WILL DESTROY ALL DATA ON DISK /dev/sdh !!!!"
250 # Format all partitions on disk sdi -- created by getdiskinfo
253 echo "This script will format all partitions on disk sdi."
255 echo "IT WILL DESTROY ALL DATA ON DISK sdi !!!!"
257 if [ ! -f noprompt ];then
258 echo -n "Are you sure you want to continue? yes/no: "
260 if [ x$a != xyes ] ; then
264 if [ ! -f badblocksnoprompt ];then
265 echo "Do you want to do a disk check for bad blocks?"
266 echo -n "It is recommended, but takes time. yes/no: "
268 if [ x$a = xyes ] ; then
274 # Format all partitions on disk /dev/sdi -- created by getdiskinfo
275 echo "This script will format all partitions on disk /dev/sdi."
276 echo "IT WILL DESTROY ALL DATA ON DISK /dev/sdi !!!!"
279 # Format all partitions on disk sdj -- created by getdiskinfo
282 echo "This script will format all partitions on disk sdj."
284 echo "IT WILL DESTROY ALL DATA ON DISK sdj !!!!"
286 if [ ! -f noprompt ];then
287 echo -n "Are you sure you want to continue? yes/no: "
289 if [ x$a != xyes ] ; then
293 if [ ! -f badblocksnoprompt ];then
294 echo "Do you want to do a disk check for bad blocks?"
295 echo -n "It is recommended, but takes time. yes/no: "
297 if [ x$a = xyes ] ; then
303 # Format all partitions on disk /dev/sdj -- created by getdiskinfo
304 echo "This script will format all partitions on disk /dev/sdj."
305 echo "IT WILL DESTROY ALL DATA ON DISK /dev/sdj !!!!"
308 # Format all partitions on VG datavg -- created by getdiskinfo
311 echo "This script will format all LVs on VG datavg."
313 echo "IT WILL DESTROY ALL DATA ON DISK datavg !!!!"
315 if [ ! -f noprompt ];then
316 echo -n "Are you sure you want to continue? yes/no: "
318 if [ x$a != xyes ] ; then
322 if [ ! -f badblocksnoprompt ];then
323 echo "Do you want to do a disk check for bad blocks?"
324 echo -n "It is recommended, but takes time. yes/no: "
326 if [ x$a = xyes ] ; then
334 echo "Formating /dev/mapper/datavg-datalv -- ext3 partition"
335 mkfs.ext3 -v -j $check -U e2af2f6e-e1b2-4fe9-87d6-41f5d6edec94 /dev/mapper/datavg-datalv