Forum Home
Press F1
 
Thread ID: 71648 2006-08-12 05:26:00 Linux - Any way to mount a Vfat partition as anything other than root? personthingy (1670) Press F1
Post ID Timestamp Content User
477948 2006-08-12 05:26:00 Current set up has this line in fstab:



/dev/hdb3 /stuff vfat defaults,noatime 1 1


I'm told vfat (fat32) has no capability of storing such details as file ownership, so of course the entire thing is seen as property of root, is there anyway at all to make it say
owner = root
group = users
or something that is able to be read and written to by all users?

i'm using vfat as this is a dual boot machine, so i have to use something that can be seen by windows users as well.
personthingy (1670)
477949 2006-08-12 05:35:00 fstab options (www.tuxfiles.org)
You need the option "user" don't you, to allow non-root users to mount i.e. you want to not use "defaults" as this has nouser set.

For FAT you can also use the option uid=n, gid=n (where n is the user id and group id as a number )..
gibler (49)
477950 2006-08-12 05:49:00 Just use this in fstab:


/dev/hdb3 /stuff vfat auto,umask=000,user 0 0
Jen (38)
477951 2006-08-12 05:55:00 So instead of:


/dev/hdb3 /stuff vfat defaults,noatime 1 1


should i have:


/dev/hdb3 /stuff vfat noatime user uid=0 gid=100 1 1

where 0=root, and 100=users?


OK, i just saw Jens post, i'll try that first.. it seems the right size :p
personthingy (1670)
477952 2006-08-12 06:05:00 Make sure you change the final two columns to 0 0 as well. Seeing as it is a vfat partition you do not want linux doing a dump and fsck on it (and no, I am not being rude, those are proper linux terms :rolleyes: ) Jen (38)
477953 2006-08-12 06:23:00 Jen,
That was brilliant, works better than i could have asked for..

What i have now is the ability to write anything in the fat32 partition, but only root can make changes once its there.........

Perfect :)
personthingy (1670)
477954 2006-08-12 06:30:00 Anyone should also be able to make changes as well eg, create and delete folders and files. Jen (38)
477955 2006-08-12 06:45:00 your right... don't no what i did to think i couldn't :p me personthingy (1670)
477956 2006-08-25 22:30:00 Make sure you change the final two columns to 0 0 as well. Seeing as it is a vfat partition you do not want linux doing a dump and fsck on it (and no, I am not being rude, those are proper linux terms :rolleyes: )At risk of sounding rude...........

What is "dump and fsck" and exactly how does the "0 0" relate to these doings?
personthingy (1670)
477957 2006-08-25 23:07:00 man dump
man fsck

dump is a ext2/ext3 filesystem backup - therefore not much use on a Windows filesystem. By putting a 0 in the 5th column of fstab it tells dump to ignore this partition.

fsck is a Linux filesystem checker. For when good things go bad :eek: . If you turn off the computer at the wall while it is still running, you will see fsck running during next bootup to check the integrity of the filesystem. It will occasionally check a Linux filesytem during bootup after X amount of mounts since it was last checked. Again, not terribly useful on a Windows filesystem. The fstab 6th column number indicates whether it is to skip that partition (set as 0) or the number indicates what order the fsck is to check the partitions in.

:)
Jen (38)
1