-   Slackware (
-   -   Access windows partition (

autophil 07-11-2011 09:11 AM

Access windows partition
This question has been asked before but I cant seem to find where.

On my other disk in this same pc I have some music files on a windows partition that I would like to play in Linux using Exaile. I can see the windowd directory and see all the files. I have windows mounted as /win
with permissions shown like this
now I type in the command #chmod 755 /win
that should give me unchanged root properties and add permissions for group and others to read and execute. It didnt work.

so then I also tried #chmod o+r to add read permission to others
but ls -l still gives listing as
drwx------ 1 root root 12288 Jul 10 21:02 win
Which means root has read write and execute and everyone else is excluded.
How can I change that so that user (ie me) can access and use the files in the /win directory?

Thom1b 07-11-2011 09:18 AM

You should mount your windows partition with "umask=022" option because linux can't manage permissions on ntfs :

# mount -o umask=022 /dev/<windows partition> /win

SeRi@lDiE 07-11-2011 09:27 AM

why not just use the ntfs3g module instead of the default ntfs module?. ntfs3g allows you to read and write from a ntfs partition.

hakan56 07-11-2011 09:49 AM

The "short" answer if you only want to listen to the musik..

-o umask={VALUE}
The default permissions given to a mounted NTFS Volume are rwx------ (this is for security reasons). The umask parameter controls the permissions of files and directories. For more details and examples, see Section 4.9.

mount /dev/hda1 /mnt/windows -t ntfs -r -o umask=0222
..the "long" answer is here..

..I don't remember if 12.2 had the ntfs-3g driver, but here you can read about it..


autophil 07-12-2011 02:09 AM

Thats great. Thanks for the responses.

Thom1b, Im not sure what mask and unmask is about.
What is the difference between umask=0222 and umask=022 ?
Its not really permissions on ntfs its really permissions for the /win directory.

How does one create a ntfs3g module. hakan56, I will read the link above!


hakan56 07-12-2011 12:25 PM

You have ntfs-3g already, I checked..

Here is the "long" story of umask..

The short one..;)
0222 = no one can write
022 = only the owner (root) can write


All times are GMT -5. The time now is 10:40 PM.