mounting a drive so all users can see it
I need help mounting a drive so that all users can read it. I have got it mounted before but only root can see the files. I am dual booting linux and windows xp so the drive I am tring to mount is my NTFS windows drive. I only want to be able to read the files because I have heard of some of the write problems with NTFS and linux. as I said I have got it mounted but when I go into my GUI and click where it is mounted it says I don't have permission to access these files. But when I go into the terminal as root I can type ls and see the files. I need full user access!
|
Please post your fstab file;)
Peace V:cool: |
open up your fstab filein a editor (as root)
Code:
pico /etc/fstab Assuming that your windows drive is named hda1 Code:
/dev/hda1 /windows/C ntfs noauto,ro,users,gid=users,umask=0002,nls=utf8 0 0 That should do it :) |
Thanks antiloaded it worked oh and by the way can anyone tell me what each option does?
|
try "man fstab"---or any of many good introductory books
Also try experimenting: use mkdir to set up a directory, mount something there and then play with permissions, etc. Recognize the above as smokescreen cuz I dont know specific answer?? |
Basically, Windows filesystems don't understand Unix style permissions, so the VFS layer in the kernel grafts permissions on to files in Windows partitions. The uid and gid parameters tell which user and group respectively should own the files. The umask determines which permissions are given to other users. Starting from a base of all permissions granted, the umask tells which permissions should then be denied. A umask of 0002 says that only write permissions from "others" should be denied. Please read the man page for chmod and umask for a more thorough description of how this all works.
|
All times are GMT -5. The time now is 08:45 PM. |