Welcome!
Important information
-- Information on torrent hosting changes
-- Information on MX15/16 GPG Keys
-- Spectre and Meltdown vulnerabilities

News
-- MX Linux on social media: here
-- Mepis support still here

Current releases
-- MX-18.1 Point Release release info here
-- Migration Information to MX-18 here
-- antiX-17.3.1 release info here

New users[/u
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

An Immortal folder from the Gods cannot be deleted

Discussion about the MEPIS Community's Repo.
Post Reply
User avatar
Stevo
Forum Veteran
Forum Veteran
Posts: 18011
Joined: Fri Dec 15, 2006 8:07 pm

An Immortal folder from the Gods cannot be deleted

#1

Post by Stevo » Wed Feb 17, 2016 1:20 am

even by root. It's left behind in the build folder after backporting Plank 0.10.1 from upstream.

It's /tests/.gvfs, so I assume it has something to do with the tests that the build procedure ran and gvfs. I own the folder, but it's read-only, and if I change it to read-write, it changes back instantly. I find lots of posts about about unremovable .gvfs files on the Net, not anything quite like this, though.

I can actually kill it and the folder it lives in by booting from another install or Live media, mounting the drive and deleting it, but that's a bit awkward...

Edit: actually it's an empty folder, OP edited to reflect this.
Last edited by Stevo on Wed Feb 17, 2016 2:29 pm, edited 1 time in total.

User avatar
lucky9
Forum Veteran
Forum Veteran
Posts: 11376
Joined: Wed Jul 12, 2006 5:54 am

Re: An Immortal file from the Gods cannot be deleted

#2

Post by lucky9 » Wed Feb 17, 2016 1:59 am

Sometimes you need the 'Wooden Stake Through the Heart' type of solution.
Yes, even I am dishonest. Not in many ways, but in some. Forty-one, I think it is.
--Mark Twain

User avatar
Utopia
Forum Veteran
Forum Veteran
Posts: 3845
Joined: Sun Apr 29, 2007 11:53 am

Re: An Immortal file from the Gods cannot be deleted

#3

Post by Utopia » Wed Feb 17, 2016 4:15 am

Kept a note from last time someone had this problem. Then the solution was chattr.
chattr -i filename to remove the immutable attribute.
https://en.wikipedia.org/wiki/Chattr
Henry

User avatar
uncle mark
Forum Veteran
Forum Veteran
Posts: 4990
Joined: Sat Nov 11, 2006 10:42 pm

Re: An Immortal file from the Gods cannot be deleted

#4

Post by uncle mark » Wed Feb 17, 2016 1:34 pm

Couldn't imagine there not being a way. Sounds like something a Win malware would do.
Desktop: Custom build Asus/AMD/nVidia -- MEPIS 11
Laptop: Acer Aspire 5250 -- MX-15
Assorted junk: assorted Linuxes

User avatar
Eadwine Rose
Forum Veteran
Forum Veteran
Posts: 7119
Joined: Wed Jul 12, 2006 2:10 am

Re: An Immortal file from the Gods cannot be deleted

#5

Post by Eadwine Rose » Wed Feb 17, 2016 1:35 pm

Oh I just had one on my livedvd with persistence. Wanting to start over I decided to delete the files that were on the thing, thunar as root. And one file would not be deleted. I cannot remember which one it was but not even root got rid of it.

Gparted did though when I simply redid the drive.



Edit: found out which file it was: ldlinux.sys

Solution: The file is set to be immutable, so you must remove that attribute before you can delete it.
# chattr -i ldlinux.sys
# rm ldlinux.sys
That did it for me. Source: https://bbs.archlinux.org/viewtopic.php ... 1#p1475631
MX-18_x64 20-12-2018 * 4.19.0-1-amd64 ext4 Xfce 4.12.3 * AMD Asus M4A785TD-V EVO AM3 * ASUS GF GT640-1GD5-L NVIDIA 390.87 * AMD Proc. Athl II X4 635, sAM3 * HDA ATI SB VT1708S An * 2x4Gb DDR3 1600 Kingston * Samsung S24D330 & P2250 * HP Envy5030

User avatar
Stevo
Forum Veteran
Forum Veteran
Posts: 18011
Joined: Fri Dec 15, 2006 8:07 pm

Re: An Immortal folder from the Gods cannot be deleted

#6

Post by Stevo » Wed Feb 17, 2016 2:56 pm

I kept getting the message that the resource or device is busy; I assume that it's some gvfs process started during the internal test procedure that still is running. Probably killing the process would free it up...

Stevo casts Dispell Immutablity

Code: Select all

chattr -i .gvfs
(Something about inappropriate iocntl)

Dispell Immutability
has failed!


At this point, I just rebooted the VM and was able to remove the folder.

Post Reply

Return to “CR Discussion”