Find the answer to your Linux question:
Results 1 to 6 of 6
I finally replaced my Windows with Linux.. However, I need to run applications and modify files that are on NTFS mounts. I am unable to change ownership, permissions, and groups ...
  1. #1
    mat
    mat is offline
    Just Joined!
    Join Date
    Apr 2011
    Posts
    3

    How to change permissions and ownership for NTFS mounts?

    I finally replaced my Windows with Linux.. However, I need to run applications and modify files that are on NTFS mounts. I am unable to change ownership, permissions, and groups on these files so I may modify them without having to copy. I have several times attempted to chmod, chgrp, chown, etc.. while logged-in as root user; however it is to no avail. The owner and permissions are still geared towards root. How can I change ownership and permissions on NTFS files so I can modify them without having to convert/copy them over to ext4 or different file system? Thanks!

    - Mat

    btw: I am using OpenSuse 11.4 and running Windows apps with VirtualBox (with Vista installation image). I still have Win7 on my computer (non-emulated) and I would like to keep some files on those NTFS partitions so when I occasionally need to boot into Win7 I can modify those files because Windows blows and doesn't support Linux.

  2. #2
    Trusted Penguin jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    4,071

  3. #3
    mat
    mat is offline
    Just Joined!
    Join Date
    Apr 2011
    Posts
    3
    Hahaha.. not exactly. That page was one of my main resources when I tried all the aforementioned. I could be missing something, though so I'll look through it again. And I do have the NTFS 3g system for writing (which I forgot to mention).

    And thanks!

  4. #4
    Linux Guru rokytnji's Avatar
    Join Date
    Jul 2008
    Location
    Pecos, Texas
    Posts
    2,942
    SDB:NTFS - openSUSE

    My /etc/fstab in Antix. I had to use UUID to mount partitions like Windows,Puppy Linux,and Fat32 partitions, because I use 2 different kernels. One kernel uses /dev/sdx. The other used /dev/hdx as partition identifiers. I have auto for mount at boot. user to modify as regular user. Hope that helps.


    Code:
    # Pluggable devices are handled by uDev, they are not in fstab
    UUID=3fe7d362-f455-43a0-9eb6-d60231f24be2 / ext3 defaults,noatime 1 1
    proc /proc proc defaults 0 0
    devpts /dev/pts devpts mode=0622 0 0
    # Dynamic entries below
    UUID=1A20A02E20A01335 /mnt/hda1 ntfs-3g auto,users,gid=users,dmask=002,fmask=113,relatime 0 0
    UUID=38d34375-a4c6-4fda-bcc7-736eeb487061 swap swap sw,pri=1 0 0
    UUID=93317189-8b9c-440a-9224-0799fa567f9b /mnt/hda6 ext3 auto,users,exec,relatime 0 0
    UUID=4B5F-B945 /mnt/hda7 vfat auto,users,gid=users,dmask=002,fmask=113,relatime 0 0
    /dev/cdrom /media/cdrom udf,iso9660 noauto,users,exec,ro 0 0
    /dev/hdc /media/cdrom udf,iso9660 noauto,users,exec,ro 0 0
    my kernels are way far apart. One is 2.6.32. The other is 2.6.38. That is why I used UUID.
    I don't run rpm distros like Opensuse,Fedora,CentOS. So best I can do.

    Code:
    # blkid
    /dev/sda1: UUID="1A20A02E20A01335" TYPE="ntfs" 
    /dev/sda3: UUID="3fe7d362-f455-43a0-9eb6-d60231f24be2" TYPE="ext3" 
    /dev/sda5: UUID="38d34375-a4c6-4fda-bcc7-736eeb487061" TYPE="swap" 
    /dev/sda6: LABEL="/" UUID="93317189-8b9c-440a-9224-0799fa567f9b" TYPE="ext3" 
    /dev/sda7: LABEL="/Data1" UUID="4B5F-B945" TYPE="vfat"
    Linux Registered User # 475019
    Lead,Follow, or get the heck out of the way
    AntiX,Puppy,Ubuntu,Windows 7=(cuz of scooters)
    Open CourseWare for Linux Geeks

  5. #5
    mat
    mat is offline
    Just Joined!
    Join Date
    Apr 2011
    Posts
    3
    Well, thanks everyone for all advice. It only helped maybe 10%, though. I realize what I want to accomplish is complex (mainly, there is multiple bits I want to accomplish with also groups and permissions and partitions); and it is difficult for me to express the complexity without taking probably a good 1/2 hour to articulate on here.

    However, I have found some good resources on ntfs-3g: google "ntfs-3g faq" (I currently cannot post direct link since I am new user in forum)

    It even has some direction/answer to "Why have chmod and chown no effect?" which was very perplexing.. though I figured out through inference after much trial and error. It's too bad I didn't find this faq before that.

    The point is, I was first introduced to Linux several years ago (when I was 13). I always wanted to learn UNIX but I reasoned: Well, I'll just do dual-boot or emulate Linux and gradually move over to it. That does not work too well for same reason one does not really gradually learn a foreign language (you can.. but it takes way too long).

    I have replaced all my main Windows machines with OpenSUSE (will also try other distros, too on different partitions!) and have committed to using Linux systems from this point forward. I will only use Windows for specific applications (like Adobe products I own) and most of the time I will just use Windows in an emulated environment like through the superior VBox. I am very new but my problems lie only in lack of experience.

    In time, I will accomplish everything I need to. Thanks, again, for advice, and I will continue to post and read in these forums to further my learning.

    Cheers.

  6. #6
    Trusted Penguin jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    4,071
    it is difficult for me to express the complexity without taking probably a good 1/2 hour to articulate on here.
    We're not under any time constraints here!

    But keep going at it, post your questions.
    We'll help where we can.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...