LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Change permissions on NTFS partition to read for all users (https://www.linuxquestions.org/questions/linux-newbie-8/change-permissions-on-ntfs-partition-to-read-for-all-users-20236/)

bax 05-05-2002 12:14 PM

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!

linuxcool 05-06-2002 04:20 AM

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.

bax 05-06-2002 09:38 AM

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?

burzmali 05-06-2002 12:09 PM

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.

bax 05-06-2002 10:26 PM

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

linuxcool 05-07-2002 03:55 AM

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.

VenimK 05-13-2002 07:35 AM

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.


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