невозможно удалить каталоги из корзины RAID

334
NMAAHC MediaLab

У меня 9TB RAID 0 состоит из дисков 3x3TB. Я не могу удалить некоторые каталоги, которые были перемещены в корзину.

Volumes/LTO ≈:≈ sudo rm -vrf ./.Trashes/ rm: ./.Trashes//503/c/c: Directory not empty rm: ./.Trashes//503/c: Directory not empty rm: ./.Trashes//503: Directory not empty rm: ./.Trashes/: Directory not empty /Volumes/LTO ≈:≈ 

Я изменил разрешения и попробовал почти все, что я знаю, как удалить их, не стирая RAID, что было бы плохо.

Кроме того, каталоги, на самом деле, кажутся пустыми при любом расследовании, которое я могу провести с ними.

/Volumes/LTO/.Trashes ≈:≈ du -h 0B ./503/c/c 0B ./503/c 0B ./503 0B .  /Volumes/LTO ≈:≈ sudo rm -vfRPd /Volumes/LTO/.Trashes/ rm: /Volumes/LTO/.Trashes//503/c/c: Directory not empty rm: /Volumes/LTO/.Trashes//503/c: Directory not empty rm: /Volumes/LTO/.Trashes//503: Directory not empty rm: /Volumes/LTO/.Trashes/: Directory not empty /Volumes/LTO ≈:≈  

Если я пытаюсь очистить корзину через Finder, он говорит: «Операция не может быть завершена, потому что используется элемент« c »». Но ничто не использует предметы. Я перезагружал компьютер несколько раз.

/Volumes/LTO ≈:≈ lsof | grep /Volumes/LTO/.Trashes/503/c/  /Volumes/LTO ≈:≈ 

:(

1
Do you see any hidden files if you were to do ls -la In any of those directories? What about ownership? Does root own the folder structure for the directory and subdirectories of that path? Richie086 7 лет назад 0
I know the raid array I have has a trash feature that clears out deleted files after a certain amount of time. Have you checked to see if there might be a setting in whatever interface you are using to manage your array? Richie086 7 лет назад 0
@Richie086 There are no hidden files. I `sudo chown -vR` ./.Trashes and I don't use any interface for my RAID, just the Terminal. NMAAHC MediaLab 7 лет назад 0
What about going to the /.Trashes//503/c directory and attempt to rm -vrf the /c: folder? Does that produce the same result of the dir not being empty? Richie086 7 лет назад 0
да, это так @ Richie086 NMAAHC MediaLab 7 лет назад 0
what about if you run du -h ./.Trashes/ Richie086 7 лет назад 0
Does it show any disk usage? Richie086 7 лет назад 0
Alsowhat about rmdir -p --ignore-fail-on-non-empty ./.Trashes/ ? that should do it I would think.. Your rmdir command might have different switches depending on what flavor of Linux you are using, but rmdir usually has a way to recursively delete a directory structure even if it is not empty, Richie086 7 лет назад 0
@Richie086 see above edits. Thanks! NMAAHC MediaLab 7 лет назад 0
what was the result of `sudo rmdir -p --ignore-on-non-empty ./Trashes/` ? When you say 'finder', i assume you mean you are using a Mac. Is that correct? Richie086 7 лет назад 0
can you rename (move) any of the folders underneath `./.Trashes`? `sudo mv /Volumes/LTO/.Trashes/503/c /Volumes/LTO/.Trashes/503/somethingelse'` Richie086 7 лет назад 0
Да, я на Mac. `--remove-on-non-empty` не вариант, который у меня есть, но я не могу понять, как будет иначе, чем` sudo rm -vfrPd` Да, я могу `mv` папки / файлы и вызывать их что угодно, но они все равно не будут удалены. Результаты одинаковы независимо от имени. @ Richie086 NMAAHC MediaLab 7 лет назад 0
Попробуйте 'rmdir --help' Richie086 7 лет назад 0
Я просто удалил и переделал RAID. Это было безнадежно: p Спасибо за советы! NMAAHC MediaLab 7 лет назад 0

0 ответов на вопрос