Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
07-11-2011, 09:11 AM
|
#1
|
Member
Registered: Jun 2006
Location: Macclesfield Canal, East Cheshire
Distribution: Salix-14.1
Posts: 129
Rep:
|
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?
|
|
|
07-11-2011, 09:18 AM
|
#2
|
Member
Registered: Mar 2010
Location: France
Distribution: Slackware
Posts: 574
|
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
|
|
|
07-11-2011, 09:27 AM
|
#3
|
Member
Registered: Jun 2006
Location: /dev/null
Distribution: Slackware 13.1, Slackware 13.37, aptosid, rhel
Posts: 547
Rep:
|
why not just use the ntfs3g module instead of the default ntfs module?. ntfs3g allows you to read and write from a ntfs partition.
|
|
|
07-11-2011, 09:49 AM
|
#4
|
Member
Registered: Nov 2004
Location: Sweden
Distribution: Slackware64-14.0
Posts: 53
Rep:
|
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 ;-)
|
|
|
07-12-2011, 02:09 AM
|
#5
|
Member
Registered: Jun 2006
Location: Macclesfield Canal, East Cheshire
Distribution: Salix-14.1
Posts: 129
Original Poster
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 12:38 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|