LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   FSTAB entry for normal user to access windows partition (https://www.linuxquestions.org/questions/linux-software-2/fstab-entry-for-normal-user-to-access-windows-partition-140084/)

rmanocha 01-29-2004 03:54 PM

FSTAB entry for normal user to access windows partition
 
hey guys,
i am running slackware 9.1 on my machine...i have a NTFS windows partition.i want the normal user to be able to access this partition.my fstab entries look like this:
Code:

/dev/hdb2        /                reiserfs    defaults        1  1
/dev/cdrom      /mnt/cdrom      iso9660    noauto,owner,ro  0  0
/dev/fd0        /mnt/floppy      auto        noauto,owner    0  0
devpts          /dev/pts        devpts      gid=5,mode=620  0  0
proc            /proc            proc        defaults        0  0
/dev/hda1        /mnt/Windows    ntfs        noauto,owner,user,ro  0  2
/dev/hda6        /mnt/Knoppix    xfs        noauto,owner,user,rw  0  2

if you notice i have passed the user paramter to the windows partition...now a normal user can mount the partition but not access it...i can do mount /dev/hda1 as normal user and it works but then when i do cd /mnt/Windows it says access denied...now this is a real pain since i have all my music in that partition and i dont want to be copying it over everytime.
can someone point me to the right direction?
thanks

DrOzz 01-29-2004 04:05 PM

try just putting the options :
user, ro, umask=022
and see if you can mount and access it

rmanocha 01-29-2004 04:10 PM

that worked...thanks a ton...but i dont understand this...how come i can cd into my knoppix partition as normal user but not into the windows partition as normal user until adding umask=022(btw i removed owner from the windows line...hope that is ok).
what does umask mean any way?
newayz thanks again.

eeried 01-29-2004 04:30 PM

Hello, rmanocha,

I'd better give you this link: MOTUB

It's a rather long article but it's very helpful. it gives you sound advice on how to share a win partition permanently on a Linux platform and explains mask022 better than I would.

Permissions are a bit of a hassle i fond for newbies, but such useful options, aren't they,, but motub tells you all you need to know about fstab at first. her instructions works very well, from my own experience --being a newbie, and simply knowing about rwx and chmod.
I think you adapt certain instructions to your own case - distros are varied, as they should be -- but if you follow every step you can't go wrong -- even if what she calls the "dummy user" is not needed, you can always create it.

On my Linux (Libranet) "owner" is not used, but anyway "uid" replaces it.

There's a line about NTFS partitions (read-only, shouldn't write on it = ro)

PS: there shouldn't any space between the words, not even after the ,:
user, ro, umask=022 should be user,ro,umask=022

Have a good read!:Pengy:

Cheers,

DrOzz 01-29-2004 04:33 PM

i wasn't implying spaces i was just making it clear on what the options were that would probably work ... just like with any other list of things in an english sentence you type comma follow by space and then the next item ... and since eeried analyzed it to that point, hopefully you didn't too :p
and also since it did work for him, then he must have done it right ..


All times are GMT -5. The time now is 11:34 AM.