Welcome!

Please read this important information about Spectre and Meltdown vulnerabilities.
Please read this important information about MX sources lists.
News
  • MX Linux on social media: here
  • Mepis support still here
Current releases
  • MX-17 Final release info here
  • MX-16.1 release info here
  • antiX-17 release info here
    New users
    • Please read this first, and don't forget to add system and hardware information to posts!
    • Read Forum Rules

An Immortal folder from the Gods cannot be deleted

Discussion about the MEPIS Community's Repo.
Message
Author
User avatar
Stevo
Forum Veteran
Forum Veteran
Posts: 14427
Age: 59
Joined: Fri Dec 15, 2006 8:07 pm

An Immortal folder from the Gods cannot be deleted

#1 Postby 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: 11380
Joined: Wed Jul 12, 2006 5:54 am

Re: An Immortal file from the Gods cannot be deleted

#2 Postby 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: 3642
Joined: Sun Apr 29, 2007 11:53 am

Re: An Immortal file from the Gods cannot be deleted

#3 Postby 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: 4902
Age: 2017
Joined: Sat Nov 11, 2006 10:42 pm

Re: An Immortal file from the Gods cannot be deleted

#4 Postby 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: 5060
Age: 45
Joined: Wed Jul 12, 2006 2:10 am

Re: An Immortal file from the Gods cannot be deleted

#5 Postby 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-17_x64 Horizon 2017-12-15 4.14.0-3-amd64 ext4 Xfce 4.12 * AMD Asus M4A785TD-V EVO AM3 * ASUS GeForce GT640-1GD5-L NVIDIA 387.34 * AMD Proc. Athl II X4 635, sAM3 * HDA ATI SB VT1708S An * 2x4Gb DDR3 1600 Kingst * 22" Samsung SyncM P2250 * HP F2280

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

Re: An Immortal folder from the Gods cannot be deleted

#6 Postby 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.


Return to “CR Discussion”

Who is online

Users browsing this forum: No registered users and 1 guest