Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Auto mount for normal user?
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
missyvortex
Tux's lil' helper
Tux's lil' helper


Joined: 16 Feb 2004
Posts: 127

PostPosted: Sun Oct 03, 2004 1:56 pm    Post subject: Auto mount for normal user? Reply with quote

Hi

I want gentoo to automaticaly mount my econd harddrive which i set as /mnt/mp3
at moment it gives access denied when first trying to view it through a broswer, but is fine if i use terminal to umount and mount it again (its already mounted but won't let me see it even though i don't have to su to umount/mount it)

does anyone know why i might be getting this problem

my fstab has the following entry for it

Code:

/dev/hdb1               /mnt/mp3        vfat            users,noatime,rw       $
0 0


i particularly need to solve this since i have shared bookmarks and other files on that
drive as its fat32 and the only way to share things between linux and windows xp

also i'm not sure if its caused by a problem i have with fstab where if i go to end of line to type in the 0 0 it appears on the other line rather than along the line i type on and this comes up as errors on fstab line at boot time but i forgot what the 0 0 was for in fstab (just that a friend mentionned needing them for some setting when i setup gentoo) and cant put them in anyway
Back to top
View user's profile Send private message
hecatomb
Guru
Guru


Joined: 02 Sep 2004
Posts: 525

PostPosted: Sun Oct 03, 2004 4:28 pm    Post subject: Reply with quote

Code:
/dev/hdb1    /mnt/mp3    vfat    users,noatime,rw    0 0


This line should do it. No idea what '$' is for!!
Should be in one line.
Back to top
View user's profile Send private message
missyvortex
Tux's lil' helper
Tux's lil' helper


Joined: 16 Feb 2004
Posts: 127

PostPosted: Sun Oct 03, 2004 4:40 pm    Post subject: Reply with quote

well i managed to change them to be on same line but only is i copied them to single line in text editor and pasted over to nano - and if the line was too long it put them on next, whereas if it all fit and then i space them out properly it would let them go to the rest of line.

the $ indicates continuation of line - if you move cursor along to $ the $ moves to begginning of line and you see rest of the lines text.
Back to top
View user's profile Send private message
hecatomb
Guru
Guru


Joined: 02 Sep 2004
Posts: 525

PostPosted: Sun Oct 03, 2004 5:07 pm    Post subject: Reply with quote

Well, is the mount problem solved now?
Back to top
View user's profile Send private message
missyvortex
Tux's lil' helper
Tux's lil' helper


Joined: 16 Feb 2004
Posts: 127

PostPosted: Sun Oct 03, 2004 5:17 pm    Post subject: Reply with quote

i cant tell til i reboot and not able to right now but i will post up when i find out
Back to top
View user's profile Send private message
missyvortex
Tux's lil' helper
Tux's lil' helper


Joined: 16 Feb 2004
Posts: 127

PostPosted: Mon Oct 04, 2004 10:19 am    Post subject: Reply with quote

didn't fix it. mnt/winxp cant beaccessed unless i'm root and the mnt/mp3 with my shared things still needs me to umount/mount before firefox can access my bookmarks.

i guess its the permission i need to sort otu since its already mounted when it starts but neither me nor the applications can access it until i mount it myself.
Back to top
View user's profile Send private message
hecatomb
Guru
Guru


Joined: 02 Sep 2004
Posts: 525

PostPosted: Mon Oct 04, 2004 12:18 pm    Post subject: Reply with quote

What's about the options? users,noatime,rw

IMHO the option is user and not users. This option allows normal users to mount it.
noatime disables the update to the atime information associated with the file when reading it. Why do you want this?

defaults is in most cases a good start:

Quote:
defaults - Uses the default options that are rw, suid, dev, exec, auto, nouser, and async.


Add the user option and you have this:

Code:
/dev/hdb1    /mnt/mp3    vfat    defaults,user    0 0


Possible that this doesn't help with your problem. But having correct options is a good step!


/mnt/mp3 is a directory and world-read-writable?

Code:
ls -ld /mnt/mp3
Back to top
View user's profile Send private message
alechiko
Guru
Guru


Joined: 01 Feb 2004
Posts: 465
Location: Inside piano, do not disturb.

PostPosted: Mon Oct 04, 2004 8:53 pm    Post subject: It could be a permissions issue.. Reply with quote

Try this:

Code:
/dev/hdb1    /mnt/mp3    vfat    rw,user,auto,noatime,umask=000    0 0


akiru
_________________
None
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