Unix Technical Forum

Auto mount user-writable vfat

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 ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-20-2008, 08:26 PM
Rich Grise
 
Posts: n/a
Default Auto mount user-writable vfat

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-20-2008, 08:26 PM
Handover Phist
 
Posts: n/a
Default Re: Auto mount user-writable vfat

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-20-2008, 08:26 PM
Kees Theunissen
 
Posts: n/a
Default Re: Auto mount user-writable vfat

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:25 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com