Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
fstab mounting question
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
xtlosx
Apprentice
Apprentice


Joined: 14 Jan 2006
Posts: 219
Location: Chicago

PostPosted: Tue Mar 14, 2006 6:29 pm    Post subject: fstab mounting question Reply with quote

hey guys, i have an extra drive that is normally mounted at /mnt/200gig .

it is mounted in my fstab now, and i want it to be read\write to users on my machine, since mainly i'm the only one on the machine really anyways.. for now the entry in fstab is this

Code:

/dev/hdb1               /mnt/200gig     ext2            auto,user,rw    0 0


what else would i need to do to make this work properly.. because.. i'm having a problem in samba.. where a windows computer can't write to the drive... and i believe it is directly related to this problem... in samba they're added to the list of r\w users and what not, just doesn't seem to be working... but that's another story :) any help with this issue would be terrific!! Thanks folks!
Back to top
View user's profile Send private message
dmartinsca
Guru
Guru


Joined: 09 Dec 2005
Posts: 303
Location: Ontario, Canada

PostPosted: Tue Mar 14, 2006 6:36 pm    Post subject: Reply with quote

You probably need to change the permissions on /mnt/200gig when the drive is mounted.
chmod +rwx /mnt/200gig will let everyone access the drive. If there are already files on the drive then chances are some of them have different permissions. You can add the -R option to chmod to recusively change permissions on all the files. Be careful with this, of course!

The user and users options for the mount command mean that a user/all users can mount and unmount the partition but not necessarily that they can read and write to it.


Last edited by dmartinsca on Tue Mar 14, 2006 6:42 pm; edited 1 time in total
Back to top
View user's profile Send private message
xtlosx
Apprentice
Apprentice


Joined: 14 Jan 2006
Posts: 219
Location: Chicago

PostPosted: Tue Mar 14, 2006 6:38 pm    Post subject: Reply with quote

well i'm pretty sure there are other ways, thanks for your suggestion, but i'll see what the group says... :) i'm pretty sure there's something that needs to be added to the fstab to tell it which users can read\write fully.. or something im sure. thanks!
Back to top
View user's profile Send private message
dmartinsca
Guru
Guru


Joined: 09 Dec 2005
Posts: 303
Location: Ontario, Canada

PostPosted: Tue Mar 14, 2006 6:47 pm    Post subject: Reply with quote

you may be thinking of the umask=xxx option which doesn't apply to ext2
Back to top
View user's profile Send private message
xtlosx
Apprentice
Apprentice


Joined: 14 Jan 2006
Posts: 219
Location: Chicago

PostPosted: Tue Mar 14, 2006 7:22 pm    Post subject: Reply with quote

ok... so i wonder what would be the best way to do this then.
Back to top
View user's profile Send private message
Raptor911
Tux's lil' helper
Tux's lil' helper


Joined: 04 Feb 2003
Posts: 82
Location: California, USA

PostPosted: Tue Mar 14, 2006 7:33 pm    Post subject: Reply with quote

most likely you are not using ACL (access control lists) so there is no way to add write access for samba to your drive

so the easy/best way is
chmod +rw -R /mnt/200gig
as dmartinsca sugested

Also, make shure in your /etc/samba/smb.conf file you have
writeable = yes
in the block that defines the share in question
Back to top
View user's profile Send private message
Raptor911
Tux's lil' helper
Tux's lil' helper


Joined: 04 Feb 2003
Posts: 82
Location: California, USA

PostPosted: Tue Mar 14, 2006 7:35 pm    Post subject: Reply with quote

also, if you are the only one that uses your computer, you dont have to worrie about scurity anyway, so ACL's would be worthless
Back to top
View user's profile Send private message
xtlosx
Apprentice
Apprentice


Joined: 14 Jan 2006
Posts: 219
Location: Chicago

PostPosted: Tue Mar 14, 2006 7:37 pm    Post subject: Reply with quote

i tried that command, it went through fine..... i added the writeable line in my smb.conf , restarted samba and what not... umounted the drive\remounted... and a system user still gets permission denied... hmmm anyother ideas?

question, can i change this filesystem from ext2 to ext3 now, without having to wipe the drive and begin over again?
Back to top
View user's profile Send private message
Raptor911
Tux's lil' helper
Tux's lil' helper


Joined: 04 Feb 2003
Posts: 82
Location: California, USA

PostPosted: Tue Mar 14, 2006 7:50 pm    Post subject: Reply with quote

i dont know about converting it but ext3 will not help you with samba
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Tue Mar 14, 2006 7:53 pm    Post subject: Reply with quote

Moved from Installing Gentoo to Duplicate Threads.
Moved in favour of https://forums.gentoo.org/viewtopic-t-178267-highlight-fstab+extra.html
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads 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