 |
|
Page 1 of 1
|
[ 13 posts ] |
|
| Author |
Message |
|
mathfeel
Joined: Fri Jan 09, 2009 10:42 Posts: 10
|
 ntfs file write problem
I have one of those 2.5" external drive that I store my mp3/flac in and it is formatted NTFS (in case I need to use someone else's Windows machine and it's 250GB, so no FAT) and mounted with write permission using ntfs-3g.
I was trying to edit the id3 tag on one of the file (with Ex Falso) and it gives an error "fail to write to file...". Yet it writes the tag successfully anyway. So this is not exactly a show stoper but very annoying because the error dialog would stop the tagger from tagging the rest of the files if I am doing a massive tag change.
I check the log files and did not discover any error posted by ntfs-3g. For reference, here's the mount options:
Code: [ntfs-3g] Mount options: rw,noexec,nosuid,n odev,user,silent,allow_other,nonempty,default_permissions,noatime,fsname=/dev/ sda2,blkdev,blksize=4096_
|
| Fri Jan 09, 2009 10:46 |
|
 |
|
mathfeel
Joined: Fri Jan 09, 2009 10:42 Posts: 10
|
From command line, this is the problem:
Code: $ id3v2 --TIT2 "Monkey ball" test.mp3 Couldn't reset permissions on 'test.mp3' but again, the tag is set anyway Code: $ id3v2 -l test.mp3 id3v1 tag info for test.mp3: Title : Monkey ball Artist: Album : Year: , Genre: Unknown (255) Comment: Track: 0 id3v2 tag info for test.mp3: TIT2 (Title/songname/content description): Monkey ball
|
| Fri Jan 09, 2009 11:09 |
|
 |
|
jpa
NTFS-3G Lead Developer
Joined: Tue Sep 04, 2007 17:22 Posts: 1008
|
Hi,
Quote: mounted with write permission using ntfs-3g. Which version ? (type ntfs-3g --help) Quote: Couldn't reset permissions on 'test.mp3'
What are the permissions on the parent directory ? (type ls -ld .)
Regards
Jean-Pierre
|
| Fri Jan 09, 2009 11:44 |
|
 |
|
mathfeel
Joined: Fri Jan 09, 2009 10:42 Posts: 10
|
Quote: Which version ? (type ntfs-3g --help) Code: $ ntfs-3g --help
ntfs-3g 1.5012 integrated FUSE 27 - Third Generation NTFS Driver
Copyright (C) 2006-2008 Szabolcs Szakacsits Copyright (C) 2005-2007 Yura Pakhuchiy
Usage: ntfs-3g <device|image_file> <mount_point> [-o option[,...]]
Options: ro (read-only mount), force, remove_hiberfile, locale=, uid=, gid=, umask=, fmask=, dmask=, streams_interface=. Please see the details in the manual.
Example: ntfs-3g /dev/sda1 /mnt/win -o force
Ntfs-3g news, support and information: http://ntfs-3g.org Quote: What are the permissions on the parent directory ? (type ls -ld .)
files are mounted rw-rw-r--, directory are mounted rwxrwxr--
user= root, group= ntfsusers, and the I am doing this as member of ntfsusers group (same result as root).
|
| Fri Jan 09, 2009 12:34 |
|
 |
|
mathfeel
Joined: Fri Jan 09, 2009 10:42 Posts: 10
|
sorry for the quick re-reply.
Code: drwxrwxr-x 1 root ntfsusers 36864 2009-01-09 00:53 .
|
| Fri Jan 09, 2009 12:36 |
|
 |
|
jpa
NTFS-3G Lead Developer
Joined: Tue Sep 04, 2007 17:22 Posts: 1008
|
Hi,
Quote: ntfs-3g 1.5012 integrated FUSE 27 - Third Generation NTFS Driver
This version has no support for permissions changing. When wanting to use an application which tries to change them and checks it does, you need the advanced version : http://pagesperso-orange.fr/b.andre/adv ... fs-3g.html
Regards
Jean-Pierre
|
| Fri Jan 09, 2009 13:15 |
|
 |
|
mathfeel
Joined: Fri Jan 09, 2009 10:42 Posts: 10
|
jpa wrote: Hi, Quote: ntfs-3g 1.5012 integrated FUSE 27 - Third Generation NTFS Driver This version has no support for permissions changing. When wanting to use an application which tries to change them and checks it does, you need the advanced version : http://pagesperso-orange.fr/b.andre/adv ... fs-3g.htmlRegards Jean-Pierre
Thanks for the answer. Like I said, it's no show stopper. So I'll wait for this feature to be made to the stable tree.
Awesome project. Thanks.
|
| Fri Jan 09, 2009 13:47 |
|
 |
