This is a discussion on Auto mount user-writable vfat within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> I looked up how to made vfat writable by user, and about 2 minutes of googling turned up the ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| I looked up how to made vfat writable by user, and about 2 minutes of googling turned up the answer. But, as I'm on a project where I have to switch back and forth between Linux and The Windowing System Whose Name Shall Not Be Mentioned, and it was getting annoying having to mount my vfat partition by hand every time I booted. So I came up with this: if ! grep -q '/E' /etc/mtab ; then mount /E ; fi and plunked it in my .profile. :-) I've been a programmer since nineteen-mumble-mumble; I think I see the difference between "programming" and "scripting" - I can't imagine a "programming" language where you could write an expression like that without any parentheses! ;-) Cheers! Rich |
| |||
| On 2006-12-21, Rich Grise <rich@example.net> wrote: > I looked up how to made vfat writable by user, and about 2 minutes > of googling turned up the answer. But, as I'm on a project where I > have to switch back and forth between Linux and The Windowing System > Whose Name Shall Not Be Mentioned, and it was getting annoying having > to mount my vfat partition by hand every time I booted. So I came > up with this: > if ! grep -q '/E' /etc/mtab ; then mount /E ; fi > > and plunked it in my .profile. :-) > > I've been a programmer since nineteen-mumble-mumble; I think I see the > difference between "programming" and "scripting" - I can't imagine > a "programming" language where you could write an expression like > that without any parentheses! ;-) > > Cheers! > Rich man fstab -- All of a sudden, I want to THROW OVER my promising ACTING CAREER, grow a LONG BLACK BEARD and wear a BASEBALL HAT!! ... Although I don't know WHY!! http://www.websterscafe.com |
| ||||
| Rich Grise wrote: > I looked up how to made vfat writable by user, and about 2 minutes > of googling turned up the answer. But, as I'm on a project where I > have to switch back and forth between Linux and The Windowing System > Whose Name Shall Not Be Mentioned, and it was getting annoying having > to mount my vfat partition by hand every time I booted. So I came > up with this: > if ! grep -q '/E' /etc/mtab ; then mount /E ; fi > > and plunked it in my .profile. :-) I guess this has some relation to your other thread: "An Epiphany". If you want to mount a disk automatic just don't use "noauto" as a mount option. If you want write access for a user (or group of users) to the partition you don't have to mount it by that user. Just specify the proper uid, gid, dmask and fmask to be used and forget the "user" option that was mentioned on the site that google happened to find for you. The description of the "gid" option on that site is plain wrong anyway. It is not used to specify the users that are allowed to mount the partition, but to specify the group-ownership after mounting. Have a look at the mount and fstab manpages. > > I've been a programmer since nineteen-mumble-mumble; I think I see the > difference between "programming" and "scripting" - I can't imagine > a "programming" language where you could write an expression like > that without any parentheses! ;-) > > Cheers! > Rich > Regards, Kees. -- Kees Theunissen. |