You are not logged in.
Pages: 1
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/1000Last edited by foxtrots2 (2024-03-31 23:17:36)
Offline
pacman -Sccto 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
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
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
Pages: 1