Can't recover, pacman says no space left on device

I am trying to recover according to

but when I issue the pacman command it says no space left on device. All the mounts went well without errors I was able to chroot.

What you may need to do is clear the leftover Pacman cache files to clear up some space.

du -h /var/cache/pacman/pkg/

ā€¦ a quick way of clearing this (probably not the recommended way, but itā€™s what I typically use):

rm -rf /var/cache/pacman/pkg/*

ā€¦ from within chroot. (Iā€™ve just cleared ~23G out of mine! :astonished: :facepalm:)

A bit more system info may be helpful though, e.g. the output of

`inxi -zv8`.

Hope this helps. :wink:

2 Likes

Thank you, it helped! I had 14 G in the cache.

After rebooting, my system was fine except it still said there was no space left on device. Plasma was slow. I was able to run filelight from Konsole and had to remove Cyberpunk steam folders :expressionless: . Very weird, because df -h did not say any space was missing. Is there something wrong with btrfs?

1 Like

Psstā€¦ I also leave this here in case it is useful.

3 Likes

This is the sledgehammer approach. It could be started milder and also using the foreseen commands for pacman cache cleaning:

https://wiki.archlinux.org/title/Pacman#Cleaning_the_package_cache

2 Likes

It is why I said itā€™s not the recommended approach. :wink:

That link is indeed useful as Iā€™ve always had a habit of doing things manually.

Inodes perhaps? Try df -hi

If you are using btrfs it requires special maintenance.

See for example;

6 Likes

My ā€˜cleanā€™ abbreviation/alias for a quick cleanup based on my system:

sudo pacman -Sc && pamac clean --build-files && paccache -rvuk0 && flatpak uninstall --unused
1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.