Weird error No space left on device, progress cannot be queried

Sorry @Duke187 Duke187 only have seen your post after I finished repairing. But I am thankful still. @filo Cleaning efivars did. Not sure why and how there was so much trash in there. Even an old win7 boot entry… Anyways. it worked. So for anyone who arrives from google and needs help and for learning and understanding of course. below is my experience and fix.

So after work I had time again to find a solution.
Cleaning /sys/firmware/efi/efivars was the beginning.

Clearing out everything and rewriting efivar enabled me to do a “normal” boot.
I had mount errors and other errors but i was in the system. I could see but not write.

I Did boot a live usb garuda und used chroot to connect to my real system.

btrfs check 
sudo btrfsck /dev/sdc2

So it was broken…

I repaired the broken stuff with:
btrfsck --check --force /dev/sdb4

This is highly dangerous (but i had nothing important on the drive. I do my backups)
Remember i tried to fix this because i wanted to learn. Reinstalling would do the same.

I ended up with a broken system of course.
garuda usb-live boot chroot again and was able to use a read/write filesystem.
So progress…

The fixing starts here:

sudo pacman -Qk

listed my broken packages
pacman -Qk 2>/dev/null | grep -v ' 0 missing files' | cut -d: -f1

created a list for reinstall.
Then i remembered the btrfs filesystem error and decidet to reinstall all packages.

from arhwiki: pacman/Tips and tricks - ArchWiki
created the list.
pacman -Qqen > packages.txt

installed from it.
pacman -S - < packages.txt

to fix the other errors like:

ldconfig: File /usr/lib/libsvn_repos-1.so is empty, not checked.

I ran my script:

LANG=de_DE ldconfig 2> err.txt

for file in $(cut -d" " -f3 err.txt)
do
echo $file
pacman -S $(pacman -Fq $file) --noconfirm --overwrite “*”
done

After that I Reinstalled Grub

After that I rebooted with mount error.
garuda usb-live boot chroot again.

I generated a new fstab file (thought installing would also change this):
genfstab -U -p /mnt >> /mnt/etc/fstab
Rebooted and it worked fine.

From here I could finally do:

garuda-update

Since then everything is fine and dandy.
There are steps in between where I had to read logs and test (trial and error) stuff which I skipped here for obvious reasons.
Love you Garuda-Linux.

Epilogue:
Nice live boot experience. You really thought this through.
Using btrfs-instead of ext4 was also a smart move.
btrfs-assistant and snapper-tools… I don’t want to be without them anymore.

It is nice to have a forum, which helped me a lot in other cases. Hope it keeps growing.
I am using Linux over 25 years now and seeing it evolve is great.
Keep it up Team. Thx for this OS. Will donate at the end of the year as always with my OS of choice.

3 Likes