#!/bin/bash MOUNT_POINT=$1 DEVICE=$(mount | grep "$MOUNT_POINT"| cut -d' ' -f1) umount "$DEVICE" fatsort "$DEVICE"