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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
10-09-2016, 10:00 AM
|
#1
|
Member
Registered: Oct 2003
Location: Philadelphia
Distribution: Linux Mint 17.3
Posts: 43
Rep:
|
disk drive space creeping up on its own...
When you have a 120gb SSD you keep an eye on such things. Still 85gb+ free, but watching that slowly get eaten away buy who knows what. I'm not downloading anything that I leave on the drive with the exception of the occasional jpg. Usually motorcycles or drums... No games or movies or anything of the "larger" variety.
What gives!?!?!
Linux Mint 18 here.
|
|
|
10-09-2016, 10:11 AM
|
#2
|
Senior Member
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199
Rep:
|
On console:
du
df
|
|
|
10-09-2016, 10:28 AM
|
#3
|
Member
Registered: Oct 2003
Location: Philadelphia
Distribution: Linux Mint 17.3
Posts: 43
Original Poster
Rep:
|
df displayed a lot of cache files in directories I can't see using the GUI. ./.cache/google-chrome/
How can I get rid of these files if they're just cached versions of stuff I don't even need?
|
|
|
10-09-2016, 12:03 PM
|
#4
|
Senior Member
Registered: Feb 2003
Distribution: debian
Posts: 4,137
|
$ du -h --max-depth=1 /home/
$ du -h --max-depth=1 /tmp/
$ du -h --max-depth=1 /var/log/
for debian based distros
$ du -h /var/cache/apt/archives/
When you update via the CLI, the downloaded packages that get installed don't always go away. Once they're installed you can safely rm those files IMO. But mostly I archive the install to a large disk and do a fresh install to reclaim space. Part paranoia, part keeping my install skills fresh. Not much worse than going somewhere on a fresh install and realizing that you didn't install the wireless networking tools.
|
|
|
10-11-2016, 08:17 AM
|
#5
|
Senior Member
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,950
|
For Debian distros, it is always safe to remove downloads of packages (after installation).
Run as root,
Last edited by JeremyBoden; 10-11-2016 at 08:21 AM.
|
|
|
10-11-2016, 08:19 AM
|
#6
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 23,276
|
Quote:
Originally Posted by dbc254
df displayed a lot of cache files in directories I can't see using the GUI. ./.cache/google-chrome/
How can I get rid of these files if they're just cached versions of stuff I don't even need?
|
Probably you can remove it, but chrome can be configured to put it into another dir and I think also the (max) size can be specified.
|
|
|
10-11-2016, 09:06 AM
|
#7
|
Senior Member
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,848
|
Does that disk have btrfs filesystems on it?
The snapshotting that btrfs does will slowly use up disk space. You can clean out your browser cache all you want but the snapshots will still be there. And they hang around for a while.
|
|
|
10-11-2016, 09:11 AM
|
#8
|
LQ Newbie
Registered: Oct 2016
Location: us
Posts: 1
Rep:
|
You can remove it, but you need cto clear all your browser cache
|
|
|
10-11-2016, 10:16 AM
|
#9
|
Senior Member
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,950
|
Lots of random writes aren't good for SSD's.
|
|
|
10-11-2016, 03:54 PM
|
#10
|
LQ Guru
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,972
|
Try the lsof ("list open files") command.
My guess is that you probably have some kind of daemon that is continuously writing to some file, without ever closing it. Thus, the file's directory-entry is never being updated, and so it is not readily apparent where the disk space is going.
(Incidentally, this issue is common to most operating systems ...)
The odds are also reasonable that this behavior, while as-yet unexplained to you, is probably benign.
|
|
|
10-11-2016, 04:28 PM
|
#11
|
Member
Registered: Sep 2016
Location: USA
Posts: 275
Rep:
|
You can also use a chroot jail to whitelist or blacklist any program. Though nothing stops a process from editing it own memory and escaping from the jail.
|
|
|
10-12-2016, 08:37 AM
|
#12
|
LQ Guru
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342
|
yeah to what they said, and as well, every time you update. Them updates can get a little bit bigger because of the added code in the file, which may only take a few kb but as you see it does add up over time. repeating others, tmp files, logs and such too is something to look at.
|
|
|
10-13-2016, 11:31 PM
|
#13
|
Senior Member
Registered: Apr 2010
Posts: 2,283
|
check the log files.
cd /var
check if any log files is consuming your space
|
|
|
10-14-2016, 06:36 AM
|
#14
|
Senior Member
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7 / 8
Posts: 3,529
|
Quote:
Originally Posted by JeremyBoden
Lots of random writes aren't good for SSD's.
|
On modern SSDs this is less of an issue than it used to be in the past.
|
|
|
10-14-2016, 08:59 AM
|
#15
|
LQ Guru
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342
|
SSD? do you trim your drive at least once a week?
|
|
|
All times are GMT -5. The time now is 05:06 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|