linux mount, fstab help

falconx80

Senior member
Jan 23, 2000
332
0
0
i am running linux redhat 7.2 kernel 2.4.17

my prob is that as a user i can't mount my windows(ntfs) disk, i have recompiled the kernel for ntfs support
and if i log in as root everything works perfectly.

i would like to mount /dev/hda1 to /mnt/windowsC as a regular user so i dont have to log in as root everytime.
so i did the following....
1) logged in as root
2) created a directory called windowsC in directory mnt (permissions are defaults...drwxr-xr-x 2 root root 4096 Feb 10 19:34 windowsC)
3) changed my fstab file with the following..../dev/hda1 /mnt/windowsC ntfs noauto,user,ro 0 0 (i tried defaults also, no luck)
4) logout as root
5) as a regular user i can do mount /mnt/windowsC (no errors)
6) if i do cd /mnt/windowsC then it gives me error saying that i dont have permission
7) turns out that directory /mnt/windowsC had changed permissions to r-x------, but other devices such as cdroom all have r-xr-xr-x after mounting.....

how do i get it so its the same as that of a cdrom...thanks
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
add 'uid=username' to the mount options, that will make username own the mounted directory.
 

falconx80

Senior member
Jan 23, 2000
332
0
0
ok i figured it out

you have to add this to your fstab

defaults,user,umask=000, rw 0 0


thanks anyway!!