Mounting FAT32 Partitions with Full User Permission in Ubuntu

Wednesday, June 24, 2009

Mounting FAT32 Partitions with Full User Permission in Ubuntu

As you already know, I am now using Ubuntu instead of Windows... and the journey till now was almost smooth... you come across a problem, you ask a question... it will have been already answered :)

I had been having issue with my Windows FAT32 partitions... I will open a file in OpenOffice, I can't edit the file... can't save the file to that partition... was problem with the way I mounted the partition... NTFS partitions support linux permissions, not FAT32.

I asked for it, got the answer...

sudo mount -t vfat /dev/sda11 /drive-i -o auto,user,sync,exec,uid=1000,gid=1000,dmask=027,fmask=137

- vfat : File System
- /dev/sda11 : The partition to be mounted
- /drive-i : The mount point
- uid : uid associated with my username
- gid : gid associated with my username
- dmask : Directory mask for permissions (027 = 750 / drwxr-x--- in chmod)
- fmask : File mask for permissions (137 = 640 / -rw-r----- in chmod)

Set the dmask and fmask to suite your needs, if you want execute permission of files, set fmask = 037.

The entry in fstab will look like this...
/dev/sda11 /drive-i vfat auto,user,sync,exec,uid=1000,gid=1000,dmask=027,fmask=137 0  0

This will mount the partition as user, not root.

Source: Definitive Guide to fstab in Ubuntu

Happy Ubuntu :)

See also... » Yahoo Messenger! in Ubuntu

» Backup Ubuntu Applications - Tutorial

» Upgraded to Jaunty Jackalope

» Ubuntu Crashed Twice

» Sharing Firefox Profile across Windows and Ubuntu

ATOzTOA : Latest Headlines


moncler vests said...

this really is frequently a fabulous method to acquire a really different ring which have been made just for the requirements.

Post a Comment