LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   automount NTFS in Redhat 8.0 (https://www.linuxquestions.org/questions/linux-newbie-8/automount-ntfs-in-redhat-8-0-a-43497/)

manub 01-31-2003 07:17 AM

automount NTFS in Redhat 8.0
 
Hi there,

this is my first post :) I know a little bit about linux, but I've been searching for a strong community and now I've found it !

I've got a NTFS partition that I want to access to in linux (Read Only, of course). I installed NTFS support (Redhat 8.0 using 2.4.18-19 kernel) and I can mount it via shell. When I try to make my partition auto-mounting by adding the proper line in /etc/fstab, I can't read mounted partition with the standard user. If I go root, I can read. How to resolve this ? Thanks and keep Linux working :)

GJoz 01-31-2003 07:37 AM

hi
search at redhat for windows partiton
you need to edit fstab file,and it says there what to add
take care

MasterC 01-31-2003 07:39 AM

Can you post up here your /etc/fstab file so we can see what your entry looks like?

Cool

manub 01-31-2003 07:43 AM

/dev/hdc1 /mnt/data ntfs umask=222,users,auto 0 0


I tried this by a approximate reading on this forum ... it works under root but not under my user

thanks :)

GJoz 01-31-2003 07:48 AM

thanks
i'll try that
cause mouting doesnt work for me
http://www.linuxquestions.org/questi...threadid=43494
i use /dev/hda1 /mnt/windows vfat auto,owner,users 0 0
i'll try yours
thanks,i hope it will work

MasterC 01-31-2003 08:19 AM

manub, just so you know I haven't left. I am just confused. Try this instead:
/dev/hdc1 /mnt/data ntfs defaults,auto,user,users,owner,umask=222,ro 0 0

What this is going to is basically overlap alot of options. However, they don't conflict (AFAIK) so you should be fine. See if that will work for you.

After editing the file, umount the drive, then run:
mount -a

...

Post up the errors if you have any. This one seems a bit odd to me.

What does ls -l /mnt/data give you anyway?

Cool

manub 01-31-2003 12:32 PM

I've tried with your set, but I always get the same error:

ls -l /mnt/data
ls: /mnt/data: Permission denied

I log as a user, open a terminal window, go su, edit fstab, umount -a, mount -a, try to ls succesfully, back to normal user, try to ls and got this :(

MasterC 02-01-2003 01:51 AM

Try just mounting up the partition with the normal user (assuming it's not already mounted) try:
mount /mnt/data

As a normal user. What errors do you get?

Cool

manub 02-01-2003 02:07 AM

I unmounted the partition as root, then go back to normal user and did this:

mount /dev/hdc1 /mnt/data
mount: only root can do that

:confused:

GJoz 02-01-2003 02:10 AM

ok
edit /etc/fstab
and use this:
/dev/hdc1 /mnt/data ntfs auto,owner,users 0 0
then save and restart
it will work :)

manub 02-01-2003 02:18 AM

it doesn't work :cry:

always permission denied

I'm getting so much confused :confused: :confused:

GJoz 02-01-2003 02:21 AM

hmmmmm
at startup,you are not logged in(when loading things)
you log in only after that
so it should work
it works for me,i tested it

manub 02-01-2003 06:09 AM

sorry but I don't understand what you're talking about ... I've got graphical login ... and I think I'm always logging in after all has loaded :)

GJoz 02-01-2003 06:11 AM

oh
if you use text loader,you can see the error,and if it works or not,....
cause you log in after things are loaded,so it should work

Darin 02-01-2003 10:08 AM

Here is my fstab line for NTFS:
Code:

/dev/sda1  /win  ntfs  umask=007,gid=201,defaults  1  0
umask 007 means owner and group get rwx permission and everyone else gets no access. gid=201 sets the group owner to group 201 which isn't a pre defined group.

as root edit /etc/group and add this line, be VERY careful of mistyping:
Code:

lusers::201:myacct,myroomie,newdude
broken down this is:
*lusers = group name, use whatever you want
*TWO colons
*201 = group id, it doesn't have to be 201 but has to be the same as what you used for gid= in fstab. If 201 is taken, pick any number over 200 to be safe.
*ONE colon
*myacct,myroomie,newdude = list all users who you want to give access to in a comma seperated format with no spaces.

It works on my box.


All times are GMT -5. The time now is 07:09 AM.