No Space left on device

Garuda-inxi

garuda-inxi
System:
  Kernel: 5.19.10-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
    root=UUID=ec56f045-0b46-48cb-ad41-c68705366f20 rw [email protected]
    quiet
    cryptdevice=UUID=a67a8316-52c4-4a8e-b15d-27bb91d58197:luks-a67a8316-52c4-4a8e-b15d-27bb91d58197
    root=/dev/mapper/luks-a67a8316-52c4-4a8e-b15d-27bb91d58197 quiet splash
    rd.udev.log_priority=3 vt.global_cursor_default=0 loglevel=3
  Desktop: KDE Plasma v: 5.25.5 tk: Qt v: 5.15.6 info: latte-dock
    wm: kwin_x11 vt: 1 dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
  Type: Laptop System: Micro-Star product: GL62M 7RD v: REV:1.0
    serial: <superuser required> Chassis: type: 10 serial: <superuser required>
  Mobo: Micro-Star model: MS-16J9 v: REV:1.0 serial: <superuser required>
    UEFI: American Megatrends v: E16J9IMS.324 date: 03/23/2018
Battery:
  ID-1: BAT1 charge: 25.7 Wh (97.0%) condition: 26.5/43.2 Wh (61.3%)
    volts: 12.1 min: 10.8 model: MSI BIF0_9 type: Li-ion serial: N/A
    status: not charging
