Choose style:

Author Topic: Drive space keeps reducing  (Read 1144 times)

0 Members and 1 Guest are viewing this topic.

Offline pin

  • Trusted User
  • Veteran
  • *****
  • Posts: 1836
  • Karma: 257
    • View Profile
Re: Drive space keeps reducing
« Reply #15 on: April 29, 2019, 09:00:22 am »
Yes your right, I was looking at it on my mobile... now on a larger screen I can clearly see it  :)

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25730
  • Karma: 2822
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Drive space keeps reducing
« Reply #16 on: April 29, 2019, 10:14:40 am »
I'm always right pin .. erm, except when I'm wrong :)
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline pin

  • Trusted User
  • Veteran
  • *****
  • Posts: 1836
  • Karma: 257
    • View Profile
Re: Drive space keeps reducing
« Reply #17 on: April 29, 2019, 11:15:06 am »
 :-\ That makes sense, ...I guess?  :D

Offline Shamgar

  • Jr. Member
  • **
  • Posts: 44
  • Karma: 1
  • New Forum User
    • View Profile
  • Peppermint version(s): 6
Re: Drive space keeps reducing
« Reply #18 on: April 30, 2019, 02:03:02 am »
Thanks. I saved 50Mb this way

About the cache, any suggestions? I deleted it from chromium, but I saved only 32Mb

Offline pin

  • Trusted User
  • Veteran
  • *****
  • Posts: 1836
  • Karma: 257
    • View Profile
Re: Drive space keeps reducing
« Reply #19 on: April 30, 2019, 02:49:18 am »
You can still free some space. It all depends on your user case.
If you are not running a server  you can remove apparmor
Code: [Select]
sudo apt-get remove --purge apparmor

If you are using the standard ext4 file system you can
Code: [Select]
sudo apt-get remove --purge btrfs-tools

If you, like me, never use torrent downloads/seeding, you can
Code: [Select]
sudo apt-get remove --purge transmission-common transmission-gtk

If you never install .deb files, or if you know how to do it from the CLI, you could
Code: [Select]
sudo apt-get remove --purge gdebi

The list can go on, again depending on your user case...
Once you have remove --purge the packages you don't need, always run
Code: [Select]
sudo apt-get autoremove
sudo apt-get autoclean
to remove orphan dependencies.

As you can see, there're plenty of possibilities to gain some space. Again, it all depends on your needs and, we don't know your needs  ;)

Offline Shamgar

  • Jr. Member
  • **
  • Posts: 44
  • Karma: 1
  • New Forum User
    • View Profile
  • Peppermint version(s): 6
Re: Drive space keeps reducing
« Reply #20 on: April 30, 2019, 04:00:38 am »
What I don't understand is why at the beginning I had more stuff installed/stored and still I had more free space than now

As the time went by, so to gain more space, I uninstalled everything I don't use and I chose to have just some dropbox folders on the device and not everything as it was at the beginning. That said the system keeps loosing free space...

So to me the problem must be somewhere else...

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25730
  • Karma: 2822
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Drive space keeps reducing
« Reply #21 on: April 30, 2019, 04:55:02 am »
You're going to want to get creative with something like the 'du' command to figure out which directories are using the most space .. such as
Code: [Select]
sudo du -x / | sort -rn | head -n 50
which will show the top 50 directories by space.

Some of these won't tell you much, for example / is obviously always going to be at the top .. but it might make something stand out.



