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.

1 Answer 1


Here's what I came up with:

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .