. ./unmount-all
#
#  Format all partitions on disk sda -- created by getdiskinfo
#
echo ""
echo "This script will format all partitions on disk sda."
echo ""
echo "IT WILL DESTROY ALL DATA ON DISK sda !!!!"
echo ""
if [ ! -f noprompt ];then
echo -n "Are you sure you want to continue? yes/no: "
read a
if [ x$a != xyes ] ; then
   exit 1
fi 
fi
if [ ! -f badblocksnoprompt ];then
echo "Do you want to do a disk check for bad blocks?"
echo -n "It is recommended, but takes time. yes/no: "
read a
if [ x$a = xyes ] ; then
  check="-c"
else
   check=
fi
fi
# Format all partitions on disk /dev/sda -- created by getdiskinfo
echo "This script will format all partitions on disk /dev/sda."
echo "IT WILL DESTROY ALL DATA ON DISK /dev/sda !!!!"
echo "Formatting /dev/sda5 -- swap partition"
mkswap -U dbe43254-f760-4685-93f0-99f81549b085 /dev/sda5
echo "Formating /dev/sda1 -- ext3 partition"
mkfs.ext3 -v -j $check -U bbd25d01-3f39-43f1-9266-ca272fcce5c1 /dev/sda1
. ./unmount-all
#
#  Format all partitions on disk sdb -- created by getdiskinfo
#
echo ""
echo "This script will format all partitions on disk sdb."
echo ""
echo "IT WILL DESTROY ALL DATA ON DISK sdb !!!!"
echo ""
if [ ! -f noprompt ];then
echo -n "Are you sure you want to continue? yes/no: "
read a
if [ x$a != xyes ] ; then
   exit 1
fi 
fi
if [ ! -f badblocksnoprompt ];then
echo "Do you want to do a disk check for bad blocks?"
echo -n "It is recommended, but takes time. yes/no: "
read a
if [ x$a = xyes ] ; then
  check="-c"
else
   check=
fi
fi
# Format all partitions on disk /dev/sdb -- created by getdiskinfo
echo "This script will format all partitions on disk /dev/sdb."
echo "IT WILL DESTROY ALL DATA ON DISK /dev/sdb !!!!"
echo "Formating /dev/sdb1 -- vfat partition"
mkfs.vfat $check -n sdb1fat -i 4AF1B654 /dev/sdb1
. ./unmount-all
#
#  Format all partitions on disk sdc -- created by getdiskinfo
#
echo ""
echo "This script will format all partitions on disk sdc."
echo ""
echo "IT WILL DESTROY ALL DATA ON DISK sdc !!!!"
echo ""
if [ ! -f noprompt ];then
echo -n "Are you sure you want to continue? yes/no: "
read a
if [ x$a != xyes ] ; then
   exit 1
fi 
fi
if [ ! -f badblocksnoprompt ];then
echo "Do you want to do a disk check for bad blocks?"
echo -n "It is recommended, but takes time. yes/no: "
read a
if [ x$a = xyes ] ; then
  check="-c"
else
   check=
fi
fi
# Format all partitions on disk /dev/sdc -- created by getdiskinfo
echo "This script will format all partitions on disk /dev/sdc."
echo "IT WILL DESTROY ALL DATA ON DISK /dev/sdc !!!!"
echo "Formating /dev/sdc2 -- xfs partition"
mkfs.xfs -f $check -L sdc2_xfs /dev/sdc2
xfs_admin -U 2dbb53c3-8eaa-4558-9e1e-aa78fe5a3fe9 /dev/sdc2
. ./unmount-all
#
#  Format all partitions on disk sdd -- created by getdiskinfo
#
echo ""
echo "This script will format all partitions on disk sdd."
echo ""
echo "IT WILL DESTROY ALL DATA ON DISK sdd !!!!"
echo ""
if [ ! -f noprompt ];then
echo -n "Are you sure you want to continue? yes/no: "
read a
if [ x$a != xyes ] ; then
   exit 1
fi 
fi
if [ ! -f badblocksnoprompt ];then
echo "Do you want to do a disk check for bad blocks?"
echo -n "It is recommended, but takes time. yes/no: "
read a
if [ x$a = xyes ] ; then
  check="-c"
else
   check=
fi
fi
# Format all partitions on disk /dev/sdd -- created by getdiskinfo
echo "This script will format all partitions on disk /dev/sdd."
echo "IT WILL DESTROY ALL DATA ON DISK /dev/sdd !!!!"
echo "Formating /dev/sdd1 -- reiser partition"
mkreiserfs -u 029b460c-28d3-4aac-9740-41e7eb6b48dd /dev/sdd1
. ./unmount-all
#
#  Format all partitions on disk sde -- created by getdiskinfo
#
echo ""
echo "This script will format all partitions on disk sde."
echo ""
echo "IT WILL DESTROY ALL DATA ON DISK sde !!!!"
echo ""
if [ ! -f noprompt ];then
echo -n "Are you sure you want to continue? yes/no: "
read a
if [ x$a != xyes ] ; then
   exit 1
fi 
fi
if [ ! -f badblocksnoprompt ];then
echo "Do you want to do a disk check for bad blocks?"
echo -n "It is recommended, but takes time. yes/no: "
read a
if [ x$a = xyes ] ; then
  check="-c"
else
   check=
