Linux – Automount vfat (w95 fat32 LBA) on Centos

automountcentoslinuxmount

I'm trying to mount an USB flash drive formatted as w95 fat32 LBA (as reported by dmesg) under Centos. I can easily mount it using the mount command:

mount /dev/sdx1 /media/mydrive -t vfat

But it seems that the system (Centos 6.3) cannot mount it automatically. It mounts all the other filesystem types automatically. I also installed fuse-ntfs and it correctly mounts NTFS drives.
How can I enable automount for vfat partiotions too?
Thanks

Best Answer

Add this line to the end of /etc/fstab:

/dev/sdx1 /media/mydrive vfat default 0 0

and reboot:

sudo reboot -n

defaults means use default settings, equivalent to rw,suid,dev,exec,auto,nouser,async. Read more with man fstab.

Related Topic