#!/bin/bash
mount > /tmp/mount_info
while read -r mnt_point
do
volume=`echo $mnt_entry|awk '{print $1}'`
point=`echo $mnt_entry|awk '{print $2}'`
mntType="`echo $mnt_entry| awk '{print $3}'`"
read -p "enter 1 to umount the $volume otherwise 2" ans
if [ $ans -eq 2 ] ...