CPU:
  Info: model: Intel Core i7-7700HQ bits: 64 type: MT MCP arch: Kaby Lake
    gen: core 7 level: v3 built: 2018 process: Intel 14nm family: 6
    model-id: 0x9E (158) stepping: 9 microcode: 0xF0
  Topology: cpus: 1x cores: 4 tpc: 2 threads: 8 smt: enabled cache:
    L1: 256 KiB desc: d-4x32 KiB; i-4x32 KiB L2: 1024 KiB desc: 4x256 KiB
    L3: 6 MiB desc: 1x6 MiB
  Speed (MHz): avg: 1469 high: 2800 min/max: 800/3800 scaling:
    driver: intel_pstate governor: powersave cores: 1: 1000 2: 1087 3: 2800
    4: 1000 5: 1066 6: 1000 7: 1000 8: 2800 bogomips: 44798
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities:
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT
    vulnerable
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable
  Type: meltdown mitigation: PTI
  Type: mmio_stale_data mitigation: Clear CPU buffers; SMT vulnerable
  Type: retbleed mitigation: IBRS
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: IBRS, IBPB: conditional, RSB filling,
    PBRSB-eIBRS: Not affected
  Type: srbds mitigation: Microcode
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel HD Graphics 630 vendor: Micro-Star MSI driver: i915
    v: kernel arch: Gen-9.5 process: Intel 14nm built: 2016-20 ports:
    active: eDP-1 empty: DP-1,HDMI-A-1,HDMI-A-2 bus-ID: 00:02.0
    chip-ID: 8086:591b class-ID: 0300
  Device-2: NVIDIA GP107M [GeForce GTX 1050 Mobile] vendor: Micro-Star MSI
    driver: nvidia v: 515.76 alternate: nouveau,nvidia_drm non-free: 515.xx+
    status: current (as of 2022-08) arch: Pascal code: GP10x
    process: TSMC 16nm built: 2016-21 pcie: gen: 1 speed: 2.5 GT/s lanes: 16
    link-max: gen: 3 speed: 8 GT/s bus-ID: 01:00.0 chip-ID: 10de:1c8d
    class-ID: 0302
  Device-3: Acer BisonCam NB Pro type: USB driver: uvcvideo bus-ID: 1-11:4
    chip-ID: 5986:0683 class-ID: 0e02 serial: <filter>
  Display: x11 server: X.Org v: 21.1.4 with: Xwayland v: 22.1.3
    compositor: kwin_x11 driver: gpu: i915 note:  X driver n/a display-ID: :0
    screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.00x11.22")
    s-diag: 582mm (22.93")
  Monitor-1: eDP-1 model: ChiMei InnoLux 0x15d2 built: 2015 res: 1920x1080
    hz: 60 dpi: 142 gamma: 1.2 size: 344x193mm (13.54x7.6") diag: 394mm (15.5")
    ratio: 16:9 modes: 1920x1080
  OpenGL: renderer: Mesa Intel HD Graphics 630 (KBL GT2) v: 4.6 Mesa 22.1.7
    direct render: Yes
Audio:
  Device-1: Intel CM238 HD Audio vendor: Micro-Star MSI driver: snd_hda_intel
    v: kernel bus-ID: 00:1f.3 chip-ID: 8086:a171 class-ID: 0403
  Sound Server-1: ALSA v: k5.19.10-zen1-1-zen running: yes
  Sound Server-2: PulseAudio v: 16.1 running: no
  Sound Server-3: PipeWire v: 0.3.58 running: yes
Network:
  Device-1: Intel Dual Band Wireless-AC 3168NGW [Stone Peak] driver: iwlwifi
    v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1 bus-ID: 02:00.0
    chip-ID: 8086:24fb class-ID: 0280
  IF: wlp2s0 state: up mac: <filter>
  Device-2: Qualcomm Atheros QCA8171 Gigabit Ethernet
    vendor: Micro-Star MSI driver: alx v: kernel pcie: gen: 1 speed: 2.5 GT/s
    lanes: 1 port: d000 bus-ID: 03:00.0 chip-ID: 1969:10a1 class-ID: 0200
  IF: enp3s0 state: down mac: <filter>
Bluetooth:
  Device-1: Intel Wireless-AC 3168 Bluetooth type: USB driver: btusb v: 0.8
    bus-ID: 1-10:3 chip-ID: 8087:0aa7 class-ID: e001
  Report: bt-adapter ID: hci0 rfk-id: 0 state: up address: <filter>
Drives:
  Local Storage: total: 931.51 GiB used: 86.23 GiB (9.3%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/sda maj-min: 8:0 vendor: HGST (Hitachi) model: HTS721010A9E630
    size: 931.51 GiB block-size: physical: 4096 B logical: 512 B
    speed: 6.0 Gb/s type: HDD rpm: 7200 serial: <filter> rev: A3U0
    scheme: GPT
Partition:
  ID-1: / raw-size: 65.19 GiB size: 65.19 GiB (100.00%) used: 11.98 GiB
    (18.4%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
    mapped: luks-a67a8316-52c4-4a8e-b15d-27bb91d58197
  ID-2: /boot/efi raw-size: 500 MiB size: 499 MiB (99.80%) used: 984 KiB
    (0.2%) fs: vfat dev: /dev/sda2 maj-min: 8:2
  ID-3: /home raw-size: 65.19 GiB size: 65.19 GiB (100.00%) used: 11.98 GiB
    (18.4%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
    mapped: luks-a67a8316-52c4-4a8e-b15d-27bb91d58197
  ID-4: /var/log raw-size: 65.19 GiB size: 65.19 GiB (100.00%) used: 11.98
    GiB (18.4%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
    mapped: luks-a67a8316-52c4-4a8e-b15d-27bb91d58197
  ID-5: /var/tmp raw-size: 65.19 GiB size: 65.19 GiB (100.00%) used: 11.98
    GiB (18.4%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
    mapped: luks-a67a8316-52c4-4a8e-b15d-27bb91d58197
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: zram size: 7.68 GiB used: 1.42 GiB (18.5%)
    priority: 100 dev: /dev/zram0
  ID-2: swap-2 type: partition size: 14.9 GiB used: 0 KiB (0.0%)
    priority: -2 dev: /dev/sda5 maj-min: 8:5
Sensors:
  System Temperatures: cpu: 48.0 C pch: 44.5 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 309 Uptime: 1h 22m wakeups: 1 Memory: 7.68 GiB used: 3.17 GiB
  (41.3%) Init: systemd v: 251 default: graphical tool: systemctl
  Compilers: gcc: 12.2.0 Packages: 1236 pm: pacman pkgs: 1227 libs: 311
  tools: octopi,paru pm: snap pkgs: 9 Shell: Bash v: 5.1.16 running-in: tilix
  inxi: 3.3.21
Garuda (2.6.7-1):
  System install date:     2022-09-26
  Last full system update: 2022-09-26 ↻
  Is partially upgraded:   No
  Relevant software:       NetworkManager
  Windows dual boot:       No/Undetected
  Snapshots:               Snapper
  Failed units:            snapper-cleanup.service 

When I am trying to run vivaldi or any of the snap based apps I am getting this error -

$ vivaldi-stable
[0926/125325.723142:ERROR:file_writer.cc(98)] writev: No space left on device (28)
[0926/125325.723157:ERROR:crash_report_exception_handler.cc(226)] WriteEverything failed
Trace/breakpoint trap (core dumped)

Here is my df -h

$ df -h
Filesystem      Size  Used Avail Use% Mounted on
dev             3.9G     0  3.9G   0% /dev
run             3.9G   18M  3.9G   1% /run
/dev/dm-0        66G   12G   53G  19% /
tmpfs           3.9G   52M  3.8G   2% /dev/shm
/dev/loop1      128K  128K     0 100% /var/lib/snapd/snap/bare/5
/dev/loop2       46M   46M     0 100% /var/lib/snapd/snap/snap-store/599
/dev/loop4      165M  165M     0 100% /var/lib/snapd/snap/gnome-3-28-1804/161
/dev/loop7       48M   48M     0 100% /var/lib/snapd/snap/snapd/16778
/dev/loop8       64M   64M     0 100% /var/lib/snapd/snap/core20/1623
/dev/loop5       56M   56M     0 100% /var/lib/snapd/snap/core18/2566
/dev/loop6      347M  347M     0 100% /var/lib/snapd/snap/gnome-3-38-2004/115
/dev/loop0       92M   92M     0 100% /var/lib/snapd/snap/gtk-common-themes/1535
tmpfs           3.9G  3.7M  3.9G   1% /tmp
/dev/dm-0        66G   12G   53G  19% /var/log
/dev/dm-0        66G   12G   53G  19% /var/tmp
/dev/dm-0        66G   12G   53G  19% /srv
/dev/dm-0        66G   12G   53G  19% /var/cache
/dev/dm-0        66G   12G   53G  19% /home
/dev/dm-0        66G   12G   53G  19% /root
/dev/sda2       499M  984K  499M   1% /boot/efi
tmpfs           787M  787M     0 100% /run/user/1000
/dev/dm-1       9.1G  895M  7.7G  11% /run/media/cerulean/Docs
/dev/dm-2       313G   27G  270G   9% /run/media/cerulean/Var
/dev/dm-3        46G  2.0G   42G   5% /home/cerulean/Pictures
/dev/dm-4       274G   45G  216G  18% /home/cerulean/Videos

and my df -i

$ df -i
Filesystem       Inodes  IUsed    IFree IUse% Mounted on
dev              999039    742   998297    1% /dev
run             1006468   1419  1005049    1% /run
/dev/dm-0             0      0        0     - /
tmpfs           1006468    181  1006287    1% /dev/shm
/dev/loop1           29     29        0  100% /var/lib/snapd/snap/bare/5
/dev/loop2        17275  17275        0  100% /var/lib/snapd/snap/snap-store/599
/dev/loop4        27806  27806        0  100% /var/lib/snapd/snap/gnome-3-28-1804/161
/dev/loop7          486    486        0  100% /var/lib/snapd/snap/snapd/16778
/dev/loop8        11882  11882        0  100% /var/lib/snapd/snap/core20/1623
/dev/loop5        10858  10858        0  100% /var/lib/snapd/snap/core18/2566
/dev/loop6        18121  18121        0  100% /var/lib/snapd/snap/gnome-3-38-2004/115
/dev/loop0        76208  76208        0  100% /var/lib/snapd/snap/gtk-common-themes/1535
tmpfs           1048576     82  1048494    1% /tmp
/dev/dm-0             0      0        0     - /var/log
/dev/dm-0             0      0        0     - /var/tmp
/dev/dm-0             0      0        0     - /srv
/dev/dm-0             0      0        0     - /var/cache
/dev/dm-0             0      0        0     - /home
/dev/dm-0             0      0        0     - /root
/dev/sda2             0      0        0     - /boot/efi
tmpfs            201293   6082   195211    4% /run/user/1000
/dev/dm-1        609600    269   609331    1% /run/media/cerulean/Docs
/dev/dm-2      20881408 246979 20634429    2% /run/media/cerulean/Var
/dev/dm-3       3055616   1335  3054281    1% /home/cerulean/Pictures
/dev/dm-4      18317312    198 18317114    1% /home/cerulean/Videos

I did go through the forums earlier discussions and ran the following -

# btrfs scrub start /
scrub started on /, fsid ec56f045-0b46-48cb-ad41-c68705366f20 (pid=29644)

and also

# btrfs balance /
Done, had to relocate 15 out of 15 chunks

and yet when I run

$ vivaldi-stable
[0926/130222.524285:ERROR:file_writer.cc(98)] writev: No space left on device (28)
[0926/130222.524311:ERROR:crash_report_exception_handler.cc(226)] WriteEverything failed
Trace/breakpoint trap (core dumped)

Am I running the btrfs balance wrong?

I think the problem comes from here:

You could give a look also at this thread:

In my opinion you could try disabling psd with systemctl --user disable --now psd to see if that helps.
If so, you could try extending that tmpfs space.

3 Likes

Thank you so much for your expert advice. It really helped a lot - so what I did was basically increased the size of the tmpfs - I ran the following command -

mount -o remount,size=3G,noexec,nosuid,nodev,noatime /run/user/1000

I need some inputs here please -

$ swapon
NAME       TYPE       SIZE USED PRIO
/dev/zram0 partition  7.7G 1.1G  100
/dev/sda5  partition 14.9G   0B   -2

As you can see I have a dedicated 7.7 G zram and a 15 G Swap partition - I was told in another post in Garuda Forum that Garuda first will use zram and when there is no space in zram will use swap partition - then what is happening with tmpfs ? are they all not related. apologies in adavnce if this sounds like a Noob question.

As far as I can say (I'm not a developer), they are not related.
Did the tmpfs extension work (you see the change in df -h) and was effective for running Vivaldi?
If not "working", you could also try with this:
https://wiki.archlinux.org/title/Profile-sync-daemon#Allocate_more_memory_to_accommodate_profiles_in_/run/user/xxxx
Probably RuntimeDirectorySize parameter.
If working but not effective, did you try disabling psd?

2 Likes

This is a somewhat common issue with Snaps. They use a lot more space than regular packages, and apparently they leave up to three old versions of a package lying around on your system after an app has been updated.

This person put together a simple script for cleaning up the old Snaps. It looks like they ran it once and reduced the size of /var/lib/snapd/snaps/ by 50%! :exploding_head:

3 Likes