One of the lines in my output was
Code: [Select]
3418168	/var/lib/flatpak
so I highlighted everything in that folder in nemo, right-clicked and selected "Properties", and discovered the three (3) flatpaks I had installed (Darktable/GIMP/Gradio) and the supporting flatpak infrastructure contained in that directory were taking up over 6.6GB of space :o
(damn flatpak's are obviously highly disk space inefficient)

[EDIT]

If I had to guess, I'd guess that even uninstalling those flatpaks would probably still leave behind the flatpak infrastructure stuff (completely wasting space) .. though I haven't tested that theory so it's pure conjecture at this point.
« Last Edit: April 30, 2019, 05:04:36 am by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline Shamgar

  • Jr. Member
  • **
  • Posts: 44
  • Karma: 1
  • New Forum User
    • View Profile
  • Peppermint version(s): 6
Re: Drive space keeps reducing
« Reply #22 on: April 30, 2019, 05:27:28 am »
This is my output. I deleted from the list the dropbox labels, apart from this do you see anything that could be useful to delete? And if yes... how to do it?

thanks for your patience and replies, as you see I'm not much into Linux, but I'm improving...  ;D

Code: [Select]
9945260	/
3545048 /home
3545044 /home/shamgar
2911000 /usr
2290248 /home/shamgar/Dropbox
2125380 /var
1820260 /var/lib
1598156 /var/lib/dropbox
1598152 /var/lib/dropbox/.dropbox-dist
1374056 /usr/lib
1129068 /usr/share
848680 /usr/lib/i386-linux-gnu
797200 /home/shamgar/.rustup
797176 /home/shamgar/.rustup/toolchains
797172 /home/shamgar/.rustup/toolchains/stable-i686-unknown-linux-gnu
627948 /lib
548548 /opt
491996 /opt/libreoffice6.0
445736 /usr/share/icons
418408 /home/shamgar/.rustup/toolchains/stable-i686-unknown-linux-gnu/lib
340132 /lib/modules
327208 /home/shamgar/.rustup/toolchains/stable-i686-unknown-linux-gnu/lib/rustlib
326808 /home/shamgar/.rustup/toolchains/stable-i686-unknown-linux-gnu/lib/rustlib/i686-unknown-linux-gnu
324748 /home/shamgar/.rustup/toolchains/stable-i686-unknown-linux-gnu/share
324580 /home/shamgar/.rustup/toolchains/stable-i686-unknown-linux-gnu/share/doc
324484 /home/shamgar/.rustup/toolchains/stable-i686-unknown-linux-gnu/share/doc/rust
324440 /home/shamgar/.rustup/toolchains/stable-i686-unknown-linux-gnu/share/doc/rust/html
296520 /var/cache
273716 /opt/libreoffice6.0/program
267124 /usr/src
239604 /lib/firmware
224644 /home/shamgar/.rustup/toolchains/stable-i686-unknown-linux-gnu/lib/rustlib/i686-unknown-linux-gnu/lib
218020 /usr/lib/chromium-browser
213352 /opt/libreoffice6.0/share
170068 /lib/modules/4.15.0-48-generic
170060 /lib/modules/4.15.0-47-generic
169864 /home/shamgar/.dropbox-dist
169852 /home/shamgar/.dropbox-dist/dropbox-lnx.x86-71.4.108
169088 /var/lib/dropbox/.dropbox-dist/dropbox-lnx.x86-70.4.93

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25730
  • Karma: 2822
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Drive space keeps reducing
« Reply #23 on: April 30, 2019, 07:41:09 am »
I can't do this for you my friend, you're going to need to find the wasted space yourself .. I have no idea what you've installed/uninstalled or any application settings you have (such as cache settings) or swap files/partitions, etc.

It would take forever for me to talk you through assessing space used one directory and application at a time.

That said, what the heck is "rustup" ? .. and why do you have libreoffice6.0 in /opt ?



As a hint - try drilling down into directories that popped up in the previous output
Code: [Select]
du -h /home/shamgar/.rustup -d 1
du -h /opt -d 1
du -h /var/lib/dropbox -d 1
du -h /usr/share/icons -d 1
etc.
to see if any directories in those seem to be using an inordinate amount of space
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline Shamgar

  • Jr. Member
  • **
  • Posts: 44
  • Karma: 1
  • New Forum User
    • View Profile
  • Peppermint version(s): 6
Re: Drive space keeps reducing
« Reply #24 on: April 30, 2019, 08:32:22 am »
I understand, but I appreciate your efforts to help  :)

rustup was something I forgot I installed time ago, I deleted it, now I have 3Gb free

I don't know why Libreoffice is in /opt...

