Why can't I delete this directory?

Johannes Ernst

Transcript:

$ ls -al
total 0
drwxrwxrwx 1 root root 8 Jun 14 05:13 .
drwxrwxrwx 1 root root 6 Jun 14 04:57 ..
drwxrwxrwx 1 root root 0 Jun 12 00:29 DARN
$ ls -al DARN/
total 0
drwxrwxrwx 1 root root 0 Jun 12 00:29 .
drwxrwxrwx 1 root root 8 Jun 14 05:13 ..
$ sudo lsof | grep DARN
$ sudo rmdir DARN
rmdir: failed to remove 'DARN': Operation not permitted

I can rename the directory, I can even move it outside of its parent. Reboot didn't help either.

This is Arch Linux 4.0.5-1-ARCH (current).

Update: Dan suggested extended attributes:

$ sudo lsattr .
---------------- ./DARN
$ sudo lsattr DARN/
$ 

I guess that means there aren't any?

MariusMatutiae

From the BTRFS FAQ:

if you get:

rmdir: failed to remove ‘emptydir’: Operation not permitted

then this is probably because "emptydir" is actually a subvolume. You can check whether this is the case with:

 # btrfs subvolume list -a /mountpoint

To delete the subvolume you'll have to run:

 # btrfs subvolume delete emptydir

This is apparently a well-known problem, with a well-defined solution. If this works, I would also run

  btrfs check --repair /dev/sdXY

just in case.

If all else fails, run

     lsof +D /path/to/DARN

from outside DARN, and see whether anything is actually accessing the directory so fast that you cannot see it.

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

분류에서Dev

Why can't I switch to a virtual avfs directory with quotes?

분류에서Dev

Why can't I delete this remote bookmark in Mercurial (hg)?

분류에서Dev

Why can I not rename the directory of my file?

분류에서Dev

Why can't I delete all partitions on a flash drive in Windows 7?

분류에서Dev

PHP I can't delete uploaded file

분류에서Dev

Why can't a user see a specific directory in public folder in outlook?

분류에서Dev

Why can't I see gnome extensions?

분류에서Dev

Why I can't rotate the Player transform?

분류에서Dev

Why can't I pgrep a process?

분류에서Dev

Why can't I draw elements to the stage?

분류에서Dev

Why can't I use for in makefile on Windows?

분류에서Dev

Why can't I create a Jenkins account?

분류에서Dev

Why I can't select MF?

분류에서Dev

Why can't I write to the file mmaped

분류에서Dev

Why can't I change the value in GridView?

분류에서Dev

Why can't I read whole file?

분류에서Dev

Why can't I write to this buffer?

분류에서Dev

Why can't I rename shapes in Visio?

분류에서Dev

Can't access directory I am a group member of

분류에서Dev

I can't delete a file - even when using unlocker

분류에서Dev

how can I delete apps that aren't installed in dash?

분류에서Dev

How can I recursively find a directory by name and delete its contents (including all sub-directories and files) while keeping the directory itself?

분류에서Dev

Why can't I execute a script I created

분류에서Dev

Why does 'find -delete ' delete all files in a directory recursively

분류에서Dev

why can't I return to login html page?

분류에서Dev

why can't I take the mean using np.mean()

분류에서Dev

Why can't I use this 'void' type in a range based for loop?

분류에서Dev

Why can't I crash my system with a fork bomb?

분류에서Dev

Why can't I spoof Facebook with my own DNS server?

Related 관련 기사

뜨겁다태그

보관