After move a bunch of images to one folder to another, suddenly my entire directory disappear

I got a lot of images inside a folder called “ads”, i then pressed ctrl+a inside this folder then ctrl+c, then created a new called “test”, entered the this folder called “test” and pressed ctrl+v, the plasma freezes and after a seconds everything got normal but, the folder called “ads” show a message called “Folder is empty”, and when i type ls insides, the terminal return me this error

".": Invalid argument (os error 22)

the “ads” folder had almost 1gb, now is 4.0 kib

what happens? and how can i get my images back?

Is there maybe more to the story ?

Was this a mounted partition?

Are you out of space or memory?

Besides which … your sequence of events meant you did nothing to the original files.

(you only state ctrl+a [select all] and then ctrl+v [paste])

sorry, english isn’t my mother tongue
i copy then paste, using ctrl+c and ctrl+v
i’m not out of space or memory, got 16gb of ram and 37% of my 1TB is occupied

i selected all images, copy, created a folder, entered the folder, paste, everything freezes and my folder was totally empty

Copy should also mean the original files are retained.

Even if there was a problem pasting … it should not impact the source files.

Was some form of root or ‘sudo’ at play?

Is this an external or mounted partition? If so how is it mounted?

We might begin also with some system information.

inxi -Farz

I will also include a guide for things like how to format code etc.

no, i don’t even used the terminal, i used after to check if typing ls it should display something, but only show a message

“.”: Invalid argument (os error 22)

is a mounted partition

System:
  Kernel: 6.6.26-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 13.2.1
    clocksource: tsc avail: hpet,acpi_pm
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.6-x86_64
    root=UUID=ed108a42-cb2a-4954-a5b8-51375f691225 rw quiet
    cryptdevice=UUID=500b9523-8a69-4823-9d76-45c88bbb80f7:luks-500b9523-8a69-4823-9d76-45c88bbb80f7
    root=/dev/mapper/luks-500b9523-8a69-4823-9d76-45c88bbb80f7 splash
    udev.log_priority=3
  Desktop: KDE Plasma v: 5.27.11 tk: Qt v: 5.15.12 info: frameworks
    v: 5.115.0 wm: kwin_x11 with: krunner vt: 2 dm: SDDM Distro: Manjaro
    base: Arch Linux
Machine:
  Type: Desktop System: Gigabyte product: H110M-H v: N/A
    serial: <superuser required>
  Mobo: Gigabyte model: H110M-H-CF v: x.x serial: <superuser required>
    uuid: <superuser required> UEFI: American Megatrends v: F20 date: 11/16/2016
CPU:
  Info: model: Intel Core i7-7700 bits: 64 type: MT MCP arch: Kaby Lake
    gen: core 7 level: v3 note: check built: 2018 process: Intel 14nm family: 6
    model-id: 0x9E (158) stepping: 9 microcode: 0xF4
  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: 8 MiB desc: 1x8 MiB
  Speed (MHz): avg: 901 high: 902 min/max: 800/4200 scaling:
    driver: intel_pstate governor: powersave cores: 1: 902 2: 901 3: 900 4: 902
    5: 902 6: 901 7: 901 8: 900 bogomips: 57616
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities:
  Type: gather_data_sampling mitigation: Microcode
  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: reg_file_data_sampling status: Not affected
  Type: retbleed mitigation: IBRS
  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: IBRS; IBPB: conditional; STIBP: conditional;
    RSB filling; PBRSB-eIBRS: Not affected; BHI: Not affected
  Type: srbds mitigation: Microcode
  Type: tsx_async_abort mitigation: TSX disabled
