Some folder on a specific partition are disappearing

Hello everyone,
I've been using garuda Dragonized for a few months, on my second ssd, which is partitioned in two, with one partition exclusively for Garuda, and the other for shared files between windows and linux (I have windows on dual boot)
The problem here, is that some folders seem to disappear randomly, like entire folders from my ssd shared partition without any notice, warning or any message.

At first it happened after a restart, I had to boot on windows, and then I couldn't find my folders back when I went back to linux. I had to redownload them, and later on, the same problem happened, but with other folders.

The folders mostly contain videos and music.
I couldn't find them anywhere in the partition and neither in the trash bin, what can I do?

My inxi

System:
Kernel: 6.3.9-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 13.1.1
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=7505a3fc-b7a1-4db4-bf7e-92128c363c12 rw rootflags=subvol=@
quiet quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
loglevel=3 ibt=off
Desktop: KDE Plasma v: 5.27.6 tk: Qt v: 5.15.10 wm: kwin_x11 vt: 2
dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
Type: Laptop System: HP product: HP Pavilion Gaming Laptop 15-ec1xxx v: N/A
serial: <superuser required> Chassis: type: 10 serial: <superuser required>
Mobo: HP model: 87B2 v: 31.23 serial: <superuser required> UEFI: AMI
v: F.25 date: 08/18/2021
Battery:
ID-1: BAT0 charge: 4.8 Wh (10.9%) condition: 44.0/44.0 Wh (100.0%)
volts: 10.6 min: 11.6 model: Hewlett-Packard Primary type: Li-ion
serial: N/A status: discharging cycles: 395
CPU:
Info: model: AMD Ryzen 7 4800H with Radeon Graphics bits: 64 type: MT MCP
arch: Zen 2 gen: 3 level: v3 note: check built: 2020-22
process: TSMC n7 (7nm) family: 0x17 (23) model-id: 0x60 (96) stepping: 1
microcode: 0x8600106
Topology: cpus: 1x cores: 8 tpc: 2 threads: 16 smt: enabled cache:
L1: 512 KiB desc: d-8x32 KiB; i-8x32 KiB L2: 4 MiB desc: 8x512 KiB L3: 8 MiB
desc: 2x4 MiB
Speed (MHz): avg: 2168 high: 2900 min/max: 1400/2900 boost: enabled
scaling: driver: acpi-cpufreq governor: performance cores: 1: 1408 2: 1397
3: 1397 4: 2900 5: 2900 6: 2900 7: 1771 8: 2900 9: 2900 10: 2900 11: 2900
12: 1397 13: 1331 14: 2900 15: 1396 16: 1397 bogomips: 92621
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Vulnerabilities: <filter>
Graphics:
Device-1: NVIDIA TU117M [GeForce GTX 1650 Ti Mobile] vendor: Hewlett-Packard
driver: nvidia v: 535.54.03 alternate: nouveau,nvidia_drm non-free: 530.xx+
status: current (as of 2023-05) arch: Turing code: TUxxx
process: TSMC 12nm FF built: 2018-22 pcie: gen: 1 speed: 2.5 GT/s lanes: 8
link-max: gen: 3 speed: 8 GT/s lanes: 16 bus-ID: 01:00.0
chip-ID: 10de:1f95 class-ID: 0300
Device-2: AMD Renoir vendor: Hewlett-Packard driver: amdgpu v: kernel
arch: GCN-5 code: Vega process: GF 14nm built: 2017-20 pcie: gen: 3
speed: 8 GT/s lanes: 16 link-max: gen: 4 speed: 16 GT/s ports:
active: eDP-1 empty: none bus-ID: 05:00.0 chip-ID: 1002:1636
class-ID: 0300 temp: 48.0 C
Device-3: Quanta HP TrueVision HD Camera driver: uvcvideo type: USB
rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 3-3:2 chip-ID: 0408:5365
class-ID: 0e02
Display: x11 server: X.Org v: 21.1.8 with: Xwayland v: 23.1.2
compositor: kwin_x11 driver: X: loaded: amdgpu,nvidia
unloaded: modesetting,nouveau alternate: fbdev,nv,vesa dri: radeonsi
gpu: amdgpu 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 mapped: eDP model: ChiMei InnoLux 0x153b built: 2020
res: 1920x1080 hz: 60 dpi: 142 gamma: 1.2 size: 344x193mm (13.54x7.6")
diag: 394mm (15.5") ratio: 16:9 modes: 1920x1080
API: OpenGL v: 4.6 Mesa 23.1.3 renderer: AMD Radeon Graphics (renoir LLVM
15.0.7 DRM 3.52 6.3.9-zen1-1-zen) direct-render: Yes
Audio:
Device-1: NVIDIA vendor: Hewlett-Packard driver: snd_hda_intel v: kernel
pcie: gen: 1 speed: 2.5 GT/s lanes: 8 link-max: gen: 3 speed: 8 GT/s
lanes: 16 bus-ID: 01:00.1 chip-ID: 10de:10fa class-ID: 0403
Device-2: AMD ACP/ACP3X/ACP6x Audio Coprocessor vendor: Hewlett-Packard
driver: N/A alternate: snd_pci_acp3x, snd_rn_pci_acp3x, snd_pci_acp5x,
snd_pci_acp6x, snd_acp_pci, snd_rpl_pci_acp6x, snd_pci_ps,
snd_sof_amd_renoir, snd_sof_amd_rembrandt pcie: gen: 3 speed: 8 GT/s
lanes: 16 link-max: gen: 4 speed: 16 GT/s bus-ID: 05:00.5
chip-ID: 1022:15e2 class-ID: 0480
Device-3: AMD Family 17h/19h HD Audio vendor: Hewlett-Packard
driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
link-max: gen: 4 speed: 16 GT/s bus-ID: 05:00.6 chip-ID: 1022:15e3
class-ID: 0403
API: ALSA v: k6.3.9-zen1-1-zen status: kernel-api with: aoss
type: oss-emulator tools: N/A
Server-1: PipeWire v: 0.3.71 status: active with: 1: pipewire-pulse
status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
vendor: Hewlett-Packard driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s
lanes: 1 port: e000 bus-ID: 02:00.0 chip-ID: 10ec:8168 class-ID: 0200
IF: eno1 state: down mac: <filter>
Device-2: Realtek RTL8822CE 802.11ac PCIe Wireless Network Adapter
vendor: Hewlett-Packard driver: rtw_8822ce v: N/A modules: rtw88_8822ce
pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: d000 bus-ID: 03:00.0
chip-ID: 10ec:c822 class-ID: 0280
IF: wlo1 state: up mac: <filter>
Bluetooth:
Device-1: Realtek Bluetooth Radio driver: btusb v: 0.8 type: USB rev: 1.0
speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-4:3 chip-ID: 0bda:b00c
class-ID: e001 serial: <filter>
Report: bt-adapter ID: hci0 rfk-id: 0 state: down
bt-service: enabled,running rfk-block: hardware: no software: yes
address: <filter>
Drives:
Local Storage: total: 1.4 TiB used: 368.01 GiB (25.7%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: SK Hynix
model: BC511 HFM512GDJTNI-82A0A size: 476.94 GiB block-size: physical: 512 B
logical: 512 B speed: 31.6 Gb/s lanes: 4 tech: SSD serial: <filter>
fw-rev: HPS0 temp: 35.9 C scheme: GPT
ID-2: /dev/sda maj-min: 8:0 vendor: TeamGroup model: T2531TB
size: 953.87 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
tech: SSD serial: <filter> fw-rev: LA.5 scheme: MBR
Partition:
ID-1: / raw-size: 292.97 GiB size: 292.97 GiB (100.00%)
used: 110.74 GiB (37.8%) fs: btrfs dev: /dev/sda1 maj-min: 8:1
ID-2: /boot/efi raw-size: 260 MiB size: 256 MiB (98.46%)
used: 79.9 MiB (31.2%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
ID-3: /home raw-size: 292.97 GiB size: 292.97 GiB (100.00%)
used: 110.74 GiB (37.8%) fs: btrfs dev: /dev/sda1 maj-min: 8:1
ID-4: /var/log raw-size: 292.97 GiB size: 292.97 GiB (100.00%)
used: 110.74 GiB (37.8%) fs: btrfs dev: /dev/sda1 maj-min: 8:1
ID-5: /var/tmp raw-size: 292.97 GiB size: 292.97 GiB (100.00%)
used: 110.74 GiB (37.8%) fs: btrfs dev: /dev/sda1 maj-min: 8:1
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: zram size: 14.99 GiB used: 512 KiB (0.0%) priority: 100
dev: /dev/zram0
Sensors:
System Temperatures: cpu: 49.5 C mobo: N/A gpu: amdgpu temp: 48.0 C
Fan Speeds (RPM): fan-1: 0 fan-2: 0
Info:
Processes: 385 Uptime: 6m wakeups: 1 Memory: available: 14.99 GiB
used: 5.25 GiB (35.0%) Init: systemd v: 253 default: graphical
tool: systemctl Compilers: gcc: 13.1.1 clang: 15.0.7 Packages: pm: pacman
pkgs: 1911 libs: 521 tools: octopi,paru Shell: fish v: 3.6.1 default: Bash
v: 5.1.16 running-in: konsole inxi: 3.3.27
Garuda (2.6.16-1):
System install date:     2023-05-20
Last full system update: 2023-06-28
Is partially upgraded:   No
Relevant software:       snapper NetworkManager dracut nvidia-dkms
Windows dual boot:       Probably (Run as root to verify)
Failed units:```

It looks like you have run inxi with no arguments. Please post the output of:

garuda-inxi

You will see it is a much lengthier output, with a lot more helpful diagnostic information included.

On the second partition which is shared, what is the filesystem? If it is NTFS, you need to prepare your fstab very carefully so that it can be correctly mounted. See here: NTFS-3G - ArchWiki

Default settings

Using the default settings will mount the NTFS partition(s) at boot. With this method, if the parent folder that it is mounted upon has the proper user or group permissions (e.g. /run/media//), then that user or group will be able to read and write on that partition(s).

/etc/fstab

# <file system> <dir> <type> <options> <dump> <pass> /dev/*NTFS-part* /mnt/windows ntfs-3g defaults 0 0

Linux compatible permissions

Permissions on a Linux system are normally set to 755 for folders and 644 for files. It is recommended to keep these permissions in use for the NTFS partition as well if you use the partition on a regular basis. The following example assigns the above permissions to a normal user:

# Mount internal Windows partition with linux compatible permissions, i.e. 755 for directories (dmask=022) and 644 for files (fmask=133) /dev/*NTFS-partition* /mnt/windows ntfs-3g uid=*userid*,gid=*groupid*,dmask=022,fmask=133 0 0

Alternatively, if the Windows permissions do matter to you, you can use the ntfsusermap(8) command to map Windows users to Linux ones. ntfs-3g will handle the translation of these permissions.

Allowing group/user

In /etc/fstab you can also specify other options like those who are allowed to access (read) the partition. For example, for you to allow people in the groupid group to have access:

/dev/*NTFS-partition* /mnt/windows ntfs-3g gid=*groupid*,umask=0022 0 0

By default, the above line will enable write support for root only. To enable user writing, you have to specify the user who should be granted write permissions. Use the uid parameter together with your user id to enable user writing:

/dev/*NTFS-partition* /mnt/windows ntfs-3g uid=*userid*,gid=*groupid*,umask=0022 0 0

If you are running on a single user machine, you may like to own the file system yourself and grant all possible permissions:

/dev/*NTFS-partition* /mnt/windows ntfs-3g uid=*userid*,gid=*groupid* 0 0

Another consideration will be to make sure you disable the Windows fast startup feature. When the fast startup mode is enabled, Windows will hang on to certain resources–including mounted disks–even when the system is supposedly “off”.

4 Likes

I've edit my inxi output after using the right command.
The second partition is using NTFS as you said, I've configured the fstab to automatically mount it on boot and made sure that the windows fast startup was disabled.
Another issue that I have encountered but that is worth mentioning is that after using Garuda yesterday and put it to sleep, the system has failed to boot correctly today with a black screen and the Maj Button blinking. I turned down the system with the power button, but as I logged in today, my browsing histroy from yesterday was absent. I don't know if this issue is related but might be worth mentioning.

Thank you for your help ^^

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.