LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Problem accessing the contents of windows (https://www.linuxquestions.org/questions/linux-newbie-8/problem-accessing-the-contents-of-windows-448269/)

jojojo 05-24-2006 09:42 PM

Problem accessing the contents of windows
 
At last, i have successfully can access the ntfs partition. But other problem occur. After i have mount:

mount /dev/hdc1 /mnt/windows -t ntfs -r

the windows folder appear stating that i don't have the permissions necessary to view the contents of "windows". Why?

pljvaldez 05-24-2006 09:55 PM

try mount -t ntfs -o ro,umask=222 /dev/hdc1 /mnt/windows

jojojo 05-24-2006 10:33 PM

Oh ok. Works fine now. May i know what does this command means:

-t ntfs -o ro,umask=222

pljvaldez 05-24-2006 10:35 PM

-t ntfs ==> fs type ntfs (I'm sure you figured that out)
-o ro,umask=222 ==> ro is read only and umask=222 means give every file permissions of 555 (read and execute)

Unforgiven79 05-29-2006 06:41 AM

Sorry, I had the same problem as jojojo, and I solved it the same way.
1) BUT, my intention is to have also permission to write, so I wrote the "-w" option. How does the "umask" syntax change?

2) Currently, I have to give the mounting command line explicitely at every startup. How can I set it to perform automatically?

Thanks

jojojo 05-29-2006 07:44 AM

First of all you must download the ntfs kernel module that is same as your kernel. You may download the ntfs kernel here http://www.linux-ntfs.org/content/view/187/After that, to mount ntfs partition automatically during boot:

1) log in as root

2) Type:

Code:

gedit /etc/fstab
3) It will open a text editor. Then type:

Code:

/dev/hda1 /mnt/windows ntfs ro,umask=0222,user,gid=users 0 0
anywhere in a new line. You may want to create your own directory in the /mnt directory first. I've created mine as windows. You may also type: fdisk -l before this to see what type of device you have. If you have more than 1 partition or hard disk, then add another new line after the new line you have just created:

Code:

/dev/hdc1 /mnt/windows1 ntfs ro,umask=0222,user,gid=users 0 0
        /dev/hdc2 /mnt/windows2 ntfs ro,umask=0222,user,gid=users 0 0

4) Then type:

Code:

mount -at ntfs
5) If there's nothing happen, it means success. Try to reboot and access the /mnt/windows file to see whether you have successfully mounted your ntfs?

Unforgiven79 05-30-2006 02:38 PM

Thanx, I'm trying that.

Just one thing: you keep on suugesting the -ro option, while my intention would be to have writing permission on my NTFS partitions.
Is it because (as I have heard) these modules only allow you to read, or anything else?


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