Problems with hard disk full

All Gurus once were Newbies
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. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read this

Problems with hard disk full

Postby JaceMan on Fri Dec 28, 2012 1:27 pm

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.
JaceMan
Level 1
Level 1
 
Posts: 5
Joined: Mon Aug 23, 2010 1:31 pm

Linux Mint is funded by ads and donations.
 

Re: Problems with hard disk full

Postby xenopeek on Fri Dec 28, 2012 1:40 pm

Post split from 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.
User avatar
xenopeek
Level 21
Level 21
 
Posts: 14987
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Problems with hard disk full

Postby viking777 on Fri Dec 28, 2012 2:06 pm

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.
Fujitsu Lifebook AH532. Intel i5 processor, 6Gb ram, Intel HD3000 graphics, Intel Audio/wifi. Realtek RTL8111/8168B Ethernet.Lubuntu 13.10,Ubuntu12.10 (Unity), Mint16 (Cinnamon), Manjaro (Xfce).
Image
User avatar
viking777
Level 14
Level 14
 
Posts: 5153
Joined: Mon Dec 01, 2008 11:21 am

Re: Problems with hard disk full

Postby JaceMan on Fri Dec 28, 2012 3:51 pm

@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.
JaceMan
Level 1
Level 1
 
Posts: 5
Joined: Mon Aug 23, 2010 1:31 pm

Re: Problems with hard disk full

Postby DisturbedDragon on Sun Dec 30, 2012 8:20 pm

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

Empty trash for more space. :wink:
DisturbedDragon
Level 1
Level 1
 
Posts: 13
Joined: Mon Oct 29, 2012 6:29 pm

Re: Problems with hard disk full

Postby flashbuddy56 on Sun Dec 30, 2012 8:29 pm

Linux reserves a portion of the disk space for the root user

6 partitions last i checked,for whatever resign.
flashbuddy56
Level 1
Level 1
 
Posts: 13
Joined: Sun Dec 23, 2012 9:44 am


Return to Newbie Questions

Who is online

Users browsing this forum: Bing [Bot], iironjade and 30 guests