Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 14
Hi I have problem with the permissions of my ntfs. As root I can see all the files and folders but as user I can see nothing. I have tried ...
  1. #1
    Just Joined!
    Join Date
    Nov 2006
    Posts
    39

    Permission problem on mounting ntfs

    Hi

    I have problem with the permissions of my ntfs. As root I can see all the files and folders but as user I can see nothing. I have tried many commands I found in google but all of these ends with this result:

    chmod: changing permissions of `/mnt/xp': Read-only file system

    I have tried it graphically ,also, as root but nothing.

    I want to have permission to read at least the files.
    I read in a thread that after kernel 2.6.x you can also write on ntfs.
    Do you know something about that?

    This is my fstab


    # /etc/fstab: static file system information.
    #
    # <file system> <mount point> <type> <options> <dump> <pass>
    proc /proc proc defaults 0 0
    /dev/hda3 / ext3 defaults,errors=remount-ro 0 1
    /dev/hda5 none swap sw 0 0
    /dev/hdd /media/cdrom0 iso9660 ro,user,noauto 0 0
    /dev/hdc /media/cdrom1 iso9660 ro,user,noauto 0 0
    /dev/fd0 /media/floppy0 auto rw,user,noauto 0 0
    /dev/hda1 /mnt/xp ntfs user,rw 0 0
    /dev/hda2 /mnt/xp_2 ntfs rw,users 0 0
    /dev/hdb1 /mnt/xp_3 ntfs rw,users 0 0
    /dev/hdb5 /mnt/xp_4 ntfs rw,users 0 0


    If you have any useful information I would be glad if you post it.

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    /dev/hda1 /mnt/xp ntfs user,rw 0 0
    change it to
    Code:
    /dev/hda1 /mnt/xp ntfs defaults,umask=0,uid=1000,gid=1000 0 0
    all users will have read access. to enable write access for NTFS partitions, install ntfs-3g package.






    Casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Just Joined!
    Join Date
    Dec 2006
    Posts
    7
    edit your /etc/fstab and add umask parameter

    example:
    mount /dev/hda1 /media/windows/ -t ntfs -o umask=0222

    parameter umask set permissions for whole disk , so if you want permissions 777 your umask should be umask=0000

  4. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Quote Originally Posted by dubenaex
    mount /dev/hda1 /media/windows/ -t ntfs -o umask=0222
    this is for mounting partitions manually through terminal/konsole. do not add this code in /etc/fstab file.







    Casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  5. #5
    Just Joined!
    Join Date
    Nov 2006
    Posts
    39
    devils_casper I have tried your command command earlier and I did it again. The result is the same. Probably you mean that I change the line I save the file and execute the : mount -a

    nothing happens

    If you don't have any futher suggestions I 'll try to install that package and I hope to fix the problem of read and write

  6. #6
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    as i mentioned earlier, you can't *write* in NTFS partitions. All linux distros has NTFS readonly access. for write access, you have to install "ntfs-3g" package.
    regarding read access and ownership for 'normal' users, umask will enable that.
    after adding the code i posted, log in as normal user and see if you able to 'read' NTFS partitions.







    Casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  7. #7
    Just Joined!
    Join Date
    Nov 2006
    Posts
    39
    Casper I have already tried it and nothing change. For now I just want to read as a user the ntfs.

    I repeat that Ihave tried all the classic ways with fstab and mount.If you know that I have to change a specific file to take effect at permission please tell me

    Thanks in advance
    krekon

  8. #8
    Linux User
    Join Date
    Feb 2006
    Posts
    484
    hi
    probably your disk in the "disk" group
    so add yourself to the disk group
    usermod -G disk username
    and edit the fstab , add this line and delete the old entry
    /dev/hda1 /mnt/xp ntfs ro,user,auto,gid=disk,umask=222 0 0

  9. #9
    Just Joined!
    Join Date
    Nov 2006
    Posts
    39
    You are right.I did it and it worked. But it worked only at this folder. the other three they are still locked. And of course I changed the part that is different:

    ntfs ro,user,auto,gid=disk,umask=222 0 0

    this is my fstab now

    # /etc/fstab: static file system information.
    #
    # <file system> <mount point> <type> <options> <dump> <pass>
    proc /proc proc defaults 0 0
    /dev/hda3 / ext3 defaults,errors=remount-ro 0 1
    /dev/hda5 none swap sw 0 0
    /dev/hdd /media/cdrom0 iso9660 ro,user,noauto 0 0
    /dev/hdc /media/cdrom1 iso9660 ro,user,noauto 0 0
    /dev/fd0 /media/floppy0 auto rw,user,noauto 0 0
    /dev/hda1 /mnt/xp ntfs ro,user,auto,gid=disk,umask=222 0 0
    /dev/hda2 /mnt/xp_2 ntfs rw,users 0 0
    /dev/hdb1 /mnt/xp_3 ntfs rw,users 0 0
    /dev/hdb5 /mnt/xp_4 ntfs rw,users 0 0

    How can I make the folders xp_2,xp_3,xp_4 unlock?
    Do they belong to another group?

    Thank you anyway

  10. #10
    Linux User
    Join Date
    Feb 2006
    Posts
    484
    edit your fstab , and change the other entries on the same way like the first
    case

Page 1 of 2 1 2 LastLast

Posting Permissions

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