View previous topic :: View next topic |
Author |
Message |
javeree Guru
Joined: 29 Jan 2006 Posts: 453
|
Posted: Tue Mar 02, 2010 10:49 pm Post subject: accessing ntfs-3g drive with ownership and perms [SOLVED] |
|
|
According to the ntfs-3g project pages, ntfs-3g since 2009.11.14 has support for ownership and permissions.
I emerge ntfs-3g with following use flags:
sys-fs/ntfs3g-2009.11.14 USE="external-fuse hal -acl -debug -suid"
I have created a .NTFS-3G/UserMapping file with contents
Quote: | :users:S-1-5-21-943818495-2179029594-2586233797-513
jan:jan:S-1-5-21-943818495-2179029594-2586233797-1001
ann:ann:S-1-5-21-943818495-2179029594-2586233797-1005
anke:anke:S-1-5-21-943818495-2179029594-2586233797-1003
jens:jens:S-1-5-21-943818495-2179029594-2586233797-1004 |
after this, I unmounted and remounted the drive the drive
mount -t ntfs-3g -o noatime /dev/sdb5 /mnt/data
but in spite of this, I only see all users owned by root with permissions 777.
Also chowning a file does not work. Is there something I may have forgotten
Last edited by javeree on Mon Mar 08, 2010 10:55 am; edited 1 time in total |
|
Back to top |
|
|
NathanZachary Moderator
Joined: 30 Jan 2007 Posts: 2605
|
Posted: Wed Mar 03, 2010 1:32 am Post subject: |
|
|
Moved from Installing Gentoo to Other Things Gentoo. _________________ “Truth, like infinity, is to be forever approached but never reached.” --Jean Ayres (1972)
---avatar cropped from =AimanStudio--- |
|
Back to top |
|
|
irgu Tux's lil' helper
Joined: 25 Apr 2003 Posts: 131
|
Posted: Wed Mar 03, 2010 5:02 pm Post subject: |
|
|
Check /var/log/messages |
|
Back to top |
|
|
javeree Guru
Joined: 29 Jan 2006 Posts: 453
|
Posted: Wed Mar 03, 2010 9:07 pm Post subject: |
|
|
mount -t ntfs-3g -o debug /dev/sdb5 /mnt//data/
Quote: |
FUSE library version: 2.8.1
nullpath_ok: 0
Version 2009.11.14 external FUSE 28
Mounted /dev/sdb5 (Read-Write, label "", NTFS 3.1)
Cmdline options: rw,debug
Mount options: rw,silent,allow_other,nonempty,relatime,fsname=/dev/sdb5,blkdev,blksize=4096
Ownership and permissions disabled
unique: 1, opcode: INIT (26), nodeid: 0, insize: 56
INIT: 7.13
flags=0x0000007b
max_readahead=0x00020000
INIT: 7.12
flags=0x00000051
max_readahead=0x00020000
max_write=0x00020000
unique: 1, success, outsize: 40
|
cat /var/log/everything/current
Quote: | Mar 3 22:01:56 [ntfs-3g] Bad mapping item ""_ |
from the debug output, I don't see anyindication that it even tries to read .NTFS-3G/UserMapping, but the line that appears in /var/log/messages/current makes me think it somehow sees something invalid in the UserMapping file. I just don't see what |
|
Back to top |
|
|
javeree Guru
Joined: 29 Jan 2006 Posts: 453
|
Posted: Wed Mar 03, 2010 9:24 pm Post subject: |
|
|
I rebuilt the UserMapping data again, with the exact same output, t this time I kept the line
Undecided :
this time, I got
Quote: | FUSE library version: 2.8.1
nullpath_ok: 0
Version 2009.11.14 external FUSE 28
Mounted /dev/sdb5 (Read-Write, label "", NTFS 3.1)
Cmdline options: rw,debug
Mount options: rw,silent,allow_other,nonempty,relatime,fsname=/dev/sdb5,blkdev,blksize=4096,default_permissions
User mapping built
unique: 1, opcode: INIT (26), nodeid: 0, insize: 56
INIT: 7.13
flags=0x0000007b
max_readahead=0x00020000
INIT: 7.12
flags=0x00000051
max_readahead=0x00020000
max_write=0x00020000
unique: 1, success, outsize: 40
|
cat /var/log/everything/current
Quote: | Mar 3 22:12:59 [ntfs-3g] Bad mapping item "Undecided :"_
Mar 3 22:12:59 [ntfs-3g] Invalid group "anke"_
Mar 3 22:12:59 [ntfs-3g] Invalid group "ann"_
Mar 3 22:12:59 [ntfs-3g] Invalid group "jan"_
Mar 3 22:12:59 [ntfs-3g] Invalid group "jens"_
Mar 3 22:12:59 [ntfs-3g] Invalid group "anke"_
Mar 3 22:12:59 [ntfs-3g] Invalid group "ann"_
Mar 3 22:12:59 [ntfs-3g] Invalid group "jan"_
Mar 3 22:12:59 [ntfs-3g] Invalid group "jens"_
|
and cat /mnt/data showed files belonging to e.g. jan:users
If I am carefull, I can probably continue a bit experimenting with the groups until I find fully sensible defaults, that closely match the 'intent' of some of the GUID on the windows side. |
|
Back to top |
|
|
javeree Guru
Joined: 29 Jan 2006 Posts: 453
|
Posted: Mon Mar 08, 2010 10:54 am Post subject: |
|
|
I found the cause of the error I had.
Apparently, .NTFS-3G/UserMapping does not allow any whitespace lines. So only comment lines and mapping lines are allowed |
|
Back to top |
|
|
|
|
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 vote in polls in this forum
|
|