News : LinuxSolved.com Linux Help Community Forum..
#!/bin/bashlabel[1]="C"label[2]="D"label[3]="E"label[4]="F"label[5]="G"label[6]="H"label[7]="I"label[8]="J"label[9]="K"label[10]="L"fdisk -l | grep Win95 | grep -v Extended | grep -v "Ext'd" | cut -f 1 -d" " > /tmp/scriptdumpecho "Checking FAT partitions...."i="1"suffix=""found="false"working="true"while read devicedo if [ $working = "true" ] then echo "#The Partition Found by Script" >> /etc/fstab echo -e "Found Windows FAT partition(s). \nMounting them ..." working="false" fi found="true" echo "$device /mnt/${label[$i]}$suffix"" vfat defaults 0 0" >> /etc/fstab mkdir /mnt/${label[$i]}$suffix"" done < /tmp/scriptdump if [ $found = "true" ] then echo "# Partition mounted by script" >> /etc/fstab mount -a -t vfat echo -e "\nSuccessfully mounted Windows partitions"else echo -e "\nNo Windows (FAT) partitions found\n"firm -f /tmp/scriptdump