Disk space issues

5 risposte [Ultimo contenuto]
calher

I am a member!

Offline
Iscritto: 06/19/2015

I have disk space issues, but I have plenty of space in my home
directory.

I use the default options in Trisquel 7 when you ask the installer to
encrypt your hard drive.

My disks look like this:

$ df --human-readable
Filesystem Size Used Avail Use% Mounted on
udev 1.8G 4.0K 1.8G 1% /dev
tmpfs 370M 2.2M 368M 1% /run
/dev/sda1 19G 17G 582M 97% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
none 5.0M 0 5.0M 0% /run/lock
none 1.9G 404K 1.9G 1% /run/shm
none 100M 68K 100M 1% /run/user
/dev/mapper/trisquel--vg-home 125G 103G 23G 82% /home
/dev/loop1 84M 84M 0 100% /snap/core/3247
/dev/loop0 84M 84M 0 100% /snap/core/3440
/dev/loop2 129M 129M 0
100% /snap/gnome-3-26-1604/25
/dev/loop3 15M 15M 0 100% /snap/peek/601
/dev/loop4 56M 56M 0 100% /snap/peek/257
/dev/loop5 129M 129M 0
100% /snap/gnome-3-26-1604/21
/dev/loop6 130M 130M 0
100% /snap/gnome-3-26-1604/27
/dev/loop7 15M 15M 0 100% /snap/peek/619

I recently installed GNOME. This might have used a lot of space. How
do I remove it safely, without getting rid of Trisquel's GNOME desktop?

To get rid of some junk in /, I emptied the garbage in Guix:

guix gc

--
Caleb Herbert
OpenPGP public key: http://bluehome.net/csh/pubkey

Magic Banana

I am a member!

I am a translator!

Offline
Iscritto: 07/24/2010

Unless you installed heavy video games, 17G is quite a lot for the root filesystem. You can use the "Disk Usage Analyzer", in the "System Settings", to discover what consumes that space. Do you remove older kernels? Also, aren't the loop devices (what are they? snapshots that guix keeps?) actually on the root filesystem? Do you need them all?

gd_scania
Offline
Iscritto: 09/13/2017

I always remove legacy kernels from Trisquel, Debian, or Devuan, Fedora etc, but also Parabola removes legacy kernels automatically, afterwards I never play heavy games which I partition every systems to 16 GiB filesystems in ext4.
Finally what are the loop devices? My own SSD only has sda and luks devices, but this is also my first time hearing loop devices.

calher

I am a member!

Offline
Iscritto: 06/19/2015

(Reposted because attachment did not go through.)

On Tue, 2017-12-05 at 00:29 +0100, name at domain wrote:
> Unless you installed heavy video games, 17G is quite a lot for the root
> filesystem.

All I have is Minetest, I think. TeX Live is 8 GB, but I don't have
that either.

> You can use the "Disk Usage Analyzer", in the "System Settings",
> to discover what consumes that space.

Dong that gives file permission errors. I ran it as root.

gksudo baobab

Results are at http://bluehome.net/csh/screenshot/2017/12/07/diskusage.

> Do you remove older kernels?

Does Trisquel's graphical updater do that?

I've never looked in /boot. Let's see.

root@leela:~# vdir --human-readable /boot
total 105M
-rw-r--r-- 1 root root 1.2M Oct 12 06:42 abi-3.13.0-133-lowlatency
-rw-r--r-- 1 root root 1.2M Oct 29 2014 abi-3.13.0-39-lowlatency
-rw-r--r-- 1 root root 1.2M Aug 28 13:11 abi-4.4.0-93-generic
-rw-r--r-- 1 root root 163K Oct 12 06:42 config-3.13.0-133-lowlatency
-rw-r--r-- 1 root root 162K Oct 29 2014 config-3.13.0-39-lowlatency
-rw-r--r-- 1 root root 186K Aug 28 13:11 config-4.4.0-93-generic
drwxr-xr-x 5 root root 4.0K Nov 29 14:43 grub
-rw-r--r-- 1 root root 24M Oct 23 23:45
initrd.img-3.13.0-133-lowlatency
-rw-r--r-- 1 root root 24M Oct 23 22:56 initrd.img-3.13.0-39-lowlatency
-rw-r--r-- 1 root root 26M Nov 29 14:45 initrd.img-4.4.0-93-generic
-rw------- 1 root root 3.3M Oct 12 06:42
System.map-3.13.0-133-lowlatency
-rw------- 1 root root 3.3M Oct 29 2014 System.map-3.13.0-39-lowlatency
-rw------- 1 root root 3.8M Aug 28 13:11 System.map-4.4.0-93-generic
-rw------- 1 root root 5.6M Oct 12 06:42 vmlinuz-3.13.0-133-lowlatency
-rw-r--r-- 1 root root 5.6M Oct 29 2014 vmlinuz-3.13.0-39-lowlatency
-rw------- 1 root root 6.7M Aug 28 13:11 vmlinuz-4.4.0-93-generic

It looks like there are a few vmlinuz's in there with different version
numbers, so maybe there are old kernels taking up space. I don't think
they're taking up a lot, though.

> aren't the loop devices (what are they? snapshots that guix keeps?) actually
> on the root filesystem? Do you need them all?

I don't know where they are located, but they're probably from Snappy
and not Guix.

--
Caleb Herbert
OpenPGP public key: http://bluehome.net/csh/pubkey

--
Caleb Herbert
OpenPGP public key: http://bluehome.net/csh/pubkey

Magic Banana

I am a member!

I am a translator!

Offline
Iscritto: 07/24/2010

You are certainly running the 4.4 kernel ('uname -r' would tell) and can remove the two 3.13 kernels, e.g., using the "Synaptic Package Manager" in the "System Settings". But that would only save tens of MB.

What takes 58% of the root partition (according to the "Disk Usage Analyzer") is the /gnu directory. I believe Guix populates that directory. I do not use Guix (and do not have a /gnu directory). Users of Guix can probably help you free space in /gnu.

GNUser
Offline
Iscritto: 07/17/2013

In a couple of weeks/months I had 8GB of wasted space merely out of kernels... I have kernel 4.9 and is constantly being updated, so I had a lot of them laying around. When I got rid of them I got 8GBs of free space back ;)