Hi. Using Manjaro KDE. All of sudden yesterday my desktop corrupted, wallpapers got lost, some programs froze and no other programs could be opened. Tried to reboot and it failed.
So I booted in another OS (archlinux) and chrooted into manjaro root successfully. But here are the commands I tried with errors:
pacman -Sy
:: Synchronising package databases...
error: failed to synchronize all databases (unable to lock database)
Trying to remove a flatpak gives error about no space left:
flatpak remove signal
Found installed ref ‘app/org.signal.Signal/x86_64/stable’ (system). Is this correct? [Y/n]:
ID Branch Op
1. [✗] org.signal.Signal stable r
Error: No space left on device
error: Failed to uninstall org.signal.Signal: No space left on device
But df -h / shows:
Filesystem Size Used Avail Use% Mounted on
/dev/nvme0n1p2 70G 58G 13G 82% /
Even a simple touch command fails
touch test /home
touch: cannot touch 'test': No space left on device
Remember all the above commands are run in chroot. I also mention that the manjaro root partition is btrfs. And btrfs check shows no error. No quotas on it either.
Thanks. As I posted, df command shows I still have 18% (13 Gb) space left. the manjaro wiki page you linked dies say about the 80% limit, but it also mentions 90% use of space is okay for emergency.
If I am not able to do anything in the partition even from chroot, how do I even reduce the size?
System:
Kernel 6.6.22-1-lts arch x86_64 bits 64
Desktop Hyprland v N/A Distro Manjaro Linux
Machine:
Type Laptop System LENOVO product 20L6S29E0V v ThinkPad T480 serial <filter>
Mobo LENOVO model 20L6S29E0V v SDK0J40697 WIN serial <filter> UEFI LENOVO v N24ET74W (1.49 )
date 08/15/2023
Battery:
ID-1 BAT0 charge 1.1 Wh (5.4%) condition 20.4/24.0 Wh (85.0%) volts 10.8 min 11.5
ID-2 BAT1 charge 11.2 Wh (62.6%) condition 17.9/24.1 Wh (74.6%) volts 11.4 min 11.4
CPU:
Info quad core model Intel Core i5-8350U bits 64 type MT MCP cache L2 1024 KiB
Speed (MHz) avg 450 min/max 400/3600 cores 1 400 2 400 3 400 4 400 5 400 6 800 7 400 8 400
Graphics:
Device-1 Intel UHD Graphics 620 driver i915 v kernel
Device-2 Bison Integrated IR Camera driver uvcvideo type USB
Device-3 Bison SunplusIT Integrated Camera driver uvcvideo type USB
Display wayland server X.org v 1.21.1.11 with Xwayland v 23.2.4 driver N/A
API EGL v 1.5 drivers iris,swrast platforms surfaceless,device
API OpenGL v 4.6 compat-v 4.5 vendor mesa v 24.0.2-manjaro1.1 note incomplete (EGL sourced)
renderer Mesa Intel UHD Graphics 620 (KBL GT2), llvmpipe (LLVM 16.0.6 256 bits)
API Vulkan Message No Vulkan data available.
Audio:
Device-1 Intel Sunrise Point-LP HD Audio driver snd_hda_intel
API ALSA v k6.6.22-1-lts status kernel-api
Network:
Device-1 Intel Ethernet I219-LM driver e1000e
IF enp0s31f6 state down mac <filter>
Device-2 Intel Wireless 8265 / 8275 driver iwlwifi
IF wlan0 state up mac <filter>
Drives:
Local Storage total 476.94 GiB used 69.24 GiB (14.5%)
ID-1 /dev/nvme0n1 vendor Toshiba model N/A size 476.94 GiB
Partition:
ID-1 / size 70 GiB used 57.16 GiB (81.7%) fs btrfs dev /dev/nvme0n1p2
Swap:
ID-1 swap-1 type partition size 2.11 GiB used 0 KiB (0.0%) dev /dev/nvme0n1p3
Sensors:
System Temperatures cpu 43.0 C pch 40.0 C mobo N/A
Fan Speeds (rpm) N/A
Info:
Memory total 16 GiB available 15.37 GiB used 2.66 GiB (17.3%) igpu 32 MiB
Processes 0 Uptime 2h 26m Client systemd inxi 3.3.33
btrfs filesystem usage
btrfs filesystem usage: not enough arguments: 0 but at least 1 expected
I did not understand what was expected here.
mount -t btrfs
/dev/nvme0n1p2 on /mnt/test type btrfs
(rw,relatime,ssd,discard=async,space_cache=v2,subvolid=256,subvol=/@)
So I guess btrfs is mounted as rw.
Please let me know if I need to present something else. Thanks.
Mounting other subvolumes is not possible, apparantly.
Trying to mount btrfs root partition in /mnt/test, sudo mount -o subvol=@ /dev/nvme0n1p2 /mnt/test is successful. But creating cache and log dir within /mnt/test shows error:
cannot create directory ‘/mnt/test/cache’: No space left on device
.
It is possible to create those dir before mounting btrfs, but it gets removed after mounting.
btrfs filesystem usage --help
usage: btrfs filesystem usage [options] <path> [<path>..]
Show detailed information about internal filesystem usage .
-b|--raw raw numbers in bytes
-h|--human-readable human friendly numbers, base 1024 (default)
-H human friendly numbers, base 1000
--iec use 1024 as a base (KiB, MiB, GiB, TiB)
--si use 1000 as a base (kB, MB, GB, TB)
-k|--kbytes show sizes in KiB, or kB with --si
-m|--mbytes show sizes in MiB, or MB with --si
-g|--gbytes show sizes in GiB, or GB with --si
-t|--tbytes show sizes in TiB, or TB with --si
-T show data in tabular format btrfs filesystem usage help
Yet
mount -t btrfs
is missing
If you only provide information in homeopathic doses and only after the second request, you are not only wasting your own time, but also the time of those who want to help you.
I only have a limited window of time in which I am able to help. It’s the same with others.
Did all that already right. I can go in chroot env. The problem is
# pacman -Sy
:: Synchronising package databases...
error: failed to synchronize all databases (unable to lock database)
# touch /mnt/kk
touch: cannot touch '/mnt/kk': No space left on device
Which seems to be a false error, as there is no db.lck as well as there is 13 Gb space left in the partition.
No not false - btrfs is blocking writes to the file system - often this is caused by errors in the datastructures - thus the message ‘no space left on device’.
To verify that - exit chroot and unmount /mnt
Then run - in root context - target the unmounted partition
btrfs check /dev/<part>
I have very little experience with btrfs - what I suggest is based on running btrfs commands with the -h to explore what commands are available and what options can be used.
That means that the same information is available to you and I suggest you dig into why btrfs blocks writes to the file system - this is not a pacman error but an issue with your filesystem.
btrfs is very, very picky and it may block writes if it determines the data structures has errors.