Cannot delete, rm: folder-name/: Operation not permitted

I have little problem when I want to delete a folder and its contents, I cannot delete this folder even I login as root.

I tried this command to delete folder which name is "Pindahan My Music":

[CMD=]rm -rv Pindahan\ My\ Music/[/CMD]

then the output said:

Code:
rm: Pindahan My Music/Kategori Campuran/Accoustic & live kolonial/No Doubt - Just A Girl (Acoustic).mp3: Operation not supported
rm: Pindahan My Music/Kategori Campuran/Accoustic & live kolonial/2 Pac - Thug Mansion (acoustic).mp3: Operation not supported
rm: Pindahan My Music/Kategori Campuran/Accoustic & live kolonial/25 Minutes.mp3: Operation not supported
:
:
:
:
# a lot of "Operation not supported" things.
:
:
:
:

This is the output of ls -l command:

Code:
drwxr-xr-x  1 root  wheel     0 Feb  2  2007 Pindahan My Music

this is the output of ls -l command, inside "Pindahan My Music":

Code:
total 0
drwxr-xr-x  1 root  wheel  0 Feb  5  2007 Kategori Campuran
drwxr-xr-x  1 root  wheel  0 Feb  1  2007 Kategori Kolonial
drwxr-xr-x  1 root  wheel  0 Feb  1  2007 Kategori Pribumi
drwxr-xr-x  1 root  wheel  0 Feb  1  2007 ZzzT..Lirik

The location of folder is in external drive that I mount manually to /mnt/hd1 (as root). hd1 is a folder I made (as root).

What should I do to delete "Pindahan My Music"?
 
MrThinker said:
The file system is NTFS, so I type this:

[CMD="mount command"]mount -t ntfs /dev/ada1p3 /mnt/hd1[/CMD]
And suddenly everything made sense! :)

mount_ntfs(8):
[...]

WRITING
There is limited writing ability. Limitations: file must be nonresident
and must not contain any sparces (uninitialized areas); compressed files
are also not supported. The file name must not contain multibyte charac-
ters.

[...]

CAVEATS
This utility is primarily used for read access to an NTFS volume. See
the WRITING section for details about writing to an NTFS volume.

For a full read-write NTFS support consider sysutils/fusefs-ntfs
port/package.

[...]

So install and configure sysutils/fusefs-ntfs. Search the forums if you have any trouble with it. There are many thread about it.
 
SOLVED !

Finally, I should use fusefs-ntfs to do rw on NTFS filesystem. Sorry for my silly question.

Thank you for everyone in this thread. :)
 
I have encountered similar issue when removing kernel build outputs under /usr/obj. It turned out that some files had special immutable flags set and this flag can be removed with chflags -R noschg /usr/obj :-)
 
Back
Top