Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
fstab rw setting doesnt work
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
TheCoop
Veteran
Veteran


Joined: 15 Jun 2002
Posts: 1814
Location: Where you least expect it

PostPosted: Wed Jul 03, 2002 7:48 pm    Post subject: fstab rw setting doesnt work Reply with quote

in my fstab file:

# Windows Partitions
/dev/hda1 /windows/programs vfat user,auto,rw,exec 0 0
/dev/hda5 /windows/games vfat user,auto,rw,exec 0 0
/dev/hdb1 /windows/work vfat user,auto,rw,exec 0 0

i can execute a file, but i cannot write to the disks even though the rw setting is set. what is going on here?
_________________
95% of all computer errors occur between chair and keyboard (TM)

"One World, One web, One program" - Microsoft Promo ad.
"Ein Volk, Ein Reich, Ein Führer" - Adolf Hitler

Change the world - move a rock
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 16090
Location: Colorado

PostPosted: Wed Jul 03, 2002 7:52 pm    Post subject: Reply with quote

Try a forum search using 'vfat' and 'writing'
_________________
lolgov. 'cause where we're going, you don't have civil liberties.

In Loving Memory
1787 - 2008
Back to top
View user's profile Send private message
leej
Apprentice
Apprentice


Joined: 18 May 2002
Posts: 280

PostPosted: Wed Jul 03, 2002 8:14 pm    Post subject: Re: fstab rw setting doesnt work Reply with quote

TheCoop wrote:
in my fstab file:

# Windows Partitions
/dev/hda1 /windows/programs vfat user,auto,rw,exec 0 0
/dev/hda5 /windows/games vfat user,auto,rw,exec 0 0
/dev/hdb1 /windows/work vfat user,auto,rw,exec 0 0

i can execute a file, but i cannot write to the disks even though the rw setting is set. what is going on here?


FAT based file systems have no group or user owner so you have to set it in fstab with the gid=xxx and uid=xxx. Eg.

Code:
/dev/hda1               /mnt/win        vfat            uid=1000,gid=100,rw     0 0


Where 1000 is my user id and 100 is the users group id.
Back to top
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Thu Jul 04, 2002 3:14 am    Post subject: Re: fstab rw setting doesnt work Reply with quote

leej wrote:
Where 1000 is my user id and 100 is the users group id.


Note that the filesystem driver also understands names in the uid and gid fields, just to make things more readable.
_________________
I don't believe in witty sigs.
Back to top
View user's profile Send private message
leej
Apprentice
Apprentice


Joined: 18 May 2002
Posts: 280

PostPosted: Thu Jul 04, 2002 9:17 am    Post subject: Re: fstab rw setting doesnt work Reply with quote

delta407 wrote:
leej wrote:
Where 1000 is my user id and 100 is the users group id.


Note that the filesystem driver also understands names in the uid and gid fields, just to make things more readable.


Really? ISTR wondering why on earth it didn't do that and apparently it did all along!! :lol:

Thanks for the tip :-)


Last edited by leej on Thu Jul 04, 2002 10:40 am; edited 1 time in total
Back to top
View user's profile Send private message
TheCoop
Veteran
Veteran


Joined: 15 Jun 2002
Posts: 1814
Location: Where you least expect it

PostPosted: Thu Jul 04, 2002 10:19 am    Post subject: Reply with quote

thanks, it works now 8)
_________________
95% of all computer errors occur between chair and keyboard (TM)

"One World, One web, One program" - Microsoft Promo ad.
"Ein Volk, Ein Reich, Ein Führer" - Adolf Hitler

Change the world - move a rock
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum