Can not erase Directory via terminal

>:(I have tried to erase a directory (as root) wit the command rm -r it says the directory ir read only
When I try to change permissions with the command chmod -R 777 it says the directory can not be changed .Has anyone an idea what is going on?
The directory to be erased is located in a portable Disk, NTSF formatted

Thanks

We always like to see real output, posted between CODE tags. Please show us the output of


mount
ls -ld /media/*

with the portable disk mounted.

On 2013-03-07, jcaser1948 <jcaser1948@no-mx.forums.opensuse.org> wrote:
>
>>:(I have tried to erase a directory (as root) wit the command rm -r
> it says the directory ir read only
> When I try to change permissions with the command chmod -R 777 it says
> the directory can not be changed .Has anyone an idea what is going on?
> The directory to be erased is located in a portable Disk, NTSF
> formatted

I assume you mean NTFS, and I assume you can delete the directory as root. Linux-style file/directory permissions for
NTFS partitions do not work like they do on ext4 partitions and security for non-root access to NTFS partitions are
specified in /etc/fstab, so without seeing the contents of you fstab, I cannot 100% sure that’s the cause. If you’re
happy to enable read/write for all users, you can blank the optional fstab specifications for the relevant partition in
/etc/fstab (i.e. uid=xxx, gid=xxx) - this can is most safely done within YaST’s bootloader configuration dialog box if
you’re not familiar with editing /etc/fstab files.

On 2013-03-07 11:56, jcaser1948 wrote:
>
>> :(I have tried to erase a directory (as root) wit the command rm -r
> it says the directory ir read only
> When I try to change permissions with the command chmod -R 777 it says
> the directory can not be changed .Has anyone an idea what is going on?
> The directory to be erased is located in a portable Disk, NTSF
> formatted

Verify mount permissions.

Verify that NTFS filesystem in Windows.

chmod can not change most permissions of an VFAT or NTFS filesystem,
unix and windows permissions are not the same. Instead fake permissions
are assigned at mount time, for the entire filesystem (ie, al files get
the same permissions).


Cheers / Saludos,

Carlos E. R.
(from 11.4, with Evergreen, x86_64 “Celadon” (Minas Tirith))

NTFS was not O.K
Thaks