LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 05-05-2002, 01:14 PM   #1
bax
Member
 
Registered: Dec 2001
Location: NoVA
Distribution: Ubuntu, Solaris, OpenBSD
Posts: 492

Rep: Reputation: 30
Change permissions on NTFS partition to read for all users


OK, I have searched the forums and am trying not to double post so here goes. I just bought SUSE 8.0 and am running it dual boot w/ XP. SUSE seemingly did all of my work for me when I looked at my fstab but the partitions weren't automagically mounted. No worries, right? Just mkdir the directories and a simple mount -t /dev/hda1 /mnt/whateverdirectory right? Nope. Only by not using the -t switch does it work. So that's problem #1. Any ideas? Here's my fstab:
/dev/hda1 /windows/E ntfs ro,auto,user,unask=022 0 0
/dev/hda2 /windows/F ntfs ro,auto,user,umask=022 0 0
Whenever I try to access the Windows partitions, I get a permission denied error. Now I have poured over my Linux books and can't find the answer I'm looking for. I know I need to change permissions but how? Also, what am I doing wrong w/ the mount ? I want the partitions automatically mounted on boot. Anyone who needs some input on SUSE 8.0 or Redhat 7.93 beta, drop me a lne since I'm running both. Thanks!
 
Old 05-06-2002, 05:20 AM   #2
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
You left the file type out of your mount command. It should look like this:

mount -t ntfs /dev/hda1 /mnt/whateverdirectory

Your windows partitions should be mounted on boot up because the option auto is in the lines for the two windows partitions. After you boot up, run the command mount and see if they are mounted.
 
Old 05-06-2002, 10:38 AM   #3
bax
Member
 
Registered: Dec 2001
Location: NoVA
Distribution: Ubuntu, Solaris, OpenBSD
Posts: 492

Original Poster
Rep: Reputation: 30
How do I change the permissions so users can read the NTFS partitions

Got'em mounted. Now, what should I change the permissions to so I can read them as a user?
 
Old 05-06-2002, 01:09 PM   #4
burzmali
Member
 
Registered: Jan 2002
Distribution: gentoo
Posts: 68

Rep: Reputation: 15
did you create your mount points as root? if so, umount the ntfs drives and then chmod your mount point to 777 or 755, whatever suites you. good luck.
 
Old 05-06-2002, 11:26 PM   #5
bax
Member
 
Registered: Dec 2001
Location: NoVA
Distribution: Ubuntu, Solaris, OpenBSD
Posts: 492

Original Poster
Rep: Reputation: 30
I'm stumped....

Burzmali, thanks for the info but it didn't work. Just so I'm sure I did it as you suggested-umount dev/hda
-chmod 777 /mnt/whatever partition
-mount -t ntfs /dev/hda2=1 /mnt/whateverpartition
Did all of that as root and only root can browse the mounted NTFS partitions. I'm a newbie but I feel the answer is SOMEWHERE in these lines in my fstab:/dev/hda1 /windows/E ntfs auto,user,unask=022 0 0
/dev/hda2 /windows/F ntfs auto,user,umask=022 0 0
Also, tried the same rpocedure as above but w/ a chmod 755 instead. No dice
 
Old 05-07-2002, 04:55 AM   #6
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
OK. Here's the two lines from your fstab file:

/dev/hda1 /windows/E ntfs auto,user,unask=022 0 0
/dev/hda2 /windows/F ntfs auto,user,umask=022 0 0

According to this, your partitions /dev/hda1 and /dev/hda2 are automatically mounted on boot up. /dev/hda1 is mounted in the /windows/E directory and /dev/hda2 is mounted in the /windows/F directory. Did you ever do an ls /windows/E or an ls /windows/F to see if they were actually mounted there? If they are, then you won't have to run the mount command to mount them.
 
Old 05-13-2002, 08:35 AM   #7
VenimK
Member
 
Registered: Mar 2002
Posts: 42

Rep: Reputation: 15
Hi

A friend off me, had the same problem.
When checking his system there was not a directory /windows/C .
So created these;

mkdir /windows
cd /windows
mkdir C

then it worked !!!!

Running Suse 8.0 Personal.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Read permissions for ntfs drive. Billy|B-A Linux - General 2 02-01-2005 11:20 PM
Can't change the read permissions on an NTFS partition as root? EOHooligan Linux - Newbie 4 01-09-2005 07:48 AM
fstab file to allow all users to read ntfs jza Linux - General 1 01-29-2004 03:05 PM
USB Key /w ro NTFS and normal users can't read spire Linux - Newbie 3 09-20-2003 07:50 PM
How do i get users to read my NTFS drive!! therion12 Linux - General 22 01-23-2002 10:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration