Cannot edit Mousepad file

Receiving error: Failed to save document. Error renaming temporary file: No space left on device

Device is showing 9.8 GiB free space.


The file is a simple text file created by mousepad. I was just adding a few words after which I attempted to save the file only to get an error.

If right-click on Thunar and choose Create Document and then choose Empty file, enter the file name and click Create a new empty text file is created. The open it with mousepad and add words and click save gives error.

If mount another drive, then have no problems saving edits to the file via Mousepad.

Some more information, would be useful. Like your system (inxi -zv8), what you were doing, or thought you were doing. Stuff like that.

Thanks.

$ inxi -zv8
System:
  Kernel: 6.12.68-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 15.2.1
    clocksource: tsc avail: hpet,acpi_pm
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-6.12-x86_64
    root=UUID=bf2c7024-cad8-4474-a678-85ef39cbb7ee rw rootflags=subvol=@
    quiet udev.log_priority=3
  Desktop: Xfce v: 4.20.1 tk: Gtk v: 3.24.51 wm: xfwm4 v: 4.20.0
    with: xfce4-panel tools: xfce4-screensaver vt: 7 dm: LightDM v: 1.32.0
    Distro: Manjaro base: Arch Linux
Machine:
  Type: Desktop System: Gigabyte product: N/A v: N/A
    serial: <superuser required> Chassis: type: 3 serial: <superuser required>
  Mobo: Gigabyte model: F2A88XM-D3H serial: <superuser required>
    uuid: <superuser required> Firmware: UEFI vendor: American Megatrends v: F9
    date: 12/25/2015
Battery:
  Message: No system battery data found. Is one present?
Memory:
  System RAM: total: 24 GiB available: 22.68 GiB used: 1.58 GiB (7.0%)
  Message: For most reliable report, use superuser + dmidecode.
  Array-1: capacity: 32 GiB note: est. slots: 4 modules: 4 EC: None
    max-module-size: 8 GiB note: est.
  Device-1: Node0_Dimm0 type: DDR3 detail: synchronous unbuffered
    (unregistered) size: 8 GiB speed: 1866 MT/s volts: N/A width (bits):
    data: 64 total: 64 manufacturer: Kingston part-no: KHX1866C10D3/
    serial: <filter>
  Device-2: Node0_Dimm1 type: DDR3 detail: synchronous unbuffered
    (unregistered) size: 4 GiB speed: spec: 1600 MT/s actual: 1866 MT/s
    volts: N/A width (bits): data: 64 total: 64 manufacturer: N/A
    part-no: 1866 CL10 Ser serial: N/A
  Device-3: Node0_Dimm2 type: DDR3 detail: synchronous unbuffered
    (unregistered) size: 8 GiB speed: 1866 MT/s volts: N/A width (bits):
    data: 64 total: 64 manufacturer: Kingston part-no: KHX1866C10D3/
    serial: <filter>
  Device-4: Node0_Dimm3 type: DDR3 detail: synchronous unbuffered
    (unregistered) size: 4 GiB speed: spec: 1600 MT/s actual: 1866 MT/s
    volts: N/A width (bits): data: 64 total: 64 manufacturer: N/A
    part-no: 1866 CL10 Ser serial: N/A
PCI Slots:
  Permissions: Unable to run dmidecode. Root privileges required.
CPU:
  Info: model: AMD A6-6400K APU with Radeon HD Graphics bits: 64 type: MCP
    arch: Piledriver level: v2 built: 2012-13 process: GF 32nm family: 0x15 (21)
    model-id: 0x13 (19) stepping: 1 microcode: 0x6001119
  Topology: cpus: 1x dies: 1 clusters: 1 cores: 2 smt: <unsupported> cache:
    L1: 96 KiB desc: d-2x16 KiB; i-1x64 KiB L2: 1024 KiB desc: 1x1024 KiB
  Speed (MHz): avg: 1796 min/max: 1800/3900 boost: enabled scaling:
    driver: acpi-cpufreq governor: schedutil cores: 1: 1796 2: 1796
    bogomips: 15576
  Flags: 3dnowprefetch abm aes aperfmperf apic arat avx bmi1 clflush cmov
    cmp_legacy constant_tsc cpb cpuid cr8_legacy cx16 cx8 de decodeassists
    extapic extd_apicid f16c flushbyasid fma fma4 fpu fxsr fxsr_opt ht
    hw_pstate ibs lahf_lm lbrv lm lwp mca mce misalignsse mmx mmxext monitor
    msr mtrr nodeid_msr nonstop_tsc nopl npt nrip_save nx osvw pae pat
    pausefilter pclmulqdq pdpe1gb perfctr_core perfctr_nb pfthreshold pge pni
    popcnt pse pse36 rdtscp rep_good sep skinit ssbd sse sse2 sse4_1 sse4_2
    sse4a ssse3 svm svm_lock syscall tbm tce topoext tsc tsc_scale vmcb_clean
    vme vmmcall wdt xop xsave
  Vulnerabilities:
  Type: gather_data_sampling status: Not affected
  Type: indirect_target_selection status: Not affected
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data status: Not affected
  Type: reg_file_data_sampling status: Not affected
  Type: retbleed mitigation: untrained return thunk; SMT disabled
  Type: spec_rstack_overflow status: Not affected
  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: Retpolines; STIBP: disabled; RSB filling;
    PBRSB-eIBRS: Not affected; BHI: Not affected
  Type: srbds status: Not affected
  Type: tsa status: Not affected
  Type: tsx_async_abort status: Not affected
  Type: vmscape status: Not affected
Graphics:
  Device-1: Advanced Micro Devices [AMD/ATI] Richland [Radeon HD 8470D]
    vendor: Gigabyte driver: radeon v: kernel alternate: amdgpu
    arch: TeraScale-3 code: Northern Islands process: TSMC 32nm built: 2010-13
    ports: active: DVI-D-1 empty: HDMI-A-1,VGA-1 bus-ID: 00:01.0
    chip-ID: 1002:9996 class-ID: 0300
  Display: x11 server: X.org v: 1.21.1.21 with: Xwayland v: 24.1.9
    compositor: xfwm4 v: 4.20.0 driver: X: loaded: radeon unloaded: modesetting
    alternate: fbdev,vesa dri: r600 gpu: radeon display-ID: :0.0
    note: <missing: xdpyinfo/xrandr>
  Monitor-1: DVI-D-1 model: Dell 2007FP serial: <filter> built: 2007
    res: 1600x1200 dpi: 99 gamma: 1.2 chroma: red: x: 0.639 y: 0.329 green:
    x: 0.298 y: 0.600 blue: x: 0.149 y: 0.059 white: x: 0.314 y: 0.329
    size: 367x275mm (14.45x10.83") diag: 514mm (20.2") ratio: 4:3, 5:4
    modes: 1600x1200, 1280x1024, 1152x864, 1024x768, 800x600, 640x480,
    720x400
  API: EGL v: 1.5 hw: drv: amd r600 platforms: device: 0 drv: r600 device: 1
    drv: swrast gbm: drv: kms_swrast surfaceless: drv: r600 x11: drv: r600
    inactive: wayland
  API: OpenGL v: 4.5 vendor: mesa v: 25.3.4-arch1.1 glx-v: 1.4
    direct-render: yes renderer: AMD ARUBA (DRM 2.50.0 / 6.12.68-1-MANJARO LLVM
    21.1.6) device-ID: 1002:9996 memory: 750 MiB unified: no
  Info: Tools: api: eglinfo,glxinfo de: xfce4-display-settings x11: xprop
Audio:
  Device-1: Advanced Micro Devices [AMD/ATI] Trinity HDMI Audio
    vendor: Gigabyte driver: snd_hda_intel v: kernel bus-ID: 00:01.1
    chip-ID: 1002:9902 class-ID: 0403
  Device-2: Advanced Micro Devices [AMD] FCH Azalia vendor: Gigabyte
    driver: snd_hda_intel v: kernel bus-ID: 00:14.2 chip-ID: 1022:780d
    class-ID: 0403
  API: ALSA v: k6.12.68-1-MANJARO status: kernel-api with: aoss
    type: oss-emulator tools: alsactl,alsamixer,amixer
  Server-1: JACK v: 1.9.22 status: off tools: N/A
  Server-2: PipeWire v: 1.4.10 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet
    vendor: Gigabyte driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s
    lanes: 1 port: e000 bus-ID: 01:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp1s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  IP v6: <filter> type: noprefixroute scope: link
  Info: services: NetworkManager,systemd-timesyncd
  WAN IP: <filter>
Bluetooth:
  Message: No bluetooth data found.
Logical:
  Message: No logical block device data found.
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 465.76 GiB used: 116.68 GiB (25.1%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/sda maj-min: 8:0 vendor: Western Digital
    model: WD Blue SA510 2.5 500GB size: 465.76 GiB block-size: physical: 512 B
    logical: 512 B speed: 6.0 Gb/s tech: SSD serial: <filter> fw-rev: 6100
    scheme: GPT
  Message: No optical or floppy data found.
Partition:
  ID-1: / raw-size: 50 GiB size: 50 GiB (100.00%) used: 26.67 GiB (53.3%)
    fs: btrfs dev: /dev/sda3 maj-min: 8:3 label: N/A
    uuid: bf2c7024-cad8-4474-a678-85ef39cbb7ee
  ID-2: /boot/efi raw-size: 2 GiB size: 2 GiB (99.80%) used: 664 KiB (0.0%)
    fs: vfat dev: /dev/sda1 maj-min: 8:1 label: N/A uuid: E9D5-6789
  ID-3: /home raw-size: 100 GiB size: 100 GiB (100.00%)
    used: 90.01 GiB (90.0%) fs: btrfs dev: /dev/sda4 maj-min: 8:4 label: N/A
    uuid: 12a0d675-528c-47a7-a1c1-7ab5d3dd3d77
  ID-4: /var/cache raw-size: 50 GiB size: 50 GiB (100.00%)
    used: 26.67 GiB (53.3%) fs: btrfs dev: /dev/sda3 maj-min: 8:3 label: N/A
    uuid: bf2c7024-cad8-4474-a678-85ef39cbb7ee
  ID-5: /var/log raw-size: 50 GiB size: 50 GiB (100.00%)
    used: 26.67 GiB (53.3%) fs: btrfs dev: /dev/sda3 maj-min: 8:3 label: N/A
    uuid: bf2c7024-cad8-4474-a678-85ef39cbb7ee
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default) zswap: no
  ID-1: swap-1 type: partition size: 8 GiB used: 0 KiB (0.0%) priority: -2
    dev: /dev/sda2 maj-min: 8:2 label: N/A
    uuid: bb87b90e-692a-47ce-81ab-711165f4fd30
Unmounted:
  ID-1: /dev/sda7 maj-min: 8:7 size: 100.06 GiB fs: btrfs label: N/A
    uuid: e46f2737-721d-45bc-8b12-0c8c5abd5a1b
USB:
  Hub-1: 1-0:1 info: full speed or root hub ports: 5 rev: 1.1
    speed: 12 Mb/s (1.4 MiB/s) lanes: 1 mode: 1.1 chip-ID: 1d6b:0001
    class-ID: 0900
  Device-1: 1-4:2 info: Logitech Corded Tilt-Wheel Mouse type: mouse
    driver: hid-generic,usbhid interfaces: 1 rev: 2.0
    speed: 1.5 Mb/s (183 KiB/s) lanes: 1 mode: 1.0 power: 98mA
    chip-ID: 046d:c040 class-ID: 0301
  Hub-2: 2-0:1 info: full speed or root hub ports: 5 rev: 1.1
    speed: 12 Mb/s (1.4 MiB/s) lanes: 1 mode: 1.1 chip-ID: 1d6b:0001
    class-ID: 0900
  Hub-3: 3-0:1 info: full speed or root hub ports: 5 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 1d6b:0002
    class-ID: 0900
  Hub-4: 4-0:1 info: full speed or root hub ports: 5 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 1d6b:0002
    class-ID: 0900
  Hub-5: 5-0:1 info: full speed or root hub ports: 2 rev: 1.1
    speed: 12 Mb/s (1.4 MiB/s) lanes: 1 mode: 1.1 chip-ID: 1d6b:0001
    class-ID: 0900
  Hub-6: 6-0:1 info: hi-speed hub with single TT ports: 2 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 1d6b:0002
    class-ID: 0900
  Hub-7: 7-0:1 info: super-speed hub ports: 2 rev: 3.0
    speed: 5 Gb/s (596.0 MiB/s) lanes: 1 mode: 3.2 gen-1x1 chip-ID: 1d6b:0003
    class-ID: 0900
  Hub-8: 8-0:1 info: hi-speed hub with single TT ports: 2 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 1d6b:0002
    class-ID: 0900
  Hub-9: 8-1:2 info: VIA Labs USB2.0 Hub ports: 4 rev: 2.1
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 2109:2817
    class-ID: 0900
  Hub-10: 9-0:1 info: super-speed hub ports: 2 rev: 3.0
    speed: 5 Gb/s (596.0 MiB/s) lanes: 1 mode: 3.2 gen-1x1 chip-ID: 1d6b:0003
    class-ID: 0900
  Hub-11: 9-1:2 info: VIA Labs USB3.0 Hub ports: 4 rev: 3.1
    speed: 5 Gb/s (596.0 MiB/s) lanes: 1 mode: 3.2 gen-1x1 chip-ID: 2109:0817
    class-ID: 0900
Sensors:
  System Temperatures: cpu: 0.0 C mobo: N/A
  Fan Speeds (rpm): N/A
Repos:
  Packages: pm: pacman pkgs: 1657 libs: 389 tools: pamac,yay
  Active pacman repo servers in: /etc/pacman.d/mirrorlist
    1: https://mirrors.cicku.me/manjaro/stable/$repo/$arch
    2: https://mirror.bakertelekom.fr/manjaro/stable/$repo/$arch
    3: https://mirror.2degrees.nz/manjaro/stable/$repo/$arch
    4: http://ftp.uni-kl.de/pub/linux/manjaro/stable/$repo/$arch
    5: https://mirror.init7.net/manjaro/stable/$repo/$arch
    6: https://ftp.yz.yamagata-u.ac.jp/pub/linux/manjaro/stable/$repo/$arch
    7: https://mirror.meowsmp.net/manjaro/stable/$repo/$arch
    8: https://kartolo.sby.datautama.net.id/manjaro/stable/$repo/$arch
Processes:
  CPU top: 5 of 248
  1: cpu: 5.2% command: xfce4-terminal pid: 3797 mem: 52.0 MiB (0.2%)
  2: cpu: 4.0% command: brave pid: 1973 mem: 325.7 MiB (1.4%)
  3: cpu: 1.3% command: Xorg pid: 552 mem: 78.9 MiB (0.3%)
  4: cpu: 1.0% command: brave pid: 1808 mem: 231.8 MiB (0.9%)
  5: cpu: 0.9% command: brave pid: 1771 mem: 328.6 MiB (1.4%)
  Memory top: 5 of 248
  1: mem: 328.6 MiB (1.4%) command: brave pid: 1771 cpu: 0.9%
  2: mem: 325.7 MiB (1.4%) command: brave pid: 1973 cpu: 4.0%
  3: mem: 231.8 MiB (0.9%) command: brave pid: 1808 cpu: 1.0%
  4: mem: 226.9 MiB (0.9%) command: brave pid: 3471 cpu: 0.6%
  5: mem: 147.5 MiB (0.6%) command: brave pid: 1918 cpu: 0.0%
Info:
  Processes: 248 Power: uptime: 46m states: freeze,mem,disk suspend: deep
    avail: s2idle wakeups: 0 hibernate: platform avail: shutdown, reboot,
    suspend, test_resume image: 9.05 GiB services: upowerd,xfce4-power-manager
    Init: systemd v: 258 default: graphical tool: systemctl
  Compilers: clang: 21.1.6 gcc: 15.2.1 Shell: Bash v: 5.3.9
    running-in: xfce4-terminal inxi: 3.3.40

Just editing a txt file and trying to save edits.

Why did you delete your inxi output?

@oneno What the hell are you doing? First you post your inxi output correctly, then you delete it, then you post it incorrectly.

Trying to put it in details/summary format.

Your original two posts have been restored and merged for you.

Please see: :point_down:


[MiniHowTo] Present code or command output

Note: Grave accent (or, backtick) characters are used. :eyes:

For inline code or to show a single command:

  • for example, typing: `code here` will display the text as code here.

For multi-line command output:

  • place text beween two rows of three (```) backtick characters to form a scrollable text box, or …
  • use the </> button in the Compose window to achieve the same result.

The empty row between these rows of backtick characters is where to paste any multi-line command output (such as inxi).

An example of a pre-formatted text enclosure:

What is a Quark?

A. In Physics, an elementary particle and fundamental constituent of matter.
B. A character from the Star Trek: "Deep Space Nine" television series.
C. A soft, creamy, usually unsalted cheese traditional to central Europe.

@oneno

As you seem to enjoy editing, please edit your first post in this topic – reveal the edit button if neccessary by clicking the ellipsis (the three dots beneath the post) – and add more useful information to benefit those who might wish to help.

There is much more information you could add if you take the time to think about it… these are only a few examples:

  • Explain what this “mousepad file” is: the real name and type of file and where in your system it is located.
  • Explain how you are attempting to edit/save the file.
  • Note the application you are using to edit the file – you are using XFCE, so we presume the default MousePad, but if it’s something else, please specify.
1 Like

Please tell us:

/home/$user/Downloads/tmp/

The /home partition is formated with btrfs

Thank you.

So, it’s within your /home/$user , and not in the system heirarchy.

Can you recreate the file (copy all content and paste it into the new file) – does the new file then save as expected?

Why does that tmp directory exist? Did you run a program from the Downloads directory, and was that directory created in the process?

No. Get an error … Error renaming temporary file: No space left on device.

1 Like

Created the tmp dir myself

1 Like

I suspect this may be related to poor btrfs maintenance.

See the folowing comment in another topic:

That post offers several links which I suggest you follow to understand how this can be the problem.

A forum search will also reveal many other cases where this has been discussed:

Regards.


A few more quotes from other topics to enhance understanding:

As these suggest, your disk consumption is already critical for btrfs; and ext4 might also begin to struggle with the amount of space you have available.

There is a fundamental difference between how space is managed with btrfs and ext4, for example.

Avalable space when using btrfs spans all partitions (much like Apple’s apfs). Let’s say for the sake of argument that your system reports 20 GiB available – for btrfs and apfs, that’s 20 GiB available across all partitions – unlike ext4 which would only refer to available space on the current partition.

One might think that’s a lot – in modern computer systems, it really isn’t.

The moral to this story is to never overfill your storage. Other files systems also have recommended maximum usage limits – for Microsoft’s ntfs it’s generally about 75% before the amount of data you have stored becomes detrimental to system processes and general maintenance requirements, such as defrag, for example.

Path to a cure:

I’d strongly suggest moving some data from /home to external storage (perhaps a USB HDD formatted as ext4) and always be conscious of disk usage – especially that of /.


Anecdotal:

We all have reasons for the way we choose to configure partition sizes – I’d configure a new installation Manjaro (if on a 500 GiB disk) much like this:

Partition Size (approx)
ESP 300 MB
/ 100 GiB
/home 300 GiB
swap 32 GB - 64 GiB
/other Remaining space

Even so, it’s easy to discover that a 500 GiB HDD/SDD isn’t quite as large as we imagine it to be; wherever possible, I install any OS to a (minimum) 1 TB disk to help avoid such problems.

6 Likes

I tried that (moving files to another disk). No luck. Also used btrfs-assistant to scrub and balance the partition. No luck. So , backed-up files, and reinstalled linux this time to an ext4 partition.

1 Like

I tend to use 1 TB these days, mostly for the files I tend to gather around me (that’s files not flies). I haven’t gone as far a 100 GB for root (/) yet, even with all the apps I have install 65 Gig has proven well and truely ample. But I get your point.

With 8 gig of RAM I find 20 GB ample for Swap.

When I get the new computer, and upgrade the RAM to 16 GB or more I will have to re evaluate my swap parameters.

1 Like

The 8GB linuxswap on my HD was from a time when I only had 8GB RAM. Now with 24GB RAM, not really concerned about a linuxswap partition.

Have never had issues with the root (/) partition at 50GB. Will try to keep /home partition with enough free space going forward.

Everything is relative, of course, according to needs. Sometimes concessions must be made due to lack of disk space, but there are always minimum limits that should be observed in a Linux system, and if we don’t, well, we pay the price.

Using a 100 GiB / allows plenty of space for zswap (if it’s used) and a variety of other “potentials” – /home is on a separate partition, and I’d likely create a separate /var, at least.

I imagine many of those multi-booting – cramming two (or more) operating systems on a single disk – must suffer a variety of issues as a result. As I always maintain, the safest way to multi-boot is with one OS on each disk.

I have 64 GiB RAM in this system; thus the somewhat larger than average allowance for a swap partition. With greater amounts of RAM becoming the norm, this only enhances the need to maximise available space. For me, a 100 GiB disk (minimum) is ideal; a 500 GB disk is not so ideal, but manageable if care is taken; yes, I’m speaking from experience. :wink:

With that, the thread will be closed, as the topic issue is no longer relevant.

Despite btrfs being such a robust filesystem with so many features, I still use ext4 and will continue to, as long as I’m using any 500 MiB disks – btrfs does tend to be demanding - when multi-terabyte storage becomes generally affordable, btrfs will naturally become my first choice.

Indeed, you could possibly get by with a swap file instead, for those times when it’s needed. Of course, having available free space on / then becomes paramount.