On 2023-03-01 at 09:15, Jochen Spieker wrote: > lina: > >> My / is almost full. >> >> # df -h >> Filesystem Size Used Avail Use% Mounted on >> udev 126G 0 126G 0% /dev >> tmpfs 26G 2.3M 26G 1% /run >> /dev/nvme0n1p2 23G 21G 966M 96% / >> tmpfs 126G 15M 126G 1% /dev/shm >> tmpfs 5.0M 4.0K 5.0M 1% /run/lock >> /dev/nvme0n1p6 267M 83M 166M 34% /boot >> /dev/nvme0n1p1 511M 5.8M 506M 2% /boot/efi >> /dev/nvme0n1p3 9.1G 3.2G 5.5G 37% /var >> /dev/nvme0n1p5 1.8G 14M 1.7G 1% /tmp >> /dev/nvme0n1p7 630G 116G 482G 20% /home > > This is a good example why it often makes sense to use LVM even on a > private system. With LVM you could have allocated only 20% of space > where you actually need it and resize filesystems on-demand (and > online). But that does not help you now, sorry. > >> I have done some purging already. >> :/usr# du -sh * >> 742M bin >> 4.0K games >> 260M include >> 8.1G lib >> 36M lib32 >> 4.0K lib64 >> 140M libexec >> 33M libx32 >> 3.4G local >> 53M sbin >> 4.6G share >> 215M src > > /usr/local might be worth a look. You probably have some stuff there > that you put in manually. > > The program dpigs from the package debian-goodies can help you find the > biggest debian packages you have installed. Of course you need to check > yourself whether you need them.
It might also be worth having a look at the output of
# du -hx --max=1 /
rather than just looking at /usr alone. The '-x' will mean it won't
cross the boundaries into the other filesystems, so you'll still just be
looking at what's on / ; '--max=1' means it'll report one directory
level deep from the items you specified on the command line ('--max=0'
is equivalent to '-s').
You might even find benefit from repeating that same command with /usr,
or with any other directory that specifically looks to be bigger than
expected, to find out what part of it is taking up so much of the space.
--
The Wanderer
The reasonable man adapts himself to the world; the unreasonable one
persists in trying to adapt the world to himself. Therefore all
progress depends on the unreasonable man. -- George Bernard Shaw
signature.asc
Description: OpenPGP digital signature

