LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Access windows partition (http://www.linuxquestions.org/questions/slackware-14/access-windows-partition-891085/)

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
drwx------
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 :
Code:

# 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..
Quote:

-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..
http://www.linux-faqs.com/faq/misc/ntfs.php#3.0

..I don't remember if 12.2 had the ntfs-3g driver, but here you can read about it..
http://linux.die.net/man/8/mount.ntfs-3g

/Håkan

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!

vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv

hakan56 07-12-2011 12:25 PM

You have ntfs-3g already, I checked..
ftp://ftp.slackware.no/pub/linux/sla...2/slackware/a/
..ntfs-3g-1.5130-i486-1.tgz

Here is the "long" story of umask..
http://articles.slicehost.com/2010/7...ions-and-types

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

/Håkan


All times are GMT -5. The time now is 02:32 PM.