LinuxQuestions.org
Help answer threads with 0 replies.
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 10-09-2016, 10:00 AM   #1
dbc254
Member
 
Registered: Oct 2003
Location: Philadelphia
Distribution: Linux Mint 17.3
Posts: 43

Rep: Reputation: 0
Question 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.
 
Old 10-09-2016, 10:11 AM   #2
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Rep: Reputation: 164Reputation: 164
On console:
du
df
 
Old 10-09-2016, 10:28 AM   #3
dbc254
Member
 
Registered: Oct 2003
Location: Philadelphia
Distribution: Linux Mint 17.3
Posts: 43

Original Poster
Rep: Reputation: 0
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?
 
Old 10-09-2016, 12:03 PM   #4
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875
$ 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.
 
Old 10-11-2016, 08:17 AM   #5
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,950

Rep: Reputation: 513Reputation: 513Reputation: 513Reputation: 513Reputation: 513Reputation: 513
For Debian distros, it is always safe to remove downloads of packages (after installation).
Run as root,
Code:
apt-get clean

Last edited by JeremyBoden; 10-11-2016 at 08:21 AM.
 
Old 10-11-2016, 08:19 AM   #6
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 23,276

Rep: Reputation: 7696Reputation: 7696Reputation: 7696Reputation: 7696Reputation: 7696Reputation: 7696Reputation: 7696Reputation: 7696Reputation: 7696Reputation: 7696Reputation: 7696
Quote:
Originally Posted by dbc254 View Post
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.
 
Old 10-11-2016, 09:06 AM   #7
rnturn
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

Rep: Reputation: 552Reputation: 552Reputation: 552Reputation: 552Reputation: 552Reputation: 552
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.
 
Old 10-11-2016, 09:11 AM   #8
jhonmaria45
LQ Newbie
 
Registered: Oct 2016
Location: us
Posts: 1

Rep: Reputation: Disabled
You can remove it, but you need cto clear all your browser cache
 
Old 10-11-2016, 10:16 AM   #9
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,950

Rep: Reputation: 513Reputation: 513Reputation: 513Reputation: 513Reputation: 513Reputation: 513
Lots of random writes aren't good for SSD's.
 
Old 10-11-2016, 03:54 PM   #10
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,972
Blog Entries: 4

Rep: Reputation: 4027Reputation: 4027Reputation: 4027Reputation: 4027Reputation: 4027Reputation: 4027Reputation: 4027Reputation: 4027Reputation: 4027Reputation: 4027Reputation: 4027
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.
 
Old 10-11-2016, 04:28 PM   #11
linux4evr5581
Member
 
Registered: Sep 2016
Location: USA
Posts: 275

Rep: Reputation: Disabled
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.
 
Old 10-12-2016, 08:37 AM   #12
BW-userx
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

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
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.
 
Old 10-13-2016, 11:31 PM   #13
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,283

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
check the log files.

cd /var

check if any log files is consuming your space
 
Old 10-14-2016, 06:36 AM   #14
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7 / 8
Posts: 3,529

Rep: Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593
Quote:
Originally Posted by JeremyBoden View Post
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.
 
Old 10-14-2016, 08:59 AM   #15
BW-userx
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

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
SSD? do you trim your drive at least once a week?
 
  


Reply

Tags
linux mint


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
No-Windows + not enough drive space. How could I Format the disk ? gramos Linux - Newbie 8 05-16-2016 06:56 PM
Nagios: Free disk space : Invalid drive TalkingMarble Linux - Software 4 08-15-2012 02:33 PM
real size of the drive. Actual disk space used. lgtrean Linux - General 9 10-08-2010 06:11 PM
Disk space usage increased after move to other drive. stefaandk Linux - General 4 06-20-2006 01:59 AM
3Gb of disk space lost! Disk space problem or mother board conflicts with HDD Mistreated Linux - Hardware 4 12-06-2004 04:58 PM

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

All times are GMT -5. The time now is 05:06 AM.

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