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 ...
- 12-12-2006 #1Just 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.
- 12-12-2006 #2change it to/dev/hda1 /mnt/xp ntfs user,rw 0 0
all users will have read access. to enable write access for NTFS partitions, install ntfs-3g package.Code:/dev/hda1 /mnt/xp ntfs defaults,umask=0,uid=1000,gid=1000 0 0
CasperIt is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 12-12-2006 #3Just 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
- 12-12-2006 #4this is for mounting partitions manually through terminal/konsole.
Originally Posted by dubenaex
do not add this code in /etc/fstab file.
CasperIt is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 12-12-2006 #5Just 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
- 12-12-2006 #6
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.
CasperIt is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 12-12-2006 #7Just 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
- 12-12-2006 #8Linux User
- Join Date
- Feb 2006
- Posts
- 484
hi
probably your disk in the "disk" group
so add yourself to the disk group
and edit the fstab , add this line and delete the old entryusermod -G disk username
/dev/hda1 /mnt/xp ntfs ro,user,auto,gid=disk,umask=222 0 0
- 12-13-2006 #9Just 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
- 12-13-2006 #10Linux User
- Join Date
- Feb 2006
- Posts
- 484
edit your fstab , and change the other entries on the same way like the first
case


Reply With Quote
