Running out of space [SOLVED]

Questions about hardware, drivers and peripherals
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
banjoman
Level 4
Level 4
Posts: 288
Joined: Thu Nov 11, 2010 4:46 am

Running out of space [SOLVED]

Post by banjoman »

I am now regularly getting warnings that my 20GB file partition is running low on space. I keep clearing out var/tmp which accumulates files produced when printing, but am not sure what other folders might contain unnecessary clutter.

I am running Mint 19 on a Sony Vaio laptop with a 1TB hard disc, 20GB of which is partitioned for the file system. I would have thought this was ample, but it is frustrating to keep having to clear temp files out manually.

Any advice gratefully received, thanks....
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
catweazel
Level 19
Level 19
Posts: 9763
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: Running out of space

Post by catweazel »

banjoman wrote: Fri Sep 21, 2018 3:52 am I am now regularly getting warnings that my 20GB file partition is running low on space.
Please post the output of this terminal command:

Code: Select all

sudo dpkg --list 'linux-image*'|awk '{ if ($1=="ii") print $2}'|grep -v `uname -r`
Enclose the results between [ⅽode] and [/ⅽode] code markers by selecting </> from the mini toolbar above the textbox where you type your reply. Simply copy the text and paste it into a terminal.
"There is, ultimately, only one truth -- cogito, ergo sum -- everything else is an assumption." - Me, my swansong.
Anoep

Re: Running out of space

Post by Anoep »

What you can do is clean up old stuff using the terminal.

Open the terminal and type the following commands:

Code: Select all

sudo apt-get autoclean

Code: Select all

sudo apt-get clean

Code: Select all

sudo apt-get autoremove
The first command will delete all .deb files from the apt-get cache (/var/cache/apt/archives)
The second command will clean all downloaded .deb files from the local repository
the third command will clean packages that are installed to satisfy dependencies for other packages and are no longer required

You can also add the --purge key after each command. This will delete any configurations files as well which came with the original package.
banjoman
Level 4
Level 4
Posts: 288
Joined: Thu Nov 11, 2010 4:46 am

Re: Running out of space

Post by banjoman »

Code: Select all

linux-image-4.15.0-20-generic
linux-image-4.15.0-24-generic
linux-image-4.15.0-29-generic
linux-image-4.15.0-30-generic
linux-image-4.15.0-32-generic
linux-image-4.15.0-33-generic
linux-image-generic
banjoman
Level 4
Level 4
Posts: 288
Joined: Thu Nov 11, 2010 4:46 am

Re: Running out of space

Post by banjoman »

:D
The terminal commands certainly created a few Gbs more space on that partition - many thanks
User avatar
smurphos
Level 18
Level 18
Posts: 8498
Joined: Fri Sep 05, 2014 12:18 am
Location: Irish Brit in Portugal
Contact:

Re: Running out of space

Post by smurphos »

Launch Update Manager > View > Linux Kernels and remove all but the active one and one backup older one.
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.
banjoman
Level 4
Level 4
Posts: 288
Joined: Thu Nov 11, 2010 4:46 am

Re: Running out of space

Post by banjoman »

I have removed some kernels. Only the ones listed as installed were able to be removed. Are the others taking up space? If so how can they be removed? It doesn't seem to have resulted in more free space though!
Kernels.png
Laurent85
Level 17
Level 17
Posts: 7081
Joined: Tue May 26, 2015 10:11 am

Re: Running out of space

Post by Laurent85 »

banjoman wrote: Fri Sep 21, 2018 1:22 pm Are the others taking up space?
No.
It doesn't seem to have resulted in more free space though
See how much free disk space left now:

Code: Select all

df -h /
Image
banjoman
Level 4
Level 4
Posts: 288
Joined: Thu Nov 11, 2010 4:46 am

Re: Running out of space

Post by banjoman »

8)

Code: Select all

Filesystem      Size  Used Avail Use% Mounted on
/dev/sda1        19G   14G  3.8G  79% /
Though the File folder window reports 3.3Gb free. Anyway that is a huge improvement over the handful of Mbs I had before!!

Many thanks.....
Anoep

Re: Running out of space

Post by Anoep »

banjoman wrote: Fri Sep 21, 2018 2:30 pm 8)

Code: Select all

Filesystem      Size  Used Avail Use% Mounted on
/dev/sda1        19G   14G  3.8G  79% /
You could consider buying a bigger hard drive....
User avatar
JerryF
Level 16
Level 16
Posts: 6571
Joined: Mon Jun 08, 2015 1:23 pm
Location: Rhode Island, USA

Re: Running out of space

Post by JerryF »

Can you post the result of this command:

Code: Select all

inxi -P
gm10

Re: Running out of space

Post by gm10 »

banjoman wrote: Fri Sep 21, 2018 3:52 am but am not sure what other folders might contain unnecessary clutter.
In the Mint menu you can find the Disk Usage Analyzer and have it analyze the entire filesystem to give you an overview.
banjoman
Level 4
Level 4
Posts: 288
Joined: Thu Nov 11, 2010 4:46 am

Re: Running out of space

Post by banjoman »

:shock:
I can't actually make much sense of the information presented by disk analyser. I should have edited this as solved. The 3 terminal commands and deleting previous linux kernels mentioned in a previous reply seem to have reclaimed enough space...
Locked

Return to “Hardware Support”