#By Wan Nor Arifin @ chii-chan
*Mounting windows FAT/FAT32 partition
These lines are from my fstab file. There are two important part in the
files, the FAT/FAT32 mounting and USB drive mounting.
Take a look at this line:
/dev/hdb3
/mnt/windows
vfat defaults,uid=500,gid=500,umask=0022 0 0
#/dev/hdb3
This part is for the drive you want to mount. In my example, I mount a
harddisk (hd), secondary (b), 3rd partition (3). May be your windows
partition would be /dev/hda1 (a: primary, 1: 1st partition).
#/mnt/windows
I make a new directory (windows) under /mnt directory. This means
you'll mount the /dev/hdb3 into /mnt/windows.
#vfat
Specify the filesystem here. In this case "vfat" for mounting FAT/FAT32
partition.
#defaults,uid ...
Mounting options
#defaults
I just use default here, works well.
#uid=500,gid=500
The partition will be owned by this user with user id and group id 500.
May be your user/group id is different, but usually, if you're the only
user apart from root user, the user/group id is 500. This seems to be true for Redhat & Fedora so far. But check your id with 'id' command.
#umask=0022
Default permission for files on the mounted filesystem is 755 (rwx for
user, r-x for group, r-x for other). That means the user have
permission to read, write and execute files on the filesystem,
restricting access for others. Just simple math, 777 minus 755 = 022.
Then just add 0 infront of it to be 0022 for umask. However just
umask=022 would work just fine.
#Note if in mounting options part you omit uid=500,gid=500 part, and
just put there umask=000, anybody can do anything to the filesystem.
#0 0
Not important though... Setting for backup and check file system.