LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-15-2017, 12:41 PM   #1
whiteknite1963
LQ Newbie
 
Registered: Nov 2015
Location: Washington State
Distribution: Mint Linux 17.2
Posts: 6

Rep: Reputation: Disabled
Hard drive keeps filling up


I am currently using Linux Mint 17.2 cinnamon. About 2 months ago, my computer slowed way down. It was to the point that the disk usage analyzer would take at least 2 hours to run, then got steadily worse. I took it to a technician here in SW. Washington who specializes in Linux.
After being without my computer for over a week, my computer was all cleaned up and as fast as it was when Linux was first installed. He said he had to use nemo in terminal to clean up all the temp files that creeped onto my hard drive.
It now looks like I am having the same problem again.

My question is: How do I go about using nemo to clean up my hard drive? I am showing 189.8GB of data on my hard drive, out of 487.5GB. I should not have that much data on here, so somehow something is filling up my hard drive.
That technician won't tell me how to use nemo. He just tells me to bring in my computer and he'll take care of it. I can't afford to fork out almost $100 every time this happens.

Thanks in advance
 
Old 04-15-2017, 12:50 PM   #2
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Quote:
Originally Posted by whiteknite1963 View Post
I am currently using Linux Mint 17.2 cinnamon. About 2 months ago, my computer slowed way down. It was to the point that the disk usage analyzer would take at least 2 hours to run, then got steadily worse. I took it to a technician here in SW. Washington who specializes in Linux.
After being without my computer for over a week, my computer was all cleaned up and as fast as it was when Linux was first installed. He said he had to use nemo in terminal to clean up all the temp files that creeped onto my hard drive.
It now looks like I am having the same problem again.

My question is: How do I go about using nemo to clean up my hard drive? I am showing 189.8GB of data on my hard drive, out of 487.5GB. I should not have that much data on here, so somehow something is filling up my hard drive.
That technician won't tell me how to use nemo. He just tells me to bring in my computer and he'll take care of it. I can't afford to fork out almost $100 every time this happens.

Thanks in advance
nemo is a file manager for Linux, see here.

I would recommend you try and find out what is causing your tmp folders to fill up, in the first place, as your going to continue to have the same problem, unless you can pin point the cause of it.

You should be able to delete, whichever files are not in use from your /tmp folder and possibly (depending on your distro) ~/tmp folder.

Hope this helps.

Last edited by jsbjsb001; 04-15-2017 at 01:08 PM. Reason: fixed link
 
1 members found this post helpful.
Old 04-15-2017, 03:20 PM   #3
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
As a start you could boot into a recovery CD/DVD and then mount your system and delete everything in /tmp for start.

As jsbjsb001 said you need to find out what is filling up your /tmp directory.

Last edited by lazydog; 04-15-2017 at 07:17 PM. Reason: fixed /tpm to /tmp
 
1 members found this post helpful.
Old 04-16-2017, 05:07 AM   #4
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
If your not sure how to go about finding out what might be causing your /tmp folder to be filling up, try the following commands;

