You are not logged in.

#1 2024-03-31 22:39:18

foxtrots2
Member
Registered: 2024-03-31
Posts: 1

Full root partition

My root partition is full and i can't install any pacman package. Is there any way to somehow resize the root partition and shrink the home partition at the same time?

Here's what i get after installing anything:

error: Partition / too full: 298744 blocks needed, 70626 blocks free
error: not enough free disk space
error: failed to commit transaction (not enough free disk space)

df -h output shows that it is indeed full:

Filesystem      Size  Used Avail Use% Mounted on
dev              12G     0   12G   0% /dev
run              12G  1.5M   12G   1% /run
efivarfs        128K   50K   74K  41% /sys/firmware/efi/efivars
/dev/sda3        40G   37G  276M 100% /
tmpfs            12G  248M   12G   3% /dev/shm
/dev/sda1      1022M  360M  663M  36% /boot
tmpfs            12G   25M   12G   1% /tmp
/dev/sda4       844G  112G  690G  14% /home
tmpfs           2.4G   56K  2.4G   1% /run/user/1000

Last edited by foxtrots2 (2024-03-31 23:17:36)

Offline

#2 2024-03-31 23:07:32

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,009

Re: Full root partition

pacman -Scc

to completely wipe the pacman cache, ncdu (but you'd have to install that) to inspect the usage, but "du -hs /var/cache" might already tell enough.

Please use [code][/code] tags. Edit your post in this regard.

Offline

#3 2024-03-31 23:42:50

jabol240
Member
From: Gdansk, Poland
Registered: 2011-02-18
Posts: 19

Re: Full root partition

What are the filesystems of the partitions you intend to resize? Like ext4, btrfs, something else? Yes in general you can resize partition online or offline (i.e. when they are mounted or not). Doing it offline, in your case, would mean using another OS, like a bootable pendrive or CD. Also, you probably want to backup any data you care for.

Offline

#4 2024-03-31 23:52:15

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,009

Re: Full root partition

https://wiki.archlinux.org/title/Parted … partitions

Online resizing of the root partition (even if the FS supports it) is begging for damage and since this here will involve shrinking the home partition to the right (ie. shrink and move it) I'd highly recommend to use the https://wiki.archlinux.org/title/Parted GUI (which abstracts that for you) and there's also a parted live distro for that purpose.
Partition moving in particular is always a bit risky so backups are a seriously good idea.

All that being said: I suspect you don't actually have to grow the root partition, just clean up.

Offline

Board footer

Powered by FluxBB