You are not logged in.

#1 2025-10-15 20:00:52

chris_sugden
Member
Registered: 2018-02-23
Posts: 9

40GB Root Partition has 2.3GB Free. Steal From The Next Partition?

pacman -Syu fails with:
error: Partition / too full: 1276293 blocks needed, 596310 blocks free
error: not enough free disk space

lsblk shows this:

NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
sda         8:0    0 931.5G  0 disk
├─sda1   8:1    0    512M  0 part /boot
├─sda2   8:2    0   40.8G  0 part /
└─sda4   8:4    0 890.3G  0 part /home

My downloaded packages are sent to /home/pkgcache, and emptying that folder did not help.

If 40GB is not enough for a root partition, can I just use parted?

Parted's print:

Number  Start   End     Size    File system  Name         Flags
1      1049kB  538MB   537MB   fat32                     boot, esp
2      538MB   44.3GB  43.8GB  ext4
4      44.3GB  1000GB  956GB   ext4         Linux /home  linux-home


I would shrink the ext4 home partition, sda4, and move the now-available space to sda2.

SDA4 has over 300GB available.  If stealing from it is the way to go, how much to take?

If 40GB should be enough space for a root partition - especially since pacman's packages don't land there - any suggestions on a likely spot to find files filling it up?

Last edited by chris_sugden (2025-10-16 15:33:56)

Offline

#2 2025-10-15 20:28:21

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 69,880

Re: 40GB Root Partition has 2.3GB Free. Steal From The Next Partition?

If 40GB should be enough space for a root partition - especially since pacman's packages don't land there - any suggestions on a likely spot to find files filling it up?

https://archlinux.org/packages/extra/x86_64/ncdu/

Online

#3 2025-10-17 15:14:28

twelveeighty
Member
Registered: 2011-09-04
Posts: 1,396

Re: 40GB Root Partition has 2.3GB Free. Steal From The Next Partition?

Also - when analyzing your disk usage, make sure to think in terms of "blocks", not GiB. Pacman takes into account blocksize when calculating the needed free "space". For example, a 100 files of only 1-byte size still take up 100 blocks.

Offline

Board footer

Powered by FluxBB