Code:
ls -laR /tmp
file /tmp/*
This *might* give us some clue, as to what *might* be causing your /tmp folder to fill up.
 
Old 04-16-2017, 05:23 AM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Run this and post the output - it will require your password, and may take minutes (minutes, not seconds) to complete, so wait.
Code:
sudo du / -xh | sort -hr | head -n 20
 
Old 04-16-2017, 08:50 AM   #6
snowday
Senior Member
 
Registered: Feb 2009
Posts: 4,667

Rep: Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411
Quote:
Originally Posted by whiteknite1963 View Post
My question is: How do I go about using nemo to clean up my hard drive? I am showing 189.8GB of data on my hard drive, out of 487.5GB. I should not have that much data on here, so somehow something is filling up my hard drive.
Your hard drive is only 40% full. Your hard drive is not "filling up" and is probably not the reason why your computer is running slow. It is perfectly normal for Linux to create various temp, cache, and log files. In my opinion, there is no benefit (and likely great risk) for a user such as yourself to run the file manager as "root" and delete system files.

Here is a better approach, in my opinion:

1. Tell us about your hardware (computer brand, model, CPU, RAM, hard drive, graphic card, and any other details you think might be relevant).
2. When your computer is running slow, use built in Linux tools like System Monitor to analyze the reason why. Is your hard drive full? Is your CPU running near 100%? Is your RAM filling up and the system is using swap instead?
3. Upgrade your hardware if necessary. For example, you could quadruple your storage by purchasing a 2TB hard drive for under $100.
 
Old 04-16-2017, 10:44 AM   #7
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
I would suggest you post the output of the commands, listed in posts #4 and #5 as well as the following one below, failing that;

Code:
top
As let's not confuse things anymore than they already are, and take one thing at a time.
 
Old 04-16-2017, 11:01 AM   #8
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,947

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
If you want to see how much is in each linux partition, enter the following command into a terminal screen:
Code:
df -h | grep /dev/
This will give you partition size and % usage. You will get an instant answer.

If you have a lot of rubbish files, they are likely in the rubbish bin - which you can empty.
If you have files in /tmp, a reboot will automatically remove them.
There are a few other cache files - but they are there to speed up your computer.
 
Old 04-16-2017, 11:05 AM   #9
Pearlseattle
Member
 
Registered: Aug 2007
Location: Zurich, Switzerland
Distribution: Gentoo
Posts: 999

Rep: Reputation: 142Reputation: 142
Quote:
Originally Posted by snowpine View Post
Your hard drive is only 40% full. Your hard drive is not "filling up" and is probably not the reason why your computer is running slow. It is perfectly normal for Linux to create various temp, cache, and log files. In my opinion, there is no benefit (and likely great risk) for a user such as yourself to run the file manager as "root" and delete system files.

Here is a better approach, in my opinion:

1. Tell us about your hardware (computer brand, model, CPU, RAM, hard drive, graphic card, and any other details you think might be relevant).
2. When your computer is running slow, use built in Linux tools like System Monitor to analyze the reason why. Is your hard drive full? Is your CPU running near 100%? Is your RAM filling up and the system is using swap instead?
3. Upgrade your hardware if necessary. For example, you could quadruple your storage by purchasing a 2TB hard drive for under $100.
Concur (pls. post as well the output of the command "mount" and tell us pls. if you're using a HDD or a SSD).
And btw. I didn't understand 1) what becomes slow and 2) why everybody is focusing on "/tmp" (as it isn't mentioned in the root post...).
Cheers!
 
Old 04-16-2017, 12:27 PM   #10
rob.rice
Senior Member
 
Registered: Apr 2004
Distribution: slack what ever
Posts: 1,076

Rep: Reputation: 205Reputation: 205Reputation: 205
this might help
https://sites.google.com/site/easylinuxtipsproject/4
 
Old 04-16-2017, 08:48 PM   #11
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
Code:
/tmp
is many times a ramdrive, in memory. I think your tech was speaking in a very broad sense, and leading you to nemo as a red herring. You're probably filling up with log files in /var/log. You might nave a VERY LOW Logging level that creates huge files.

You can use find:
Code:
$ find /var/log/ -size +10M
will find all files larger than 10MB in /var/log. You get the basic idea. You might also try running that command on /home. The entire physical drive does not have to fill up to cause stalls.

If one partition fills up, on a multi--partition system--it can cause problems. I hope this helps.
 
Old 04-17-2017, 01:28 AM   #12
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,150

Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
Agree with AwesomeMachine, check /var/log from my experience this is one of the culprit.

Good luck!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Minimum downtime way to switch server data from bad hard drive to new hard drive? postcd Linux - Hardware 1 05-18-2014 11:27 AM
format hard drive and add to existing hard drive to extend the capacity in linux boby.kumar Linux - Newbie 1 04-10-2013 07:18 AM
Booting Linux on an external USB hard drive (not a memory stick, a hard drive) comcastuser Linux - Hardware 4 01-13-2010 06:59 PM
[SOLVED] Hardware crash,Repaired,New Install New Hard drive,how to access original Hard drive flatstan Linux - Hardware 7 07-21-2009 06:51 PM
Ubuntu: Installed to external hard drive; boot to primary hard drive gives error 22 dcorb62 Linux - General 7 09-04-2007 11:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration