You are not logged in.

#1 2018-11-18 21:55:42

Bladtman242
Member
Registered: 2012-02-14
Posts: 127

[solved] Can't delete folder in /var/cache

I've moved the /var/cache/pacman directory to /var/cache/pacman~, and moved it's contents into a newly created /var/cache/pacman btrfs subvolume.
This may or may not be a good idea, but my trouble is that now I can't delete the pacman~ dir.

sudo rmdir pacman\~
rmdir: failed to remove 'pacman~': Operation not permitted
sudo lsattr | grep pacman
------------------- ./pacman~
------------------- ./pacman

What am I missing here?

Last edited by Bladtman242 (2018-11-23 21:33:19)

Offline

#2 2018-11-21 05:26:10

haxolotl
Member
Registered: 2018-11-21
Posts: 1

Re: [solved] Can't delete folder in /var/cache

rmdir does not work for non-empty files. Did you try "rm -rf pacman\~" ?

Last edited by haxolotl (2018-11-21 05:26:43)

Offline

#3 2018-11-23 21:25:41

Bladtman242
Member
Registered: 2012-02-14
Posts: 127

Re: [solved] Can't delete folder in /var/cache

haxolotl wrote:

rmdir does not work for non-empty files. Did you try "rm -rf pacman\~" ?

I did -- same result.
I'm a little weirded out by this.

Last edited by Bladtman242 (2018-11-23 21:26:11)

Offline

#4 2018-11-23 21:33:04

Bladtman242
Member
Registered: 2012-02-14
Posts: 127

Re: [solved] Can't delete folder in /var/cache

Ok. That was stupid.
Apparently, I've done this before and forgot about it. So the pacman~ dir is actually a btrfs subvolume. btrfs sub del pacman\~ did the trick..
Sorry for wasting your time!

Offline

Board footer

Powered by FluxBB