View previous topic :: View next topic |
Author |
Message |
AstroTux Tux's lil' helper
Joined: 03 Dec 2005 Posts: 103 Location: /home/M31
|
Posted: Mon Jun 19, 2006 3:47 am Post subject: [RESOLVED] NTFS Write Support respect NTFS Permissions? |
|
|
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!
Last edited by AstroTux on Mon Jun 19, 2006 6:42 am; edited 1 time in total |
|
Back to top |
|
|
Aries-Belgium l33t
Joined: 08 Jul 2005 Posts: 730 Location: Willebroek, Belgium
|
Posted: Mon Jun 19, 2006 5:52 am Post subject: |
|
|
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 |
|
|
AstroTux Tux's lil' helper
Joined: 03 Dec 2005 Posts: 103 Location: /home/M31
|
Posted: Mon Jun 19, 2006 6:15 am Post subject: |
|
|
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!
Last edited by AstroTux on Mon Jun 19, 2006 6:17 am; edited 1 time in total |
|
Back to top |
|
|
rhill Retired Dev
Joined: 22 Oct 2004 Posts: 1629 Location: sk.ca
|
Posted: Mon Jun 19, 2006 6:17 am Post subject: |
|
|
/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 |
|
|
AstroTux Tux's lil' helper
Joined: 03 Dec 2005 Posts: 103 Location: /home/M31
|
Posted: Mon Jun 19, 2006 6:20 am Post subject: |
|
|
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! |
|
Back to top |
|
|
Aries-Belgium l33t
Joined: 08 Jul 2005 Posts: 730 Location: Willebroek, Belgium
|
Posted: Mon Jun 19, 2006 6:25 am Post subject: |
|
|
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:
_________________ Ep2.nl | Developers Community |
|
Back to top |
|
|
AstroTux Tux's lil' helper
Joined: 03 Dec 2005 Posts: 103 Location: /home/M31
|
Posted: Mon Jun 19, 2006 6:29 am Post subject: |
|
|
Hi,
Thanks!! That makes sense.
Best regards,
AstroTux. _________________ Registered Linux User #404385
Viva Andromeda! |
|
Back to top |
|
|
TheWhiteKnight Apprentice
Joined: 08 Nov 2003 Posts: 180 Location: West Virginia, Ohio, Pennsylvania
|
Posted: Tue Jun 27, 2006 11:32 am Post subject: |
|
|
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 |
|
|
linuxtuxhellsinki l33t
Joined: 15 Nov 2004 Posts: 700 Location: Hellsinki
|
Posted: Tue Jun 27, 2006 7:59 pm Post subject: |
|
|
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 |
|
|
TheWhiteKnight Apprentice
Joined: 08 Nov 2003 Posts: 180 Location: West Virginia, Ohio, Pennsylvania
|
Posted: Sun Jul 02, 2006 2:13 am Post subject: |
|
|
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 |
|
|
Aries-Belgium l33t
Joined: 08 Jul 2005 Posts: 730 Location: Willebroek, Belgium
|
Posted: Sun Jul 02, 2006 3:41 am Post subject: |
|
|
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 |
|
|
TheWhiteKnight Apprentice
Joined: 08 Nov 2003 Posts: 180 Location: West Virginia, Ohio, Pennsylvania
|
Posted: Mon Jul 03, 2006 12:00 am Post subject: |
|
|
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 |
|
|
TheWhiteKnight Apprentice
Joined: 08 Nov 2003 Posts: 180 Location: West Virginia, Ohio, Pennsylvania
|
Posted: Mon Jul 03, 2006 1:37 am Post subject: |
|
|
[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 |
|
|
|