Graphics:
  Device-1: Intel HD Graphics 630 vendor: Gigabyte driver: i915 v: kernel
    arch: Gen-9.5 process: Intel 14nm built: 2016-20 ports: active: none
    empty: DP-1, HDMI-A-1, HDMI-A-2, HDMI-A-3 bus-ID: 00:02.0
    chip-ID: 8086:5912 class-ID: 0380
  Device-2: NVIDIA GP104 [GeForce GTX 1070] vendor: eVga.com. driver: nvidia
    v: 550.67 alternate: nouveau,nvidia_drm non-free: 545.xx+ status: current
    (as of 2024-04; EOL~2026-12-xx) arch: Pascal code: GP10x
    process: TSMC 16nm built: 2016-2021 pcie: gen: 3 speed: 8 GT/s lanes: 16
    bus-ID: 01:00.0 chip-ID: 10de:1b81 class-ID: 0300
  Display: x11 server: X.Org v: 21.1.12 with: Xwayland v: 23.2.6
    compositor: kwin_x11 driver: X: loaded: nvidia gpu: i915,nvidia
    display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 92 s-size: 530x292mm (20.87x11.50")
    s-diag: 605mm (23.82")
  Monitor-1: Unknown-1 mapped: DP-0 res: 1920x1080 dpi: 82
    size: 597x336mm (23.5x13.23") modes: 1024x768
  API: EGL v: 1.5 hw: drv: intel iris drv: nvidia platforms: device: 0
    drv: nvidia device: 1 drv: iris device: 3 drv: swrast gbm: drv: kms_swrast
    surfaceless: drv: nvidia x11: drv: nvidia inactive: wayland,device-2
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: nvidia mesa v: 550.67
    glx-v: 1.4 direct-render: yes renderer: NVIDIA GeForce GTX 1070/PCIe/SSE2
    memory: 7.81 GiB
  API: Vulkan v: 1.3.279 layers: 5 device: 0 type: discrete-gpu
    name: NVIDIA GeForce GTX 1070 driver: nvidia v: 550.67 device-ID: 10de:1b81
    surfaces: xcb,xlib device: 1 type: integrated-gpu name: Intel HD Graphics
    630 (KBL GT2) driver: mesa intel v: 24.0.2-manjaro1.1 device-ID: 8086:5912
    surfaces: xcb,xlib
Audio:
  Device-1: Intel 100 Series/C230 Series Family HD Audio vendor: Gigabyte
    driver: snd_hda_intel v: kernel alternate: snd_soc_avs bus-ID: 00:1f.3
    chip-ID: 8086:a170 class-ID: 0403
  Device-2: NVIDIA GP104 High Definition Audio vendor: eVga.com.
    driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
    bus-ID: 01:00.1 chip-ID: 10de:10f0 class-ID: 0403
  Device-3: JMTek LLC. USB PnP Audio Device
    driver: hid-generic,snd-usb-audio,usbhid type: USB rev: 1.1 speed: 12 Mb/s
    lanes: 1 mode: 1.1 bus-ID: 1-3:2 chip-ID: 0c76:161f class-ID: 0300
  Device-4: fifine Microphone driver: hid-generic,snd-usb-audio,usbhid
    type: USB rev: 1.1 speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-6:5
    chip-ID: 3142:a008 class-ID: 0300
  API: ALSA v: k6.6.26-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.0.3 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: d000 bus-ID: 02:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp2s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  Device-2: Realtek RTL8188EUS 802.11n Wireless Network Adapter
    driver: rtl8xxxu type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0
    bus-ID: 1-10:7 chip-ID: 0bda:8179 class-ID: 0000 serial: <filter>
  IF: wlp0s20f0u10 state: down mac: <filter>
  IF-ID-1: docker0 state: down mac: <filter>
  Info: services: NetworkManager,systemd-timesyncd
Drives:
  Local Storage: total: 2.05 TiB used: 969.68 GiB (46.1%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/sda maj-min: 8:0 vendor: Kingston model: SKC400S37256G
    size: 238.47 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    tech: SSD serial: <filter> fw-rev: 001B scheme: GPT
  ID-2: /dev/sdb maj-min: 8:16 vendor: Toshiba model: DT01ACA100
    size: 931.51 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
    tech: HDD rpm: 7200 serial: <filter> fw-rev: A750 scheme: MBR
  ID-3: /dev/sdc maj-min: 8:32 vendor: Toshiba model: DT01ACA100
    size: 931.51 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
    tech: HDD rpm: 7200 serial: <filter> fw-rev: A750 scheme: MBR
Partition:
  ID-1: / raw-size: 238.17 GiB size: 233.37 GiB (97.99%)
    used: 130.32 GiB (55.8%) fs: ext4 dev: /dev/dm-0 maj-min: 254:0
    mapped: luks-500b9523-8a69-4823-9d76-45c88bbb80f7
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 448 KiB (0.1%) fs: vfat dev: /dev/sda1 maj-min: 8:1
Swap:
  Alert: No swap data was found.
Sensors:
  System Temperatures: cpu: 44.0 C mobo: N/A gpu: nvidia temp: 48 C
  Fan Speeds (rpm): N/A gpu: nvidia fan: 0%
Repos:
  Packages: 1473 pm: pacman pkgs: 1457 libs: 411 tools: pamac,yay pm: flatpak
    pkgs: 12 pm: snap pkgs: 4
  Active pacman repo servers in: /etc/pacman.d/mirrorlist
    1: https://mirrors.dotsrc.org/manjaro/stable/$repo/$arch
    2: https://manjaro.c3sl.ufpr.br/stable/$repo/$arch
    3: https://mirror.funami.tech/manjaro/stable/$repo/$arch
    4: https://ftpmirror1.infania.net/mirror/manjaro/stable/$repo/$arch
    5: https://nnenix.mm.fcix.net/manjaro/stable/$repo/$arch
    6: https://mirrors.ucr.ac.cr/manjaro/stable/$repo/$arch
    7: https://mirror.2degrees.nz/manjaro/stable/$repo/$arch
    8: https://repo.ialab.dsu.edu/manjaro/stable/$repo/$arch
    9: https://codingflyboy.mm.fcix.net/manjaro/stable/$repo/$arch
    10: https://coresite.mm.fcix.net/manjaro/stable/$repo/$arch
    11: https://nocix.mm.fcix.net/manjaro/stable/$repo/$arch
    12: https://ask4.mm.fcix.net/manjaro/stable/$repo/$arch
    13: https://muug.ca/mirror/manjaro/stable/$repo/$arch
    14: https://forksystems.mm.fcix.net/manjaro/stable/$repo/$arch
    15: https://mirror.freedif.org/Manjaro/stable/$repo/$arch
    16: https://manjaro.ynh.ovh/stable/$repo/$arch
    17: https://quantum-mirror.hu/mirrors/pub/manjaro/stable/$repo/$arch
    18: https://mirror.xenyth.net/manjaro/stable/$repo/$arch
    19: https://mirror.albony.xyz/manjaro/stable/$repo/$arch
    20: https://uvermont.mm.fcix.net/manjaro/stable/$repo/$arch
    21: https://opencolo.mm.fcix.net/manjaro/stable/$repo/$arch
    22: https://mirrors2.manjaro.org/stable/$repo/$arch
    23: https://mirrors.ocf.berkeley.edu/manjaro/stable/$repo/$arch
    24: https://fastmirror.pp.ua/manjaro/stable/$repo/$arch
    25: https://mirror.math.princeton.edu/pub/manjaro/stable/$repo/$arch
    26: https://mirror.easyname.at/manjaro/stable/$repo/$arch
    27: https://mirror.alpix.eu/manjaro/stable/$repo/$arch
    28: https://mirrors.sjtug.sjtu.edu.cn/manjaro/stable/$repo/$arch
    29: https://ohioix.mm.fcix.net/manjaro/stable/$repo/$arch
    30: https://manjaro.kyberorg.fi/stable/$repo/$arch
    31: https://volico.mm.fcix.net/manjaro/stable/$repo/$arch
    32: https://mirror.archlinux.tw/Manjaro/stable/$repo/$arch
    33: https://edgeuno-bog2.mm.fcix.net/manjaro/stable/$repo/$arch
    34: https://mirrors.cicku.me/manjaro/stable/$repo/$arch
    35: https://ftp.gwdg.de/pub/linux/manjaro/stable/$repo/$arch
    36: https://ftp.psnc.pl/linux/manjaro/stable/$repo/$arch
    37: https://southfront.mm.fcix.net/manjaro/stable/$repo/$arch
    38: https://ftp.lysator.liu.se/pub/manjaro/stable/$repo/$arch
    39: https://ridgewireless.mm.fcix.net/manjaro/stable/$repo/$arch
    40: https://fosszone.csd.auth.gr/manjaro/stable/$repo/$arch
    41: https://mirror.futureweb.be/manjaro/stable/$repo/$arch
    42: https://mirrors.up.pt/pub/manjaro/stable/$repo/$arch
    43: https://ftp.halifax.rwth-aachen.de/manjaro/stable/$repo/$arch
    44: https://mirror.23m.com/manjaro/stable/$repo/$arch
    45: https://mirror.init7.net/manjaro/stable/$repo/$arch
    46: https://manjaro.kurdy.org/stable/$repo/$arch
    47: https://mirror.erickochen.nl/manjaro/stable/$repo/$arch
    48: https://mirror.kku.ac.th/manjaro/stable/$repo/$arch
    49: https://mirror.phoepsilonix.love/manjaro/stable/$repo/$arch
    50: https://mirror.kamtv.ru/manjaro/stable/$repo/$arch
    51: https://mirrors.manjaro.org/repo/stable/$repo/$arch
    52: https://mirrors.netix.net/manjaro/stable/$repo/$arch
    53: https://manjaro.mirrors.lavatech.top/stable/$repo/$arch
    54: https://mnvoip.mm.fcix.net/manjaro/stable/$repo/$arch
    55: https://mirror.truenetwork.ru/manjaro/stable/$repo/$arch
    56: https://gsl-syd.mm.fcix.net/manjaro/stable/$repo/$arch
    57: https://irltoolkit.mm.fcix.net/manjaro/stable/$repo/$arch
    58: https://manjaro.repo.cure.edu.uy/stable/$repo/$arch
    59: https://mirrors.jlu.edu.cn/manjaro/stable/$repo/$arch
Info:
  Memory: total: 16 GiB available: 15.53 GiB used: 10.08 GiB (64.9%)
  Processes: 321 Power: uptime: 1d 22h 50m states: freeze,mem,disk
    suspend: deep avail: s2idle wakeups: 2 hibernate: platform avail: shutdown,
    reboot, suspend, test_resume image: 6.2 GiB services: org_kde_powerdevil,
    power-profiles-daemon, upowerd Init: systemd v: 255 default: graphical
    tool: systemctl
  Compilers: clang: 16.0.6 gcc: 13.2.1 Shell: Zsh v: 5.9 default: Bash
    v: 5.2.26 running-in: konsole inxi: 3.3.34

Did you check your Trash directory, in case of accidental deletion?

…or, check surrounding ‘folder’ heirarchies in case these files were inadvertantly dropped into another location?

Otherwise, os error 22 (or errno 22 in Python) can often indicate unsupported characters in a path or file name; which might also be consistent with Dolphin seeming to freeze upon entering the directory.

I don’t know which method to recommend at this point, but a recovery tool of some kind might be in order.

Is it a native Linux filesystem?
…or was it perhaps EXFAT or NTFS on a removable USB disk?

On another topic:

You have no swap space defined;
you might wish to change that at some point.

Cheers.

I don’t know

if you had e.g. 16G worth of files - a guess - OOM killer kicked the process - a known problem when no swap is available

Restore from backup

2 Likes

the Trash was the first thing i tried but nothing was there, i also tried ctrl+z but nothing happens, I turn on my computer this morning and the folder was the same i described before.

I created this also, i don’t know why i didn’t created before when i first installed manjaro

Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default) zswap: yes
    compressor: zstd max-pool: 20%
  ID-1: swap-1 type: file size: 4 GiB used: 0 KiB (0.0%) priority: -2
    file: /SWAP.img

manjaro is my native filesystem

i restored from my backup, but my worry is this thing happens in something that i didn’t backup yet, and if happens how can i “Undo”.

could the lack of swap caused this?