How to clean up a full disk?

OlKlym

Member
Joined
Jan 6, 2024
Messages
64
Reaction score
6
Credits
430
Did not pay attention and completely filled the memory of the hard disk. 0 bytes free. And the system now does not even allow you to delete files from the Recycle Bin.

Xubuntu 22.04.03 LTS


How to solve it?
 


Boot on a live Linux USB, mount the hard disk, and proceed to delete carefully. You might start with your Recycle Bin... it is located in your home folder at ~/.local/share/Trash/ and delete all the folders in there (probably 3 folders).

While running on the live USB, you could copy or move some of your stuff to another USB or external hard drive first. It may help keep you from losing anything important.
 
Last edited:
Go to a terminal and use this command to delete the log files
Code:
sudo rm /var/log/*
that should give you enough space to clean up the disk.
good luck.
 
0 bytes free.
Will it even boot?

If you can access your filesystem, you might take a look at the /timeshift folder if it is present on your system. Most folks use an external drive for Timeshift snapshots, but if you didn't, then it could be the cause of your drive filling up.
 
Last edited:
Problem solved.
I did this in terminal rm -r .
Glad it worked for you now see if you can figure out what was causing it to fill up.
 
Problem solved.
I did this in terminal rm -r .

There are plenty of safe ways to create space on a Drive...the above isn't one of them...your problem could be solved permanently.
m09004.gif
 
Most Hard drives use a 3 level system using magnets. One goes up, the other goes down, the third stays in place. A lot of black people thought Quantum Physics meant the distance can change depending on magnetism, when really, they just use more iron in the CD. Called a Blue Ray.
 
Did not pay attention and completely filled the memory of the hard disk. 0 bytes free. And the system now does not even allow you to delete files from the Recycle Bin.
It would have been useful if you had shared the output of "df -h", that way we could see which filesystem was full and how your partition setup is done.
 
Last edited:
Most Hard drives use a 3 level system using magnets. One goes up, the other goes down, the third stays in place. A lot of black people thought Quantum Physics meant the distance can change depending on magnetism, when really, they just use more iron in the CD. Called a Blue Ray.

What does this have to do with creating space on the Drive. ?

m09009.gif
 
Did not pay attention and completely filled the memory of the hard disk. 0 bytes free. And the system now does not even allow you to delete files from the Recycle Bin.

Xubuntu 22.04.03 LTS


How to solve it?

Below we have mentioned the steps about to how to delete files from the Recycle Bin in Xubuntu 22.04.03 LTS

  • Boot on a live Linux USB.
  • Mount( A process of making files and directories on a storage device accessible to the user through the system's directory tree) the hard disk.
  • Proceed to delete carefully.
  • You might start with your Recycle Bin. It is located in your home folder at ~/.local/share/Trash/ and delete all the folders in there (probably 3 folders).
If you are running on the live USB, you can copy or move some of your data to another USB or external hard drive first. It will prevent data loss!
 
Simple system maintenance avoids this problem and of cause common sense too. Why doesen't the OP put the trash icon on the Desktop...makes it so much easier but then you have to empty it.
m1123.gif
 
If I want to look at what takes up much space, and want to delete unneccesary files, I run

Code:
ncdu
ncdu /
ncdu ~/
you can browse folders with it, lookup what takes how much space. Andand delete it, from within the program

Bildschirmfoto vom 2024-01-25 09-30-20.png
[/code]
 

Members online


Top