Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[RESOLVED] NTFS Write Support respect NTFS Permissions?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
AstroTux
Tux's lil' helper
Tux's lil' helper


Joined: 03 Dec 2005
Posts: 103
Location: /home/M31

PostPosted: Mon Jun 19, 2006 3:47 am    Post subject: [RESOLVED] NTFS Write Support respect NTFS Permissions? Reply with quote

Hi,

As the subject. I've enabled NTFS write support in the Kernel. Mounting does not suggest a read-oinly mode for any reason, and appears to mount in read/write mode. If I attempt to create a plain text file on the root of what is my C:\ drive for Windows (/dev/hda1) it says "Permission Denied". I presume if it was mounted read-only, it would say "Read Only mode" instead? This is within Nano.

Do I need to alter the permissions on the NTFS drive to allow "Everyone" (under Windows) to be able to write to the partition in Linux? I find it odd that if the permissions are preventing me writing, that I can read it, as the only permissions on the drive are all "Full Control" under Windows anyway. :? The Windows OS is Windows 2000 Pro, Linux Kernel version is 2.6.16-gentoo-r9 compiled by myself.

Code:
mount /dev/hda1 /mnt/win

returned nothing, and had mounted.

Do I need to put anything in the /etc/fstab file for this to allow read/write? I am root when issuing mount.

Best regards,
AstroTux.
_________________
Registered Linux User #404385
Viva Andromeda! 8)


Last edited by AstroTux on Mon Jun 19, 2006 6:42 am; edited 1 time in total
Back to top
View user's profile Send private message
Aries-Belgium
l33t
l33t


Joined: 08 Jul 2005
Posts: 730
Location: Willebroek, Belgium

PostPosted: Mon Jun 19, 2006 5:52 am    Post subject: Reply with quote

I remember that you had to set the umask flag for writing to a FAT32 filesystem, so I guess you also have to do that for NTFS:
Code:
mount -t ntfs -o rw,umask=0000

This will set the permissions to rwx for all users.
_________________
Ep2.nl | Developers Community
Back to top
View user's profile Send private message
AstroTux
Tux's lil' helper
Tux's lil' helper


Joined: 03 Dec 2005
Posts: 103
Location: /home/M31

PostPosted: Mon Jun 19, 2006 6:15 am    Post subject: Reply with quote

Hi,

OK. I'll give it a try!

EDIT: Could someone explain how the umask works? It says here:

Quote:
Set the umask (the bitmask of the permissions that are not present). The default is the umask of the current process. The value is given in octal.

How does that work then? Is it an AND or XOR operation on the bits?

Best regards,
AstroTux.
_________________
Registered Linux User #404385
Viva Andromeda! 8)


Last edited by AstroTux on Mon Jun 19, 2006 6:17 am; edited 1 time in total
Back to top
View user's profile Send private message
rhill
Retired Dev
Retired Dev


Joined: 22 Oct 2004
Posts: 1629
Location: sk.ca

PostPosted: Mon Jun 19, 2006 6:17 am    Post subject: Reply with quote

/usr/src/linux/Documentation/filesystems/ntfs.txt

Code:
- This is a complete rewrite of the NTFS driver that used to be in the 2.4 and
  earlier kernels.  This new driver implements NTFS read support and is
  functionally equivalent to the old ntfs driver and it also implements limited
  write support.  The biggest limitation at present is that files/directories
  cannot be created or deleted. See below for the list of write features that
  are so far supported.[...]


until recently (2.6.15 or 16?) you also couldn't make a write that would change the size of an NTFS file, so check your local copy to see what's supported on the kernel you're running.
_________________
by design, by neglect
for a fact or just for effect
Back to top
View user's profile Send private message
AstroTux
Tux's lil' helper
Tux's lil' helper


Joined: 03 Dec 2005
Posts: 103
Location: /home/M31

PostPosted: Mon Jun 19, 2006 6:20 am    Post subject: Reply with quote

Hi,

Ahhh....... OK. I do know that previously write wasn't an option, then it was very limited, but I didn't know the specifics. I was under the impression that it was now fully implemented, but I stand corrected.

Best regards,
AstroTux.
_________________
Registered Linux User #404385
Viva Andromeda! 8)
Back to top
View user's profile Send private message
Aries-Belgium
l33t
l33t


Joined: 08 Jul 2005
Posts: 730
Location: Willebroek, Belgium

PostPosted: Mon Jun 19, 2006 6:25 am    Post subject: Reply with quote

AstroTux wrote:

EDIT: Could someone explain how the umask works? It says here:

Quote:
Set the umask (the bitmask of the permissions that are not present). The default is the umask of the current process. The value is given in octal.

How does that work then? Is it an AND or XOR operation on the bits?

The umask is the opposite of the linux permissions.
It is always 7 minus the prefered permission, so if you would like to set r-x (5) it would be:
Code:
7 - 5 = 2

_________________
Ep2.nl | Developers Community
Back to top
View user's profile Send private message
AstroTux
Tux's lil' helper
Tux's lil' helper


Joined: 03 Dec 2005
Posts: 103
Location: /home/M31

PostPosted: Mon Jun 19, 2006 6:29 am    Post subject: Reply with quote

Hi,

Thanks!! :) That makes sense.

Best regards,
AstroTux.
_________________
Registered Linux User #404385
Viva Andromeda! 8)
Back to top
View user's profile Send private message
TheWhiteKnight
Apprentice
Apprentice


Joined: 08 Nov 2003
Posts: 180
Location: West Virginia, Ohio, Pennsylvania

PostPosted: Tue Jun 27, 2006 11:32 am    Post subject: Reply with quote

After trying this (and yes i compiled the ntfs support in my kernel) I get "unknown filesystem type ntfs". Do I need to add the cfg to my fstab? I have 2 drives filled with mp3's that I would like to listen too. Thanks!

- Josh[/gwn]
Back to top
View user's profile Send private message
linuxtuxhellsinki
l33t
l33t


Joined: 15 Nov 2004
Posts: 700
Location: Hellsinki

PostPosted: Tue Jun 27, 2006 7:59 pm    Post subject: Reply with quote

Maybe you don't have correct codepages in your Kernel :?:
Code:
 CONFIG_NLS=y
CONFIG_NLS_DEFAULT="iso8859-15"
CONFIG_NLS_CODEPAGE_437=y
# CONFIG_NLS_CODEPAGE_737 is not set
# CONFIG_NLS_CODEPAGE_775 is not set
CONFIG_NLS_CODEPAGE_850=y
CONFIG_NLS_CODEPAGE_852=y
.........

_________________
1st use 'Search' & lastly add [Solved] to
the subject of your first post in the thread.
Back to top
View user's profile Send private message
TheWhiteKnight
Apprentice
Apprentice


Joined: 08 Nov 2003
Posts: 180
Location: West Virginia, Ohio, Pennsylvania

PostPosted: Sun Jul 02, 2006 2:13 am    Post subject: Reply with quote

linuxtuxhellsinki wrote:
Maybe you don't have correct codepages in your Kernel :?:
Code:
 CONFIG_NLS=y
CONFIG_NLS_DEFAULT="iso8859-15"
CONFIG_NLS_CODEPAGE_437=y
# CONFIG_NLS_CODEPAGE_737 is not set
# CONFIG_NLS_CODEPAGE_775 is not set
CONFIG_NLS_CODEPAGE_850=y
CONFIG_NLS_CODEPAGE_852=y
.........


Very dumb question, but how can I tell / check on this code in my kernel?
Back to top
View user's profile Send private message
Aries-Belgium
l33t
l33t


Joined: 08 Jul 2005
Posts: 730
Location: Willebroek, Belgium

PostPosted: Sun Jul 02, 2006 3:41 am    Post subject: Reply with quote

TheWhiteKnight wrote:
linuxtuxhellsinki wrote:
Maybe you don't have correct codepages in your Kernel :?:
Code:
 CONFIG_NLS=y
CONFIG_NLS_DEFAULT="iso8859-15"
CONFIG_NLS_CODEPAGE_437=y
# CONFIG_NLS_CODEPAGE_737 is not set
# CONFIG_NLS_CODEPAGE_775 is not set
CONFIG_NLS_CODEPAGE_850=y
CONFIG_NLS_CODEPAGE_852=y
.........


Very dumb question, but how can I tell / check on this code in my kernel?

Code:
grep "CONFIG_NLS" /usr/src/linux/.config

_________________
Ep2.nl | Developers Community
Back to top
View user's profile Send private message
TheWhiteKnight
Apprentice
Apprentice


Joined: 08 Nov 2003
Posts: 180
Location: West Virginia, Ohio, Pennsylvania

PostPosted: Mon Jul 03, 2006 12:00 am    Post subject: Reply with quote

No it's not in there. Can I edit the /.config file to suite my needs or do I have to recompile my kernel? Also if I have to recompile, what do I need to put in there?

Let me re-phrase.. It's "not set" but I DID compile NTFS support into my kernel.

EDIT: :: bangs head against the wall, computer desk, floor, car door(s) :: I emerged ntfsprogs which went fast, I forgot to check on emerging sys-fs/fuse....... 62 packages later ..... I will be compiliing until the cows come home.
Back to top
View user's profile Send private message
TheWhiteKnight
Apprentice
Apprentice


Joined: 08 Nov 2003
Posts: 180
Location: West Virginia, Ohio, Pennsylvania

PostPosted: Mon Jul 03, 2006 1:37 am    Post subject: Reply with quote

[SOLVED]

I was playing around with the fstab and instead of having /dev/hdc I <as a fluke> put in hdc1 and hdd1 and KDM popped right up with mounting the drives. w00t!

Thanks to all that helped me on this!!!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
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