Problems with hard disk full

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
JaceMan

Problems with hard disk full

Post by JaceMan »

i know this is an old thread, but my wife is currently having this problem as well.

she is running linux mint 12 lxde that i installed on her mini. the drive is so full she is unable to login as her user... interestingly, i can login as root.

It is that issue that helped me find this issue. She came to me saying she couldnt login. I read the forums, found some answers, and checking the contents of df -h I found her drive was 100% full.

Armed with that info, I set out deleting old junk she no longer needed. But I came to realize after deleting several gigs of data that the disk still showed up as completely full. I read here that the items were probably in the trash, but my trash in pcmanfm shows empty

ai should also note that when deleting files, I not only pressed delete on the keyboard, but i also held down the Shift key when deleting her files. Now I see no trace of these files anywhere, but i am also not showing that I have gained any hard drive space.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
xenopeek
Level 25
Level 25
Posts: 29597
Joined: Wed Jul 06, 2011 3:58 am

Re: Problems with hard disk full

Post by xenopeek »

Post split from http://forums.linuxmint.com/viewtopic.php?f=90&t=83115 and moved here. Let's have a new topic for new problems, and not necrobump (ew) no matter how well intentioned :wink:

Linux reserves a portion of the disk space for the root user, hence you can still do things as the root user. Suggest you do the following, run this command to find out which directory in / uses the most disk space. The output of this command will be sorted, with the largest directories at the end.

Code: Select all

du -s /* | sort -n
Assuming /home is the biggest, as an example, run the command again for the directory that was the biggest:

Code: Select all

du -s /home/* | sort -n
This way you can drill down to the directory that is the root of the problem.

Note that emtying the trash as root will only empty root's trash, and not any other user's trash.
Image
viking777

Re: Problems with hard disk full

Post by viking777 »

First of all we need to see where the problem is. Open a terminal then run these two commands:

Code: Select all

cd /
followed by

Code: Select all

sudo du -xh --max-depth=1|sort -hr
Which will list the folders in size order (and human readable form ie Gb Mb Kb)

You can either post the output of the second command or drill down further to see what the problem folders are. For example on my system the largest folder is /usr so to investigate its contents I would first run

Code: Select all

cd /usr
Then run the second command again.

Usually by then you know what the problem is.

As regards trash, shift/delete should remove them completely, but in case it hasn't trash folders are usually ~/.local/share/Trash and /root/.local/share/Trash so look in both of those folders and make sure they are not full.
JaceMan

Re: Problems with hard disk full

Post by JaceMan »

@Vincent -- thanks for the information about the root and trash. I had no idea. I thought root would clear all trash system wide. That was a valuable tip.

As it currently stands, I was able to use bleachbit as root to remove 60 megs worth of files. That bought me enough space to log in as my wife and start moving her files over to an external drive. She is singing again.

That being said, it still looks as though the delete key doesn't gain me any drive space when used, but righ click, delete does. I'm really confused by that. Will investigate the matter more later.

Thanks.
DisturbedDragon
Level 5
Level 5
Posts: 574
Joined: Mon Oct 29, 2012 6:29 pm
Location: Texas

Re: Problems with hard disk full

Post by DisturbedDragon »

Delete key moves to trash. Right click delete = shift + delete.

Empty trash for more space. :wink:
AMD Ryzen 9 5950X 16C/32T | MSI MPG x570 Gaming Plus | 2TB Mushkin Pilot-E NVMe | 1TB Crucial P1 NVMe | 2x 2TB Inland Gen4 NVMe | 32GB Trident Z DDR4 3600 | Nvidia RTX4090 | Fedora 39 Cinnamon | Linux Mint 21.3 Cinnamon | Kernel 5.15.x lowlatency
flashbuddy56

Re: Problems with hard disk full

Post by flashbuddy56 »

Linux reserves a portion of the disk space for the root user
6 partitions last i checked,for whatever resign.
Locked

Return to “Beginner Questions”