Mounting NTFS for users other than root
Im having trouble getting Slackware to let normal user accounts access my NTFS partition. Root can access fine, but thats not incredibly practical for everyday usage since id be more or less opening files from my NTFS partition the whole time im using the computer.
Here is my fstab: Code:
/dev/hda2 / reiserfs defaults 1 1 Any ideas? |
I had a similar problem wit hmy fat32 partition. I changed my /etc/fstab to
Code:
/dev/hda1 /fat-c vfat auto,rw,umask=000 1 0 |
Tried it, no change. Damn. thanks for the suggestion though
|
try removing defaults and replacing it with the individual options.
I will post back when i find where ive wrote them down! |
Code:
/dev/hda1 /mnt/windows ntfs ro,umask=000,user 0 0 'user' gives a normal user privilige to mount/umount partition. 'umask=000' gives him full access to all files |
Probably sounds dumb, but did you reboot after the changes?
|
No need to reboot! Just type 'umount /mnt/windows && mount /mnt/windows'
|
Doh!!! I've got a lot to learn. I reboot for just about everything. It's a bad habit you pick up when your first computer is Windows ME. :)
|
how can you mount as "user"??? in my slackware it says.. you are not root/ only root can do that... stuff....
so how can I mount as user??????? |
bashrc2-
Add the proper entry to /etc/fstab . That's what this thread is all about. Here's a copy of my entire /etc/fstab file. Maybe it will give you an idea. I would help more, but you didn't give any information about what you were trying to mount. Anyways, here's my /etc/fstab file: Code:
/dev/hda3 swap swap defaults 0 0 |
Quote:
* Changed your IP address? Reboot. * Installed a prog? Reboot. * Up more than a week? Reboot. * Changed the wallpaper? Reboot --- uh... not sure about this one :D |
Dude, if you had Windows ME running for a whole week before having to reboot, you might just be my new computer hero. I made a habit of rebooting that thing every day!!!
|
thanks guys.. ill try that at home later.. anyway how come your using iso9660 for dvd-rom? isnt it suppose to be udf?
thanks, bash |
i sshed to my home computer from work and changed /etc/fstab here is what it looks like now:
Code:
/dev/hdc9 swap swap defaults 0 0 [bash_penguin@slackware1 ~]$ mount /mnt/fat-f mount: only root can mount /dev/hda7 on /mnt/fat-f [bash_penguin@slackware1 ~]$ umount /mnt/fat-f umount: /mnt/fat-f is not mounted (according to mtab) [bash_penguin@slackware1 ~]$ mount /dev/hda7 /mnt/fat-f mount: only root can do that thanks for any suggestions |
you need to add the 'user' option like you did with the CD drive. 'umask' determines who can read the files on the partition <--> 'user' determines who can mount the partition. Those are two very different things...
I think UDF is only found on some very recent DVD's... 99,...% of all CDROMs and DVDroms use iso9660. BTW, if in doubt you can always set the filesytem type for /dev/cdrom to 'auto', then the kernel will auto-detect the type. |
Quote:
|
urr this may sound dumb. But need the /mnt/hd (or whatever directory) you are using to mount need to have universal write permission?
|
No, when you mount, the permission and ownership of the mountpoint directory are automatically adjusted according to the umask=, uid=, gid= settings in /etc/fstab.
|
same problem
I am having the same problem and I'm a complete newbie is there a way I can mount just one directory on my ntfs partition for example my directory with all my music?
|
No, that's not possible. You can only mount the entire partition.
However, there's a trick you can use: suppose you want your music (which in Windows is under, say C:\Music) to appear under /music in Linux. Then you could mount the ntfs system under some directory (say /mnt/windows-c) and then create a symlink (i.e. symbolic link) like this: (as root) # ln -s /mnt/windows-c/Music /music This way when you go to /music it actually redirects you to /mnt/windows-c/Music. You can still access the entire partition using /mnt/windows-c |
All times are GMT -5. The time now is 03:45 PM. |