Here's a better way to do the probe, that mimics how Apple's
ntfs.util behaves:
Code:
function Probe() {
DEVICE="/dev/$2"
LABEL=`/usr/local/sbin/ntfslabel -n ${DEVICE}`
RESULT=$?
if [ $RESULT -ne 0 ]; then
# Reading the label failed, so it's not NTFS
exit -2 # FSUR_UNRECOGNIZED
else
# Reading label succeeded, so it's NTFS
echo -n "${LABEL}"
exit -1
fi
}
Run Apple's
ntfs.util on an unmounted, but present NTFS volume, and see how it's output acts. This mimics it exactly, and might perhaps get name detection down.