Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-14-2003, 12:27 PM
|
#1
|
LQ Newbie
Registered: Aug 2003
Distribution: SuSE 9.0
Posts: 22
Rep:
|
Mounting NTFS in SuSE 8.0
Hi folks!
I'm trying to mount my NTFS-Drives (Win2K).
Well, I got so far: Root mounts the NTFS-Drives and can read them. But when the user tries to open the folder (e.g. /Windows/E), Linux says he doesn't have the necessary rights to open the folder.
I tried to use chmod 777 before mounting the drive, but it didn't work.
fstab looks like this:
/dev/hdb7 /windows/E ntfs auto,user 0 0
Thanks for your answers, and please forgive my English, I'm from Germany.
Greets
Fred Affe
|
|
|
08-14-2003, 12:38 PM
|
#2
|
Senior Member
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104
Rep:
|
Use these options in your /etc/fstab entry - just substitute your user id number ( uid ) in place of my example one
auto,ro,umask=222,uid=501
You can get your User ID Number by opening a command line and typing:
id username – (substitute username with Aaron or Sofie or whatever your username is)
Look for the
uid=xxx
thats your user id number
Last edited by Skyline; 08-14-2003 at 12:43 PM.
|
|
|
08-14-2003, 01:04 PM
|
#3
|
LQ Newbie
Registered: Aug 2003
Distribution: SuSE 9.0
Posts: 22
Original Poster
Rep:
|
Well.... at least the user can open the folder now
When the drives get mounted on startup, they appear as /windows/E and /windows/F, before I changed fstab the user wasn't able to open the folder at all (it had a lock as icon) and root could read the files in it, and now the user can open the folder, but it's empty. Root can read the folders nevertheless.
What does "umask" do?
Last edited by Fred Affe; 08-14-2003 at 01:08 PM.
|
|
|
08-14-2003, 03:06 PM
|
#4
|
Senior Member
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104
Rep:
|
Umask just sets a filter of permissions for all new files created
As a matter of interest - can you post your /etc/fstab contents
You can get them by opening a Konsole and typing
su
then type your root password
then type
kedit /etc/fstab
.
|
|
|
08-14-2003, 06:24 PM
|
#5
|
Member
Registered: Aug 2003
Location: Halifax, NS
Distribution: Debian, Gentoo, Ubuntu, Fedora
Posts: 128
Rep:
|
Quote:
Originally posted by Fred Affe
Well.... at least the user can open the folder now 
When the drives get mounted on startup, they appear as /windows/E and /windows/F, before I changed fstab the user wasn't able to open the folder at all (it had a lock as icon) and root could read the files in it, and now the user can open the folder, but it's empty. Root can read the folders nevertheless.
What does "umask" do?
|
This is what I have, edit it to fit yours:
/dev/hda1 /mnt/windows ntfs ro,umask=0222 0 0
Works fine, all users with read only permission
Quote:
umask is a filter of permissions, so it works in the opposite way to chmod. Full permissions are equivalent to 777 (rwxrwxrwx). A umask of 0222 (-w--w--w-) leaves 555 (r-xr-xr-x).
|
|
|
|
08-14-2003, 06:49 PM
|
#6
|
Senior Member
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104
Rep:
|
Quote:
This is what I have, edit it to fit yours:
/dev/hda1 /mnt/windows ntfs ro,umask=0222 0 0
|
Awatto - you've forgot
auto
He's not going to have his partition automatically mounted on boot up without this.
|
|
|
08-14-2003, 07:04 PM
|
#7
|
Member
Registered: Aug 2003
Location: Halifax, NS
Distribution: Debian, Gentoo, Ubuntu, Fedora
Posts: 128
Rep:
|
Quote:
Originally posted by Skyline
Awatto - you've forgot
auto
He's not going to have his partition automatically mounted on boot up without this.
|
Hmm, strange, mine does, lol. Must be because of different distro, but thanks for pointing that out.
|
|
|
08-14-2003, 07:11 PM
|
#8
|
Senior Member
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104
Rep:
|
Quote:
Hmm, strange, mine does, lol. Must be because of different distro, but thanks for pointing that out
|
Awatto - just to clarify - are you suggesting that your partition automatically mounts on boot up without an auto option?
|
|
|
08-14-2003, 07:14 PM
|
#9
|
Member
Registered: Aug 2003
Location: Halifax, NS
Distribution: Debian, Gentoo, Ubuntu, Fedora
Posts: 128
Rep:
|
Yep. Tha's exactly what I have in my fstab and it is mounted every time I boot up ever since I added it...
|
|
|
08-14-2003, 07:25 PM
|
#10
|
Senior Member
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104
Rep:
|
You havent answered my question - I pointed out that Fred would need an auto option in his fstab entry to have his Windows partition automatically mounted on boot up.
To that you replied
Quote:
Hmm, strange, mine does, lol.
|
implying that you have your Windows partition automatically mounted on boot up without an auto option
So I'll ask you again - is it possible to have your Windows partition automatically mounted on boot up without an auto option?
|
|
|
08-14-2003, 07:31 PM
|
#11
|
Member
Registered: Aug 2003
Location: Halifax, NS
Distribution: Debian, Gentoo, Ubuntu, Fedora
Posts: 128
Rep:
|
Sorry for being unclear.
Yes - Mine is automatically mounted, and does not have an auto option.
|
|
|
08-15-2003, 12:59 AM
|
#12
|
LQ Newbie
Registered: Aug 2003
Distribution: SuSE 9.0
Posts: 22
Original Poster
Rep:
|
This is what my fstab looks like now:
Code:
/dev/hda4 / reiserfs defaults 1 2
/dev/cdrom /media/cdrom auto ro,noauto,user,exec 0 0
devpts /dev/pts devpts defaults 0 0
/dev/fd0 /media/floppy auto noauto,user,sync 0 0
proc /proc proc defaults 0 0
usbdevfs /proc/bus/usb usbdevfs noauto 0 0
/dev/hdb7 /windows/E ntfs auto,user,ro,umask=0222 0 0
/dev/hdb6 /windows/F ntfs auto,user,ro,umask=0222 0 0
/dev/hdb5 /windows/G vfat auto,user,fat=32 0 0
/dev/hda3 swap swap pri=42 0 0
And I have to say: It works!!!
Thank you very much for your help!!
|
|
|
All times are GMT -5. The time now is 04:05 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|