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. |
On console:
du df |
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? |
$ 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. |
For Debian distros, it is always safe to remove downloads of packages (after installation).
Run as root, Code:
apt-get clean |
Quote:
|
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.
|
You can remove it, but you need cto clear all your browser cache
|
Lots of random writes aren't good for SSD's.
|
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. |
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.
|
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.
|
check the log files.
cd /var check if any log files is consuming your space |
Quote:
|
SSD? do you trim your drive at least once a week?
|
In whatever browser you use (like Firefox or Chromium or Chrome or whatever) make sure to clear the cache. In Firefox, it's found at History/Clear Recent History... <-- this gives the option to clear all your history (you may wish to preserve cookies and logins, but the cache should be cleared.)
Also, run the following commands in your terminal/console: Code:
sudo apt autoclean && sudo apt autoremove Code:
sudo apt-get autoclean && sudo apt-get autoremove |
It's worth running the autoclean command every month or two or after you've performed a major update to your system.
|
I tend to take a more manual method.
# dpkg -l | grep -v ^ii # dpkg --purge --force-all <the packages no longer fully installed> Until the list is short or gone, then: # deborphan Then remove the things not a kernel or bootloader. And of course: # rm -rf /var/cache/apt/archives/*.*deb But I'm normally on debian stable which doesn't have many updates beyond security updates. So not something that I do, except at the end of a fresh install, or every six or more months of running a distro. Although I tend towards quarterly fresh installs these days. In a post Snowden world. Plus a lot of times a fresh install is lower bandwidth than an update. |
All times are GMT -5. The time now is 08:55 PM. |