Score:-1

Delete files in debian-based did not free up space

in flag

I am using linux deepin 20.02.04 that based on debian 10.10 on my laptop. Some days before, I deleted some files (at least 60GB) from my partition with rm command. But theirs space didn't free up. Are there any way for solve this?

francois P avatar
it flag
can you please 1. explain more (what is your FS, df, du) etc.... 2. try sync too
Mohammad Ali Amini avatar
in flag
Hi @francoisP, I don't know what is your mean of FS? Do you want to know my partition format? it's ext4.
guiverc avatar
cn flag
Please refer https://askubuntu.com/help/on-topic, Ubuntu and official *flavors* of Ubuntu (https://ubuntu.com/download/flavours) are on-topic on this site. The on-topic link provides alternate SE sites for non-Ubuntu OSes.
Score:1
it flag

ok so your are not using a "specific" File system.

On Linux or Unix systems, deleting a file via rm or through a file manager application will unlink the file from the file system's directory structure; however, if the file is still open (in use by a running process) it will still be accessible to this process and will continue to occupy space on disk. Therefore such processes may need to be restarted before that file's space will be cleared up on the filesystem.

you can find process using the files keeping them openned from lsof

for example :

 lsof -Fn -Fs | grep -i deleted

Files can also be deleted but scheduled for the real deletion so you have to sync

using the sync command

of course if you reboot your system, process are stopped & issue deseapper too.

Another point to consider is special files like sockets & logs always appending new datas so file is permanantly getting bigger & bigger for ever until user stop the process that is uselessly written for ever.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.