View previous topic :: View next topic |
Author |
Message |
missyvortex Tux's lil' helper
Joined: 16 Feb 2004 Posts: 127
|
Posted: Sun Oct 03, 2004 1:56 pm Post subject: Auto mount for normal user? |
|
|
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 |
|
|
hecatomb Guru
Joined: 02 Sep 2004 Posts: 525
|
Posted: Sun Oct 03, 2004 4:28 pm Post subject: |
|
|
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 |
|
|
missyvortex Tux's lil' helper
Joined: 16 Feb 2004 Posts: 127
|
Posted: Sun Oct 03, 2004 4:40 pm Post subject: |
|
|
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 |
|
|
hecatomb Guru
Joined: 02 Sep 2004 Posts: 525
|
Posted: Sun Oct 03, 2004 5:07 pm Post subject: |
|
|
Well, is the mount problem solved now? |
|
Back to top |
|
|
missyvortex Tux's lil' helper
Joined: 16 Feb 2004 Posts: 127
|
Posted: Sun Oct 03, 2004 5:17 pm Post subject: |
|
|
i cant tell til i reboot and not able to right now but i will post up when i find out |
|
Back to top |
|
|
missyvortex Tux's lil' helper
Joined: 16 Feb 2004 Posts: 127
|
Posted: Mon Oct 04, 2004 10:19 am Post subject: |
|
|
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 |
|
|
hecatomb Guru
Joined: 02 Sep 2004 Posts: 525
|
Posted: Mon Oct 04, 2004 12:18 pm Post subject: |
|
|
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?
|
|
Back to top |
|
|
alechiko Guru
Joined: 01 Feb 2004 Posts: 465 Location: Inside piano, do not disturb.
|
Posted: Mon Oct 04, 2004 8:53 pm Post subject: It could be a permissions issue.. |
|
|
Try this:
Code: | /dev/hdb1 /mnt/mp3 vfat rw,user,auto,noatime,umask=000 0 0 |
akiru _________________ None |
|
Back to top |
|
|
|