LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-11-2011, 09:11 AM   #1
autophil
Member
 
Registered: Jun 2006
Location: Macclesfield Canal, East Cheshire
Distribution: Salix-14.1
Posts: 129
Blog Entries: 1

Rep: Reputation: 15
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?
 
Old 07-11-2011, 09:18 AM   #2
Thom1b
Member
 
Registered: Mar 2010
Location: France
Distribution: Slackware
Posts: 574

Rep: Reputation: 402Reputation: 402Reputation: 402Reputation: 402Reputation: 402
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
 
Old 07-11-2011, 09:27 AM   #3
SeRi@lDiE
Member
 
Registered: Jun 2006
Location: /dev/null
Distribution: Slackware 13.1, Slackware 13.37, aptosid, rhel
Posts: 547
Blog Entries: 7

Rep: Reputation: 55
why not just use the ntfs3g module instead of the default ntfs module?. ntfs3g allows you to read and write from a ntfs partition.
 
Old 07-11-2011, 09:49 AM   #4
hakan56
Member
 
Registered: Nov 2004
Location: Sweden
Distribution: Slackware64-14.0
Posts: 53

Rep: Reputation: 9
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

Last edited by hakan56; 07-11-2011 at 09:59 AM. Reason: ..writes too slowly, beaten by two ;-)
 
Old 07-12-2011, 02:09 AM   #5
autophil
Member
 
Registered: Jun 2006
Location: Macclesfield Canal, East Cheshire
Distribution: Salix-14.1
Posts: 129

Original Poster
Blog Entries: 1

Rep: Reputation: 15
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
 
Old 07-12-2011, 12:25 PM   #6
hakan56
Member
 
Registered: Nov 2004
Location: Sweden
Distribution: Slackware64-14.0
Posts: 53

Rep: Reputation: 9
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
 
  


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
cannot access my windows partition randell6564 Ubuntu 20 06-04-2006 05:13 PM
How can I access files in my Windows 98 partition from my Linux partition, /w BASH? Fabyfakid Linux - Newbie 4 09-18-2004 12:05 AM
Can't Access Windows Partition nostrum Linux - Newbie 8 06-19-2004 12:17 AM
Access to windows partition? DeadlySin3 Linux - Newbie 2 05-05-2003 11:46 AM
Again, how to access windows partition MrPolite Linux - General 26 06-29-2002 03:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:38 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
Open Source Consulting | Domain Registration