Hello,
I have my system files on a btrfs. The machine suddenly did not boot normally. Systemd did not start the login, network and graphical display leaving me with the tty.
The reason is a full btrfs filesystem, with no space to make files on the /tmp directory. This frustrates systemd, giving strange errors.
I tried to recover, but got stuck. The space is 0% on the btrfs, giving me only a read only mount. Removing some files is therefore impossible. I tried this also via a recovery system (boot via USB). This gives the same result and now i am stuck.
Hopefully someone can help me to mount the partition as read-write, so i can remove some files and continue.
Mounting the btrfs partition (/dev/sdd1) on the recovery system gives:
# mount /dev/sdd1 temp-mount/
3049.751115] BTRFS info (device sdd1): disk space caching is enabled
3049.751117] BTRFS info (device sdd1): has skinny extents
3049.790239] BTRFS info (device sdd1): enabling ssd optimizations
3049.795922] BTRFS info (device sdd1): checking UUID tree
3049.854980] BTRFS warning (device sdd1): btrfs_uuid_scan_kthread failed -28
(the disk is then read-only)
# mount
/dev/sdd1 on /home/linux/temp-mount type btrfs (ro,relatime,ssd,space_cache,skip_balance,subvolid=257,subvol=/@)
and trying to remount as a read write partition gives:
# mount -o remount,rw,skip_balance /dev/sdd1
3076.761128] BTRFS info (device sdd1): disk space caching is enabled
3078.943146] BTRFS: error (device sdd1) in btrfs_drop_snapshot:5505: errno=-28 No space left
3078.943151] BTRFS info (device sdd1): forced readonly
The partition is then mounted read only, giving me no option to remove some files. Unmounting and checking gives:
# umount /dev/sdd1
# btrfs check /dev/sdd1
Opening filesystem to check...
Checking filesystem on /dev/sdd1
UUID: 11e837a4-2ab2-4a08-a6ca-e681ac45afce
[1/7] checking root items
[2/7] checking extents
[3/7] checking free space cache
[4/7] checking fs roots
[5/7] checking only csums items (without verifying data)
[6/7] checking root refs
[7/7] checking quota groups skipped (not enabled on this FS)
found 31472496640 bytes used, no error found
total csum bytes: 29688304
total tree bytes: 1064960000
total fs tree bytes: 988725248
total extent tree bytes: 38453248
btree space waste bytes: 175403793
file data blocks allocated: 338649542656
referenced 77958098944
The kernel version on the recovery USB is:
# uname -r
5.7.5-1-default