the outputs are this (I excluded dropbox since it's ok):

Code: [Select]
481M	/opt/libreoffice6.0
56M /opt/numix-folders
536M /opt

Code: [Select]
1,4M	/usr/share/icons/Peppermix-7-Red
67M /usr/share/icons/Pepirus
40M /usr/share/icons/Adwaita
1,5M /usr/share/icons/Peppermix-7-Grey
24K /usr/share/icons/Numix-Square-Light
5,2M /usr/share/icons/ubuntu-mono-dark
47M /usr/share/icons/Numix
6,3M /usr/share/icons/ubuntu-mono-light
22M /usr/share/icons/Pepirus-Dark
18M /usr/share/icons/Humanity
26M /usr/share/icons/hicolor
13M /usr/share/icons/Numix-Light
1,8M /usr/share/icons/DMZ-Black
1,4M /usr/share/icons/Peppermix-7-Brown
24K /usr/share/icons/Numix-Circle-Light
99M /usr/share/icons/Peppermix-7
20M /usr/share/icons/ePepirus
16M /usr/share/icons/Numix-Circle
276K /usr/share/icons/locolor
1,4M /usr/share/icons/Peppermix-7-Pink
2,4M /usr/share/icons/Humanity-Dark
4,0K /usr/share/icons/default
1,8M /usr/share/icons/DMZ-White
11M /usr/share/icons/Numix-Square
8,2M /usr/share/icons/Pepirus-Light
33M /usr/share/icons/gnome
1,5M /usr/share/icons/Peppermix-7-Green
156K /usr/share/icons/LoginIcons
436M /usr/share/icons

The only programs I use in Libreoffice are Calc and Writer, but I don't know how to remove the other programs of the suite...

Offline pin

  • Trusted User
  • Veteran
  • *****
  • Posts: 1836
  • Karma: 257
    • View Profile
Re: Drive space keeps reducing
« Reply #25 on: April 30, 2019, 08:43:35 am »
The only programs I use in Libreoffice are Calc and Writer, but I don't know how to remove the other programs of the suite...

Wouldn't give you that much, but if you really want to do this...
Uninstall the whole libreoffice, launch a terminal and re-install just what you need.
Code: [Select]
sudo apt-get install libreoffice-writer libreoffice-calc

Be aware that you will aslo need to manually pick the language packages that are relevant to you. You can easily do this using Synaptic.
Launch Synaptic, reload the package information and search for libreoffice. Now mark for intallation the language packages you need. While you are at it, include also the gtk-3.0 plugin so that libreoffice follows your gtk-theme. Once done install the marked packages. That's it.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25730
  • Karma: 2822
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Drive space keeps reducing
« Reply #26 on: April 30, 2019, 01:20:58 pm »
Also, when you say you removed rustup, did you make sure you deleted the
Code: [Select]
/home/shamgar/.rustup
folder ?

It's mighty odd that libreoffice6.0 ended up in /opt .. how exactly did you install it ?
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline Slim.Fatz

  • Trusted User
  • Veteran
  • *****
  • Posts: 1780
  • Karma: 470
  • Where's the mouse?
    • View Profile
  • Peppermint version(s): Peppermint 7, 8.5 & 10 - 64bit
Re: Drive space keeps reducing
« Reply #27 on: April 30, 2019, 04:16:01 pm »
Also, when you say you removed rustup, did you make sure you deleted the
Code: [Select]
/home/shamgar/.rustup
folder ?

It's mighty odd that libreoffice6.0 ended up in /opt .. how exactly did you install it ?
Hi PCNetSpec,

I am 100% sure that libreoffice6.0 was installed from a deb file downloaded from the libreoffice.org home page. I know this because that is what I did and it installs in /opt ...  ;)

Regards,

-- Slim
"Life first -- Peppermint a close 2nd!" -- Zeb

Tread lightly: Fluxbox, JWM, i3, Openbox, awesome

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25730
  • Karma: 2822
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Drive space keeps reducing
« Reply #28 on: April 30, 2019, 04:52:15 pm »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline Shamgar

  • Jr. Member
  • **
  • Posts: 44
  • Karma: 1
  • New Forum User
    • View Profile
  • Peppermint version(s): 6
Re: Drive space keeps reducing
« Reply #29 on: May 02, 2019, 02:05:11 am »
Quote
That's it.

Thanks for the advice!

Quote
Also, when you say you removed rustup, did you make sure you deleted the

Yes, I deleted the folder, that's why now I have 3Gb free

Quote
I am 100% sure that libreoffice6.0 was installed from a deb file downloaded from the libreoffice.org home page

Yes, if I remember well I did the same.

Thanks to everyone, I think there are no more options for me so to save space, so thank you for the time you spent to help me  :)