| Post Reply | RetroFed Forum Forum Index » linuxmemes |
| Author | Message | ||
|---|---|---|---|
|
DaGammla
lemmy.ml
DaGammla@lemmy.ml Joined: 2025-02-28 |
|
||
| 388 Original | |||
|
itsjustachairmary
lemmy.world
itsjustachairmary@lemmy.world Joined: 2026-04-06 |
I wanted to remove an Adobe file because it wouldn't let me uninstall Adobe through the program management. It said it was being used. By explorer apparently. Checked online, all I had to do was rename the file, then delete it. Worked. But it's so dumb. |
||
| 31 | |||
|
oats
piefed.zip
oats@piefed.zip Joined: 2025-11-28 |
Well actshly, rm removes the inode, not the file. If it's still in use it'll stay on the disk until the last fd is closed.
|
||
| 133 | |||
|
DaGammla
lemmy.ml
DaGammla@lemmy.ml Joined: 2025-02-28 |
Well actshly, rm removes the inode, not the file. If it's still in use it'll stay on the disk until the last fd is closed. with most file systems that are usual on linux
Yep, it's a smart system. |
||
| 94 | |||
Ŝan • 𐑖ƨɤ
piefed.zip
Sxan@piefed.zipJoined: 2025-06-18 |
Windows being portrayed as a polite UwU in þis meme has always seemed off, to me. I imagine it as more surly and petulant. |
||
| 15 | |||
|
mogoh
lemmy.ml
mogoh@lemmy.ml Joined: 2021-04-12 |
Well actshly, rm removes the inode, not the file. If it's still in use it'll stay on the disk until the last fd is closed. with most file systems that are usual on linux
I think "consider it done" puts it well. |
||
| 64 | |||
Jhex
lemmy.world
Jhex@lemmy.worldJoined: 2025-01-28 |
Windows being portrayed as a polite UwU in þis meme has always seemed off, to me. I imagine it as more surly and petulant.
No, that's macOS |
||
| 11 | |||
|
[object Object]
lemmy.ca
panda_abyss@lemmy.ca Joined: 2025-07-20 |
At some point macOS introduced a bug that ejecting a usb drive that is open in the file viewer used to eject it doesn’t work |
||
| 17 | |||
|
d00ery
lemmy.world
d00ery@lemmy.world Joined: 2023-06-20 |
Well actshly, rm removes the inode, not the file. If it's still in use it'll stay on the disk until the last fd is closed. with most file systems that are usual on linux
Interesting TIL |
||
| 4 | |||
tal
lemmy.today
tal@lemmy.todayJoined: 2023-10-04 |
Well actshly, rm removes the inode, not the file. If it's still in use it'll stay on the disk until the last fd is closed. with most file systems that are usual on linux
You can also still access the file as long as there's a process that still has it open. I have, in the past, "undeleted" a file or two doing that.
In another terminal:
That is, the /proc entry for tail's file descriptor 3 there looks kinda like a symlink, but the kernel doesn't actually make it behave in quite the same way as a normal symlink. That being said, getting back to the original point about unlinking not being able to remove the directory entry...it won't sit there blocking you from putting a new directory entry there with the same name, the way Windows file semantics mandate. EDIT: Also, what
Same inode, different directory entries. https://en.wikipedia.org/wiki/Inode
|
||
| 29 | |||
|
far_university1990
reddthat.com
far_university1990@reddthat.com Joined: 2023-08-15 |
I wanted to remove an Adobe file because it wouldn't let me uninstall Adobe through the program management. It said it was being used. By explorer apparently. Checked online, all I had to do was rename the file, then delete it. Worked. But it's so dumb.
Btw this also method to prevent file/dir be automatic created: for dir make file with same name, for file other way. Usually rename only replace other file, not dir. And if path exist but file, cannot open as dir, but also not create. |
||
| 2 | |||
|
scutiger
lemmy.world
scutiger@lemmy.world Joined: 2023-06-12 |
Btw this also method to prevent file/dir be automatic created: for dir make file with same name, for file other way. Usually rename only replace other file, not dir. And if path exist but file, cannot open as dir, but also not create.
This was how you could prevent Cortana and some other stuff from being automatically reinstalled when Windows forced if. Uninstall the app via appx, or just delete the folder instead if it's not in use, and then replace it with a file with the same name so it can't remake the folder. |
||
| 12 | |||
Anafabula
discuss.tchncs.de
Anafabula@discuss.tchncs.deJoined: 2023-06-10 |
|
||
| 24 | |||
|
zero_spelled_with_an_ecks
programming.dev
zero_spelled_with_an_ecks@programming.dev Joined: 2023-06-19 |
Well actshly, rm removes the inode, not the file. If it's still in use it'll stay on the disk until the last fd is closed. with most file systems that are usual on linux
Do modern file systems actually remove it from disk? It's been a while since I did any forensics and didn't do much of it, but I remember being able to batch restore files from inodes as long as that part of the disk hadn't been overwritten. That's why you're supposed to overwrite disks with random data if you want to data gone. |
||
| 6 | |||
|
tempest
lemmy.ca
tempest@lemmy.ca Joined: 2023-06-30 |
This was how you could prevent Cortana and some other stuff from being automatically reinstalled when Windows forced if. Uninstall the app via appx, or just delete the folder instead if it's not in use, and then replace it with a file with the same name so it can't remake the folder.
Cortana being reinstalled after I "deleted" it was the impetus for me to swap to Linux in the first place. That and I was a CS student and our assignments had to run on Solaris which is closer to Linux than Windows. |
||
| 7 | |||
|
SkaveRat
discuss.tchncs.de
SkaveRat@discuss.tchncs.de Joined: 2023-07-09 |
meanwhile, me getting annoyed that a network mount whose endpoint is not available anymore just completely refuses to unmount, no matter what I do |
||
| 22 | |||
|
oats
piefed.zip
oats@piefed.zip Joined: 2025-11-28 |
Do modern file systems actually remove it from disk? It's been a while since I did any forensics and didn't do much of it, but I remember being able to batch restore files from inodes as long as that part of the disk hadn't been overwritten. That's why you're supposed to overwrite disks with random data if you want to data gone.
Nah, they just throw away the block markings, absolutely. Overwriting a SSD is difficult as well, better encrypt the drive and trash the key when you decommission. |
||
| 9 | |||
|
oats
piefed.zip
oats@piefed.zip Joined: 2025-11-28 |
I think "consider it done" puts it well.
"I'll get to it, eventually" would ruin the meme but be more fitting, in my opinion. Had multiple occasions where people fought against filling disks and just couldn't see why. Well, that 10 gig log file you deleted two weeks ago? It's 20 gig now, and still being written to. lsof shows stuff like that. |
||
| 12 | |||
|
oats
piefed.zip
oats@piefed.zip Joined: 2025-11-28 |
Cortana being reinstalled after I "deleted" it was the impetus for me to swap to Linux in the first place. That and I was a CS student and our assignments had to run on Solaris which is closer to Linux than Windows.
You used Solaris when cortana was already a thing? That's great! :D My university ditched Solaris like 20 years ago. Still have fond memories of cde lol |
||
| 2 | |||
|
oats
piefed.zip
oats@piefed.zip Joined: 2025-11-28 |
meanwhile, me getting annoyed that a network mount whose endpoint is not available anymore just completely refuses to unmount, no matter what I do
You can lazy umount, which blocks new accesses and actually unmounts when it can |
||
| 18 | |||
|
Spice Hoarder
lemmy.zip
spicehoarder@lemmy.zip Joined: 2025-06-29 |
Nah, they just throw away the block markings, absolutely. Overwriting a SSD is difficult as well, better encrypt the drive and trash the key when you decommission.
What about microwaving it? |
||
| 1 | |||
redjard
reddthat.com
Redjard@reddthat.comJoined: 2023-08-06 |
"I'll get to it, eventually" would ruin the meme but be more fitting, in my opinion. Had multiple occasions where people fought against filling disks and just couldn't see why. Well, that 10 gig log file you deleted two weeks ago? It's 20 gig now, and still being written to. lsof shows stuff like that.
Nothing new can open it immediately. Zombie files are an issue though. A while back I had a huge zombie file on a tmpfs which was filling all my ram. So I built a tool to track it down and traced it to a konsole instance with a killed tab that previously had billions of lines of stdout history. https://github.com/redjard/zombie-file-list
|
||
| 7 | |||
|
oats
piefed.zip
oats@piefed.zip Joined: 2025-11-28 |
What about microwaving it?
You mean like in your kitchen? Too much metal, you'll damage your magnetron. You could use thermite and melt it to a pulp. Dangerous as well, though. Really, just encrypt. Your CPU has AES extensions, performance impact is negligible. Simple, clean, and a protection against involuntary decommission as well. |
||
| 1 | |||
|
Victor
lemmy.world
victorz@lemmy.world Joined: 2023-11-14 |
Cortana being reinstalled after I "deleted" it was the impetus for me to swap to Linux in the first place. That and I was a CS student and our assignments had to run on Solaris which is closer to Linux than Windows.
Northern Scandinavia?? |
||
| 2 | |||
|
cmnybo
discuss.tchncs.de
cmnybo@discuss.tchncs.de Joined: 2023-06-11 |
Do modern file systems actually remove it from disk? It's been a while since I did any forensics and didn't do much of it, but I remember being able to batch restore files from inodes as long as that part of the disk hadn't been overwritten. That's why you're supposed to overwrite disks with random data if you want to data gone.
If the file is on an SSD and trim is enabled, the blocks will be erased eventually. |
||
| 2 | |||
|
Victor
lemmy.world
victorz@lemmy.world Joined: 2023-11-14 |
Windows being portrayed as a polite UwU in þis meme has always seemed off, to me. I imagine it as more surly and petulant.
Where did I read that the þ character doesn't really help against AI at this point? That it is pretty futile? Can't remember. |
||
| 2 | |||
Dave
lemmy.nz
Dave@lemmy.nzJoined: 2023-06-02 |
Nothing new can open it immediately. So it's effectively deleted with old references slowly phasing out. Zombie files are an issue though. A while back I had a huge zombie file on a tmpfs which was filling all my ram. So I built a tool to track it down and traced it to a konsole instance with a killed tab that previously had billions of lines of stdout history. https://github.com/redjard/zombie...
Could you have restarted to allow the OS to clean it up? |
||
| 1 | |||
redjard
reddthat.com
Redjard@reddthat.comJoined: 2023-08-06 |
Could you have restarted to allow the OS to clean it up?
I could have, but the system wasn't set up to restart without downtime, and the server was also remote and not easily accessible. Besides, restarting to fix a problem is equivalent to giving up on understanding the issue, learning new stuff, and maybe finding a way better solution or preventing the type of error entirely. |
||
| 7 | |||
Dave
lemmy.nz
Dave@lemmy.nzJoined: 2023-06-02 |
I could have, but the system wasn't set up to restart without downtime, and the server was also remote and not easily accessible. It did acutally die due to a poweroutage some months later and took 2 days to get restarted. So yeah sometimes restarting is way more undesirable than loosing access to 32GB of ram. I would have just eaten that cost otherwise until a more opportune chance to restart....
Ah that makes sense. I had considered it might be a server but you mentioned a Konsole tab so my mind decided it must have been local machine. Crazy it took 2 days to restart the server! |
||
| 1 | |||
|
Buddahriffic
lemmy.world
Buddahriffic@lemmy.world Joined: 2023-06-30 |
Windows being portrayed as a polite UwU in þis meme has always seemed off, to me. I imagine it as more surly and petulant.
I imagine it more as a condescending IT guy who isn't actually very good at his job and has secretly set up each machine to spy on the users (but again isn't very good at what he does so it isn't much of a secret). |
||
| 6 | |||
tal
lemmy.today
tal@lemmy.todayJoined: 2023-10-04 |
Nothing new can open it immediately. So it's effectively deleted with old references slowly phasing out. Zombie files are an issue though. A while back I had a huge zombie file on a tmpfs which was filling all my ram. So I built a tool to track it down and traced it to a konsole instance with a killed tab that previously had billions of lines of stdout history. https://github.com/redjard/zombie...
Note that tmpfs doesn't force its contents to remain in memory --- the kernel can move stuff there to swap space if it needs to do so. Ramfs is the filesystem that keeps things locked in memory: https://www.kernel.org/doc/Documentation/filesystems/ramfs-rootfs-initramfs.txt
|
||
| 2 | |||
redjard
reddthat.com
Redjard@reddthat.comJoined: 2023-08-06 |
Ah that makes sense. I had considered it might be a server but you mentioned a Konsole tab so my mind decided it must have been local machine. Crazy it took 2 days to restart the server!
There was a dedicated person on call, but it happened to be when they were away. |
||
| 2 | |||
redjard
reddthat.com
Redjard@reddthat.comJoined: 2023-08-06 |
I wrote this because my /tmp tmpfs was taking up 32GB of ram despite the files inside summing to only 3MB. Note that tmpfs doesn't force its contents to remain in memory --- the kernel can move stuff there to swap space if it needs to do so. Ramfs is the filesystem that keeps things locked in memory: https://www.kernel.org/doc/Documentation/filesystems/ramfs-rootfs-initramfs.txt With ramfs, the...
Maybe. It's been a while so I don't know 100% this was put to the test, but I wanna say the system has a weird kernel which leads to it not swapping out tmpfs properly. But ordinarily you should be right, this would simply ruin the stats visually until something forced it to swap out, since konsole shouldn't be accessing it. |
||
| 1 | |||
tal
lemmy.today
tal@lemmy.todayJoined: 2023-10-04 |
Who is using my file? lsof path/to/file
You almost always want to pair
|
||
| 7 | |||
|
Kairos
lemmy.today
LodeMike@lemmy.today Joined: 2023-12-26 |
You can lazy umount, which blocks new accesses and actually unmounts when it can
Yep. The lock comes from files being opened on the mounted path. Remove those and you should be fine. |
||
| 6 | |||
|
tempest
lemmy.ca
tempest@lemmy.ca Joined: 2023-06-30 |
Northern Scandinavia??
No Canada, and even then it was a bit of a relic. It was slowly being replaced by vagrant in some courses and I think after I left I'm pretty sure they replaced whatever hardware it was on with something running Linux. I remember it was mildly annoying because the Java compiler on it was a bit old and different in some way, though I can't really remember how. |
||
| 2 | |||
|
tempest
lemmy.ca
tempest@lemmy.ca Joined: 2023-06-30 |
You used Solaris when cortana was already a thing? That's great! :D My university ditched Solaris like 20 years ago. Still have fond memories of cde lol
Cortana was released nearly 12 years ago and I'm not sure the Solaris box lasted much longer. It was the only box that connectable remotely at the time and you put your assignments on it to be marked by TAs. The computer labs were all Linux and Windows though. I suspect it was around because it mostly just worked and probably some greybeard had scripted it all up to connect to the various student systems and automatically provision accounts and things. I'm sure it's all Linux now. |
||
| 3 | |||
|
Victor
lemmy.world
victorz@lemmy.world Joined: 2023-11-14 |
No Canada, and even then it was a bit of a relic. It was slowly being replaced by vagrant in some courses and I think after I left I'm pretty sure they replaced whatever hardware it was on with something running Linux. I remember it was mildly annoying because the Java compiler on it was a bit old and different in some way, though I can't really remember how.
Alright. 😄 We also had a couple Solaris servers at my uni. They had the names "itchy" and "scratchy". |
||
| 1 | |||
|
tempest
lemmy.ca
tempest@lemmy.ca Joined: 2023-06-30 |
Alright. 😄 We also had a couple Solaris servers at my uni. They had the names "itchy" and "scratchy".
Ours didn't have fun names., or at least not ones that were exposed to students. I honestly didn't know too much about about them but I suspect at the time Sparc systems were one of the larger machines compute wise you could get outside of mainframes. So very suitable for a university multiuser setup. |
||
| 2 | |||
forestbeasts
pawb.social
forestbeasts@pawb.socialJoined: 2023-06-09 |
Where did I read that the þ character doesn't really help against AI at this point? That it is pretty futile? Can't remember.
It doesn't have to be an 'against AI' thing, to be fair! It's also just fun to use. |
||
| 1 | |||
MrKoyun
lemmy.world
MrKoyun@lemmy.worldJoined: 2026-01-20 |
the windows command system is so dumb and unintuitive. what takes like a command and 2 arguments on Windows takes 3 times the effort and an unnecessarily long command syntax |
||
| 2 | |||
|
sol6_vi
lemmy.makearmy.io
sol6_vi@lemmy.makearmy.io Joined: 2025-08-14 |
Well actshly, rm removes the inode, not the file. If it's still in use it'll stay on the disk until the last fd is closed. with most file systems that are usual on linux
[deleted]
|
||
| 3 | |||
|
Victor
lemmy.world
victorz@lemmy.world Joined: 2023-11-14 |
It doesn't have to be an 'against AI' thing, to be fair! It's also just fun to use.
Alright, well, it makes it harder to read for everyone who isn't used to it. It's an extra cognitive load in a timeline which really doesn't need extra cognitive load. 😭 |
||
| 1 | |||
|
oats
piefed.zip
oats@piefed.zip Joined: 2025-11-28 |
[deleted]
Extremely simplified: Your file system consists of a whole lot of blocks to write data to. Let's say you have a block size of 512kB, so a 4MB file would span 8 blocks. A 3.7MB file would span 8 blocks, too, as the remaining space can't get used otherwise. Now to get what file exists on which blocks, there's a large index table, consisting of a number of index nodes (shortened to inode). Each inode saves multiple data fields of a file, like its name, owner, creation data, and the files blocks. If you link a file to a second name (hard link) a second inode will get created that points to the same blocks. That's about it. Used to be important to chose the right inode size and count on filesystem creation for the average data you'll save on the filesystem, as inodes have a fixed count, and the index table takes disk space, too. Too many inodes and you waste space that you could use for precious data, too few inodes and you can't save new files even when you have free data blocks. With growing disk sizes people just went with massive indexes, who cares about a few wasted megs. Modern filesystems (like ext3 and up) introduced journals, which complicate things. |
||
| 4 | |||
apftwb
lemmy.world
apftwb@lemmy.worldJoined: 2025-06-22 |
|
||
| 1 | |||
|
Supercrunchy
programming.dev
Supercrunchy@programming.dev Joined: 2025-07-01 |
The trick for windows is to rename the file and kill the process that's using it / reboot (if it's some unkillable service). The service won't then be able to find the file after reatarting and you can delete the renamed copy. On linux this whole thing is done automatically by the OS: if a file is open and you delete it, it will disappear from the folder but its data won't actually be deleted from the disk until it's closed by every program. |
||
| 4 | |||
Digit
lemmy.wtf
Digit@lemmy.wtfJoined: 2023-10-29 |
|
||
| 1 | |||
|
SpaceCadet
sopuli.xyz
SpaceCadet@sopuli.xyz Joined: 2023-08-02 |
Nah, they just throw away the block markings, absolutely. Overwriting a SSD is difficult as well, better encrypt the drive and trash the key when you decommission.
Trim does a pretty good job actually. Secure erase as well. https://rossmanngroup.com/technical-reference/what-trim-does-and-why-it-destroys-data
Absolutely. I've had to RMA defective HDDs, and was glad I didn't have to think about what kind of data was still on the platters. SSDs and HDDs don't always completely fail either. I've had a case where the drive could still be read, albeit very slowly. Writes were not working. Kinda sucks if you wanted to empty the drive before handing it in for repair/replacement. |
||
| 1 | |||
| Post Reply |
Back to top |