1 2 3 4 5
#!/bin/sh for i in $(grep -v ^# /etc/fstab 2>/dev/null|awk '{ print $2 }');do printf Unmounting $i umount $i done