NTFS under Linux: Locked & chmod: Operation not supported
I have Linux SUSE 9.3 Pro and a partition with Windows XP Home on it. I used to be able to open it normally (only read permissions), but as I reinstalled Linux due to a mouse problem, I found that the permissions have been altered. I would like to be able to read (and copy to my linux directory) from this ntfs partition. I have tried chown - R /WinXP as a superuser, but now I am allowed into all directories, but the files are still locked, except for the superuser... Chmod on independent files gives me "chmod: operation not supported". Somehow the complete folder seems to be locked.
# fdisk -l Disk /dev/sda: 80.0 GB, 80000000000 bytes 255 heads, 63 sectors/track, 9726 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sda1 1 5 40131 de Dell Utility /dev/sda2 * 6 6756 54227407+ 7 HPFS/NTFS /dev/sda3 6757 9725 23848492+ f W95 Ext'd (LBA) /dev/sda5 6757 8714 15727603+ 83 Linux /dev/sda6 8715 9041 2626596 83 Linux /dev/sda7 9042 9368 2626596 83 Linux /dev/sda8 9369 9725 2867571 82 Linux swap / Solaris and /etc/fstab looks this way: /dev/sda5 / reiserfs acl,user_xattr 1 1 /dev/sda2 /WinXP/ ntfs defaults 0 0 /dev/sda7 /home reiserfs acl,user_xattr 1 2 /dev/sda6 /usr reiserfs acl,user_xattr 1 2 /dev/sda8 swap swap pri=42 0 0 devpts /dev/pts devpts mode=0620,gid=5 0 0 proc /proc proc defaults 0 0 usbfs /proc/bus/usb usbfs noauto 0 0 sysfs /sys sysfs noauto 0 0 /dev/dvd /media/dvd subfs noauto,fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0 /dev/dvdrecorder /media/dvdrecorder subfs noauto,fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0 /dev/fd0 /media/floppy subfs noauto,fs=floppyfss,procuid,nodev,nosuid,sync 0 0 Is there something I need to alter? Entries in fstab? I've read something with umask=0000 instead of defaults on line 2 of fstab... Can anybody help? Do I have to run some kernel/KDE system configuration afterwards? Thanks in advance! |
well, you really need to edit your /etc/fstab file so that it is set for 'user' to be allowed to read from it.
the wrong part its: /dev/sda2 /WinXP/ ntfs defaults 0 0 defaults i believe is for read only for root user. you will need to change this to something like auto,user or give a guid maybe........ |
Change it to
/dev/sda2 /WinXP/ ntfs ro,umask=000 0 0 This will allow everyone to read the partition. |
The mount(8) manpage doesn't mention dmask & fmask and it has been a feature of the ntfs driver since long.
See /usr/src/linux/Documentation/filesystems/ntfs.txt The defaults values are: dmask=0077 fmask=0177 uid=0 & gid=0 dmask=0022 & fmask=0133 are healthier |
do I have to run something do complete configuration in SuSE 9.3? something like ldconfig or SuSEconfig? How can I run them?
|
After you modified fstab you don't need to run anything, just remount the partition.
As to the config tools, you... just answered your own question. To run ldconfig, as root type ldconfig, and for SuSEconfig - SuSEconfig. But you won't need to run the second manually and the first only in rare cases when you manually installed some library which some program depends on and it couldn't find this library. |
Yes, thanks! It works perfectly now...!!!
|
All times are GMT -5. The time now is 06:37 PM. |