Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

Need Help. NTFS-3g!

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
6 posts • Page 1 of 1
Author
Message
junkstr
n00b
n00b
Posts: 7
Joined: Mon Jun 30, 2008 10:45 pm

Need Help. NTFS-3g!

  • Quote

Post by junkstr » Fri Sep 05, 2008 8:04 pm

Hello, I am using the NTFS-3g driver as I have a ntfs partition that needs mounting with write support. Every time I mount the partition every files permissions gets set to root:root. I have tried to chown -hR username:username /files at least 20 times. I have umounted the partition and used the kernel driver, and permissions can be changed. When I remount with the NTFS-3g driver the permissions set back as root:root, and will not change for the life of it.

Heres the fstab settings I used, and have tried.

/dev/sda1 /boot ext2 defaults,noatime 1 2
/dev/sda2 / reiserfs noatime 0 1
/dev/sda5 /mnt/Storage ntfs-3g 0 0
/dev/sda4 none swap sw 0 0

-----------------------------------------------------------------------------------

/dev/sda5 /mnt/Storage ntfs-3g users 0 0

-----------------------------------------------------------------------------------

/dev/sda5 /mnt/Storage ntfs-3g quiet,defaults,locale=en_US.utf8,umask=0

-----------------------------------------------------------------------------------


Here is emerge -pv ntfs3g ->

Calculating dependencies... done!
[ebuild R ] sys-fs/ntfs3g-1.2531 USE="suid -debug" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB

---------------------------------------------------------------------------------

Cloud ~ # uname -a
Linux Cloud 2.6.25-gentoo-r7 #1 SMP Thu Sep 4 07:50:17 CDT 2008 x86_64 Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz GenuineIntel
GNU/Linux




Need help! Thank you.
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56104
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Fri Sep 05, 2008 8:16 pm

junkstr,

ntfs and *nix permissions are not compatible.
You need to set some combination of umask=, gid= and uid= in the options for your ntfs volume in /etc/fstab

man mount explains it in the section on the FAT filesystem.
Note, to see inside directories, they need the x bit set as it apples to you.

Code: Select all

/dev/sda5 /mnt/Storage ntfs-3g umask=0 0 0 
makes everything rwxrwxrwx, or wide open.
You may not want that.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
irgu
Tux's lil' helper
Tux's lil' helper
Posts: 131
Joined: Fri Apr 25, 2003 10:43 am

  • Quote

Post by irgu » Sat Sep 06, 2008 10:24 am

NeddySeagoon wrote:ntfs and *nix permissions are not compatible.
They are when using the file ownership, permissions, ACL enhanced NTFS-3G: http://pagesperso-orange.fr/b.andre/security.html

But I agree that typically the fmask, dmask, uid, gid options are indeed enough.
Top
nixnut
Bodhisattva
Bodhisattva
User avatar
Posts: 10974
Joined: Fri Apr 09, 2004 1:43 pm
Location: the dutch mountains

  • Quote

Post by nixnut » Sat Sep 06, 2008 11:33 am

Moved from Gentoo Chat to Other Things Gentoo.
Not a chat subject, so moved here
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Top
junkstr
n00b
n00b
Posts: 7
Joined: Mon Jun 30, 2008 10:45 pm

  • Quote

Post by junkstr » Sat Sep 06, 2008 4:50 pm

I set the UID,GID, but nothing seemed to work. I formated the NTFS partition to ext3, and just using the ext3 partition through the ext ifs driver in windows. I tried every option people through at me in IRC, and this forum but the permission would not change.
Top
lyallp
Veteran
Veteran
User avatar
Posts: 1655
Joined: Thu Jul 15, 2004 12:07 am
Location: Adelaide/Australia
Contact:
Contact lyallp
Website

  • Quote

Post by lyallp » Sat Sep 13, 2008 11:19 am

I setup my ntfs3g /etc/fstab entries like the following :-

Code: Select all

/dev/sdb1               /mnt/win_3              ntfs-3g defaults,gid=ntfs,umask=0,umask=007,nls=utf8,silent     0 0
This requires that you create a group called 'ntfs' and make yourself a member of that group.

Code: Select all

groupadd ntfs

Code: Select all

usermod -G ntfs yourUser
That way, when the filesystem is mounted, if you are in the 'ntfs' group, you can write to it, otherwise not.
This was my compromise between having the NTFS filesystems wide open and being usable, under linux without requiring me to be logged in as root.
...Lyall
Top
Post Reply

6 posts • Page 1 of 1

Return to “Other Things Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic