Does anyone have a more comprehensive /etc/auto.disks script for autofs that takes into consideration all mounted disks, even NTFS, FAT32? So all that's needed to mount any attached drive is ls /mnt/sda1 or ls /mnt/sdb2?

This guide along the line of what I'm looking for, except this guy only accesses ext3 drives.


Here's what I came up with:

[ -b /dev/${key} ] && {
        fstype=`sudo blkid -s TYPE "/dev/$key" -o value`
        echo "$opts :/dev/${key}";

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.