You are not logged in.

#1 2022-08-07 02:30:30

shoelesshunter
Member
From: USA
Registered: 2014-05-18
Posts: 289

[solved] can't delete or move file. immutable?

I was attempting to change CoW on a VM image. I believe I made it immutable because I can not move or delete it.

lsattr win7-1.qcow2
----i----------------m win7-1.qcow2

I tried

chattr +i win7-1.qcow2

but I still can not modify the file. what am I doing wrong?

Last edited by shoelesshunter (2022-08-07 04:32:14)

Offline

#2 2022-08-07 03:05:37

HalosGhost
Forum Moderator
From: Twin Cities, MN
Registered: 2012-06-22
Posts: 2,097
Website

Re: [solved] can't delete or move file. immutable?

You can see the man page for `chattr`; you'll note that + enables/sets an attribute, and - disables/unsets it.

All the best,

-HG

Offline

#3 2022-08-07 04:31:50

shoelesshunter
Member
From: USA
Registered: 2014-05-18
Posts: 289

Re: [solved] can't delete or move file. immutable?

yes, I just figured that out. the only xattr I've set before was to remove CoW, and that is +C, so I got it backwards. thank you.

Last edited by shoelesshunter (2022-08-07 04:31:59)

Offline

Board footer

Powered by FluxBB