fi
fi
# Format all partitions on disk /dev/sde -- created by getdiskinfo
echo "This script will format all partitions on disk /dev/sde."
echo "IT WILL DESTROY ALL DATA ON DISK /dev/sde !!!!"
echo "Formating /dev/sde1 -- hfs partition"
mkfs.hfs $check -v sde1_hfs /dev/sde1
echo "Formating /dev/sde2 -- ntfs partition"
mkfs.ntfs $check -L sde2_ntfs /dev/sde2
. ./unmount-all
#
#  Format all partitions on disk sdf -- created by getdiskinfo
#
echo ""
echo "This script will format all partitions on disk sdf."
echo ""
echo "IT WILL DESTROY ALL DATA ON DISK sdf !!!!"
echo ""
if [ ! -f noprompt ];then
echo -n "Are you sure you want to continue? yes/no: "
read a
if [ x$a != xyes ] ; then
   exit 1
fi 
fi
if [ ! -f badblocksnoprompt ];then
echo "Do you want to do a disk check for bad blocks?"
echo -n "It is recommended, but takes time. yes/no: "
read a
if [ x$a = xyes ] ; then
  check="-c"
else
   check=
fi
fi
# Format all partitions on disk /dev/sdf -- created by getdiskinfo
echo "This script will format all partitions on disk /dev/sdf."
echo "IT WILL DESTROY ALL DATA ON DISK /dev/sdf !!!!"
. ./unmount-all
#
#  Format all partitions on disk sdg -- created by getdiskinfo
#
echo ""
echo "This script will format all partitions on disk sdg."
echo ""
echo "IT WILL DESTROY ALL DATA ON DISK sdg !!!!"
echo ""
if [ ! -f noprompt ];then
echo -n "Are you sure you want to continue? yes/no: "
read a
if [ x$a != xyes ] ; then
   exit 1
fi 
fi
if [ ! -f badblocksnoprompt ];then
echo "Do you want to do a disk check for bad blocks?"
echo -n "It is recommended, but takes time. yes/no: "
read a
if [ x$a = xyes ] ; then
  check="-c"
else
   check=
fi
fi
# Format all partitions on disk /dev/sdg -- created by getdiskinfo
echo "This script will format all partitions on disk /dev/sdg."
echo "IT WILL DESTROY ALL DATA ON DISK /dev/sdg !!!!"
. ./unmount-all
#
#  Format all partitions on disk sdh -- created by getdiskinfo
#
echo ""
echo "This script will format all partitions on disk sdh."
echo ""
echo "IT WILL DESTROY ALL DATA ON DISK sdh !!!!"
echo ""
if [ ! -f noprompt ];then
echo -n "Are you sure you want to continue? yes/no: "
read a
if [ x$a != xyes ] ; then
   exit 1
fi 
fi
if [ ! -f badblocksnoprompt ];then
echo "Do you want to do a disk check for bad blocks?"
echo -n "It is recommended, but takes time. yes/no: "
read a
if [ x$a = xyes ] ; then
  check="-c"
else
   check=
fi
fi
# Format all partitions on disk /dev/sdh -- created by getdiskinfo
echo "This script will format all partitions on disk /dev/sdh."
echo "IT WILL DESTROY ALL DATA ON DISK /dev/sdh !!!!"
. ./unmount-all
#
#  Format all partitions on disk sdi -- created by getdiskinfo
#
echo ""
echo "This script will format all partitions on disk sdi."
echo ""
echo "IT WILL DESTROY ALL DATA ON DISK sdi !!!!"
echo ""
if [ ! -f noprompt ];then
echo -n "Are you sure you want to continue? yes/no: "
read a
if [ x$a != xyes ] ; then
   exit 1
fi 
fi
if [ ! -f badblocksnoprompt ];then
echo "Do you want to do a disk check for bad blocks?"
echo -n "It is recommended, but takes time. yes/no: "
read a
if [ x$a = xyes ] ; then
  check="-c"
else
   check=
fi
fi
# Format all partitions on disk /dev/sdi -- created by getdiskinfo
echo "This script will format all partitions on disk /dev/sdi."
echo "IT WILL DESTROY ALL DATA ON DISK /dev/sdi !!!!"
. ./unmount-all
#
#  Format all partitions on disk sdj -- created by getdiskinfo
#
echo ""
echo "This script will format all partitions on disk sdj."
echo ""
echo "IT WILL DESTROY ALL DATA ON DISK sdj !!!!"
echo ""
if [ ! -f noprompt ];then
echo -n "Are you sure you want to continue? yes/no: "
read a
if [ x$a != xyes ] ; then
   exit 1
fi 
fi
if [ ! -f badblocksnoprompt ];then
echo "Do you want to do a disk check for bad blocks?"
echo -n "It is recommended, but takes time. yes/no: "
read a
if [ x$a = xyes ] ; then
  check="-c"
else
   check=
fi
fi
# Format all partitions on disk /dev/sdj -- created by getdiskinfo
echo "This script will format all partitions on disk /dev/sdj."
echo "IT WILL DESTROY ALL DATA ON DISK /dev/sdj !!!!"
#!/bin/sh
#
#  Format all partitions on VG datavg -- created by getdiskinfo
#
echo ""
echo "This script will format all LVs on VG datavg."
echo ""
echo "IT WILL DESTROY ALL DATA ON DISK datavg !!!!"
echo ""
if [ ! -f noprompt ];then
echo -n "Are you sure you want to continue? yes/no: "
read a
if [ x$a != xyes ] ; then
   exit 1
fi
fi
if [ ! -f badblocksnoprompt ];then
echo "Do you want to do a disk check for bad blocks?"
echo -n "It is recommended, but takes time. yes/no: "
read a
if [ x$a = xyes ] ; then
   check="-c"
else
   check=
fi
else
check=
fi
echo "Formating /dev/mapper/datavg-datalv -- ext3 partition"
mkfs.ext3 -v -j $check -U e2af2f6e-e1b2-4fe9-87d6-41f5d6edec94 /dev/mapper/datavg-datalv
echo ""