|
szaka
Tuxera CTO
Joined: Tue Nov 21, 2006 23:15 Posts: 1645
|
Hi,
The permission error message is correct. The access rights are enforced by the kernel, not NTFS-3G because you use the default_permissions mount option.
I don't know how you ended to this setup because default_permissions is an NTFS-3G internal, FUSE option what NTFS-3G turns on when one of the permission handling related mount options is used. This is documented in the NTFS-3G manual:
Quote: Access Handling and Security By default, files and directories are owned by the effective user and group of the mounting process and everybody has full read, write, exe- cution and directory browsing permissions. If you want to use permis- sions handling then use the uid and/or the gid options together with the umask, or fmask and dmask options.
However I can't see you would use any such option and it looks like you added default_permissions manually what you mustn't do because you end up in an unsupported, inconsistent scenarios like this one.
So, please remove it and use the uid, gid, etc options. Then you will be able to modify the file without permission conflict, supposed the modifying user is indeed the one specified by the uid/gid options and have the right file permission.
Regards, Szaka
|
| Fri Jan 09, 2009 14:49 |
|
 |
|
mathfeel
Joined: Fri Jan 09, 2009 10:42 Posts: 10
|
szaka wrote: Hi, The permission error message is correct. The access rights are enforced by the kernel, not NTFS-3G because you use the default_permissions mount option. I don't know how you ended to this setup because default_permissions is an NTFS-3G internal, FUSE option what NTFS-3G turns on when one of the permission handling related mount options is used. This is documented in the NTFS-3G manual: Quote: Access Handling and Security By default, files and directories are owned by the effective user and group of the mounting process and everybody has full read, write, exe- cution and directory browsing permissions. If you want to use permis- sions handling then use the uid and/or the gid options together with the umask, or fmask and dmask options.
However I can't see you would use any such option and it looks like you added default_permissions manually what you mustn't do because you end up in an unsupported, inconsistent scenarios like this one. So, please remove it and use the uid, gid, etc options. Then you will be able to modify the file without permission conflict, supposed the modifying user is indeed the one specified by the uid/gid options and have the right file permission. Regards, Szaka
I am not sure if I am using it by accident. Here's my fstab line:
Code: /dev/disk/by-uuid/86FCBC9FFCBC8B47 /export/mobileblk/ ntfs-3g noatime,fmask=0113,dmask=002,uid=root,gid=ntfsuser,locale=en_US.UTF-8,user,noauto 0 0
For convenience, I usually don't type "mount" on terminal, but when I plug in the usb drive, KDE4 would detect it and I just click the icon to mount. So, I could be KDE4's own mounting software is adding that option?
|
| Wed Jan 14, 2009 08:41 |
|
 |
|
szaka
Tuxera CTO
Joined: Tue Nov 21, 2006 23:15 Posts: 1645
|
Ok, then it's not by accident.
Please follow the below
1. run 'strace -f -o id3.txt -p PID' where PID is the process id of 'Ex Falso'
2. reproduce the problem
3. exit strace (CTRL-C)
4. bzip2 id4.txt
5. send the compressed file to szaka@ntfs-3g.org or make it somewhere publicly available.
Thanks, Szaka
|
| Thu Jan 15, 2009 19:53 |
|
 |
|
szaka
Tuxera CTO
Joined: Tue Nov 21, 2006 23:15 Posts: 1645
|
This seems to be the reasons: http://www.ntfs-3g.org/support.html#compressed
Workaround: copy the relevant file to a different name (DO NOT RENAME!) then you should be able to modify the copy.
|
| Fri Jan 16, 2009 16:53 |
|
 |
|
mathfeel
Joined: Fri Jan 09, 2009 10:42 Posts: 10
|
Actually now I should ask something I have wondered for a while. When I first formatted the drive I made it compressed. After a while I realized that it's kind of studpid. When I go to "volume property" in Windows, I see a checkbox for compression. I am not sure if I can just uncheck it and apply or I have to reformat the drive.
|
| Sun Jan 18, 2009 23:16 |
|
 |
|
szaka
Tuxera CTO
Joined: Tue Nov 21, 2006 23:15 Posts: 1645
|
You could also send a patch for compression write support ;-) But at the moment you should reformat.
|
| Mon Jan 19, 2009 01:41 |
|
|
|
Page 1 of 1
|
[ 13 posts ] |
|
Who is online |
Users browsing this forum: Google [Bot] and 2 guests |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|
 |