Big oof personal files vanished - just made an Update on my Garuda KDE dr460nized

…and my personal folders vanished. Can’t find them via Dolphin nor Console.
I never deleted them or even intended to delete them. It just happened after the update.
While being kinda sad about it and just used the snapper to roll back, THEY ARE STILL VANISHED !!!
I can’t explain why/how that happened. Since I have a new .NVME (never had issues) and just did a garuda-update

How can I retrieve the files? I kinda doubt they are deleted. I’m using the default configuration of Garuda KDE-dr460nized with BTRFS.

I hope someone has a super genius idea what went wrong. I never had something like this after using Linux for over 10 years O_o

Garuda-INXI (after rollback via Snapper):

╭─martin@Clockwork in ~
╰─λ garuda-inxi
System:
Kernel: 6.4.4-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 13.1.1
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=de43fccd-7f1e-439e-9eca-59d05e719941 rw rootflags=subvol=@
quiet quiet rd.udev.log_priority=3 vt.global_cursor_default=0 loglevel=3
amd_pstate.epp=1 mitigations=off 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: Desktop Mobo: Micro-Star model: MPG X570 GAMING PLUS (MS-7C37) v: 2.0
serial: <superuser required> UEFI: American Megatrends LLC. v: A.F0
date: 12/16/2021
CPU:
Info: model: AMD Ryzen 7 5800X bits: 64 type: MT MCP arch: Zen 3+ gen: 4
level: v3 note: check built: 2022 process: TSMC n6 (7nm) family: 0x19 (25)
model-id: 0x21 (33) stepping: 0 microcode: 0xA201016
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: 32 MiB desc: 1x32 MiB
Speed (MHz): avg: 3762 high: 3980 min/max: 2200/4850 boost: enabled
scaling: driver: acpi-cpufreq governor: performance cores: 1: 3687 2: 3720
3: 3800 4: 3980 5: 3810 6: 3840 7: 3732 8: 3646 9: 3800 10: 3621 11: 3800
12: 3800 13: 3683 14: 3678 15: 3800 16: 3800 bogomips: 121608
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Vulnerabilities: <filter>
Graphics:
Device-1: AMD Navi 21 [Radeon RX 6800/6800 XT / 6900 XT] vendor: ASUSTeK
driver: amdgpu v: kernel arch: RDNA-2 code: Navi-2x process: TSMC n7 (7nm)
built: 2020-22 pcie: gen: 4 speed: 16 GT/s lanes: 16 ports:
active: DP-1,HDMI-A-1 empty: DP-2,DP-3 bus-ID: 2f:00.0 chip-ID: 1002:73bf
class-ID: 0300
Display: x11 server: X.Org v: 21.1.8 with: Xwayland v: 23.1.2
compositor: kwin_x11 driver: X: loaded: amdgpu unloaded: modesetting,radeon
alternate: fbdev,vesa dri: radeonsi gpu: amdgpu display-ID: :0 screens: 1
Screen-1: 0 s-res: 3840x1080 s-dpi: 96 s-size: 1016x285mm (40.00x11.22")
s-diag: 1055mm (41.54")
Monitor-1: DP-1 mapped: DisplayPort-0 pos: primary,right model: Asus VS248
serial: <filter> built: 2012 res: 1920x1080 hz: 60 dpi: 92 gamma: 1.2
size: 531x299mm (20.91x11.77") diag: 609mm (24") ratio: 16:9 modes:
max: 1920x1080 min: 720x400
Monitor-2: HDMI-A-1 mapped: HDMI-A-0 pos: left model: Asus VS248
serial: <filter> built: 2012 res: 1920x1080 hz: 60 dpi: 92 gamma: 1.2
size: 531x299mm (20.91x11.77") diag: 609mm (24") ratio: 16:9 modes:
max: 1920x1080 min: 720x400
API: OpenGL v: 4.6 Mesa 23.1.3 renderer: AMD Radeon RX 6800 XT (navi21
LLVM 15.0.7 DRM 3.52 6.4.4-zen1-1-zen) direct-render: Yes
Audio:
Device-1: AMD Navi 21/23 HDMI/DP Audio driver: snd_hda_intel v: kernel pcie:
gen: 4 speed: 16 GT/s lanes: 16 bus-ID: 2f:00.1 chip-ID: 1002:ab28
class-ID: 0403
Device-2: AMD Starship/Matisse HD Audio vendor: Micro-Star MSI
driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16
bus-ID: 31:00.4 chip-ID: 1022:1487 class-ID: 0403
API: ALSA v: k6.4.4-zen1-1-zen status: kernel-api with: aoss
type: oss-emulator tools: alsactl,alsamixer,amixer
Server-1: PipeWire v: 0.3.74 status: active with: 1: pipewire-pulse
status: active 2: wireplumber status: active 3: pw-jack type: plugin
tools: pactl,pw-cat,pw-cli,wpctl
Network:
Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
vendor: Micro-Star MSI X570-A PRO driver: r8169 v: kernel pcie: gen: 1
speed: 2.5 GT/s lanes: 1 port: d000 bus-ID: 27:00.0 chip-ID: 10ec:8168
class-ID: 0200
IF: enp39s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Drives:
Local Storage: total: 931.51 GiB used: 445.92 GiB (47.9%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Crucial model: CT1000P5SSD8
size: 931.51 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
lanes: 4 tech: SSD serial: <filter> fw-rev: P4CR311 temp: 54.9 C
scheme: GPT
Partition:
ID-1: / raw-size: 931.22 GiB size: 931.22 GiB (100.00%)
used: 445.92 GiB (47.9%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
used: 584 KiB (0.2%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
ID-3: /home raw-size: 931.22 GiB size: 931.22 GiB (100.00%)
used: 445.92 GiB (47.9%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
ID-4: /var/log raw-size: 931.22 GiB size: 931.22 GiB (100.00%)
used: 445.92 GiB (47.9%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
ID-5: /var/tmp raw-size: 931.22 GiB size: 931.22 GiB (100.00%)
used: 445.92 GiB (47.9%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: zram size: 62.72 GiB used: 0 KiB (0.0%) priority: 100
dev: /dev/zram0
Sensors:
System Temperatures: cpu: 58.6 C mobo: N/A gpu: amdgpu temp: 43.0 C
mem: 40.0 C
Fan Speeds (RPM): N/A gpu: amdgpu fan: 0
Info:
Processes: 444 Uptime: 2m wakeups: 0 Memory: total: 64 GiB note: est.
available: 62.72 GiB used: 5.56 GiB (8.9%) Init: systemd v: 253
default: graphical tool: systemctl Compilers: gcc: 13.1.1 clang: 15.0.7
Packages: pm: pacman pkgs: 2294 libs: 583 tools: octopi,pamac,paru
Shell: fish v: 3.6.1 running-in: konsole inxi: 3.3.28
Garuda (2.6.16-1):
System install date:     2023-06-25
Last full system update: 2023-07-21
Is partially upgraded:   No
Relevant software:       snapper NetworkManager mkinitcpio
Windows dual boot:       No/Undetected
Failed units:            shadow.service

The template above should be deleted before posting your help request.

This will likely not help as @home is not included in the snapshots by default.

Did they vanish after doing the system upgrade or the migration (if offered at all) via the migration assistant? I can’t imagine the reason for this either right now :exploding_head:

2 Likes

Sorry, you lost your personal files, but it is more likely you accidentally deleted them. Had them hi-lited while hi-liting something else to delete. That said you should never keep anything you cannot afford to lose on your OS drive.

2 Likes

Maybe you could try
https://man.archlinux.org/man/core/btrfs-progs/btrfs-restore.8.en
Quite frankly, I never used it.

5 Likes

:arrow_up:

6 Likes

@dr460nf1r3 No migration assisstant used. Just made a regular ‘garuda-update’ …

Sorry, you lost your personal files, but it is more likely you accidentally deleted them. Had them hi-lited while hi-liting something else to delete.

Nope, sure not, since I hadn’t opened Dolphin or any other file managaer during the update. And the wastebin is empty as well. (my system default is, every deleted data is in the bin first)

Thanks @SGS but usually I don’t back up my main computer if it runs perfectly fine, which it did, until now :S

I guess I try a LIVE-CD boot and check the data.
Mysteriously my games can access those data, so I doubt those files are lost

So strange :S

Only .-files exist. If I had deleted them accidently then they need to be gone as well, but aren’t.

─martin@Clockwork in ~
╰─λ ls
drwxrwxrwx    - martin  5 Apr  2022  .AMD
drwxr-xr-x    - martin 10 Okt  2022  .audacity-data
drwxr-xr-x    - martin  1 Mär 00:32  .avidemux6
drwxr-xr-x    - martin 10 Mär 14:29  .cache
drwxr-xr-x    - martin 29 Aug  2022  .conda
drwxr-xr-x    - martin 10 Mär 14:29  .config
drwxr-xr-x    - martin  2 Jul  2023  .dotnet
drwxr-xr-x    - martin 24 Dez  2022  .dvdcss
drwx------    - martin 13 Apr  2022  .emacs.d
drwx------    - martin 10 Mär 14:23  .firedragon
drwx------    - martin 20 Okt  2022  .gnupg
drwxr-xr-x    - martin 11 Mai  2022  .gphoto
drwxr-xr-x    - martin  9 Jul  2023  .Heaven
drwxr-xr-x    - martin 13 Feb 22:43  .hplip
drwxr-xr-x    - martin 12 Apr  2022  .java
drwxr-xr-x    - martin 12 Apr  2022  .jd
drwxr-xr-x    - martin  8 Jun  2022  .kajonggserver
drwxr-xr-x    - martin  8 Mär  2022  .kde4
drwxr-xr-x    - martin 19 Okt  2022  .lazarus
drwx------    - martin  5 Jul  2023  .links
drwxr-xr-x    - martin 25 Aug  2022  .local
drwxr-xr-x    - martin 10 Mär 03:41  .mcfly
drwx------    - martin  3 Mär  2023  .mozilla
drwxr-xr-x    - martin 19 Okt  2022  .mplayer
drwxr-xr-x    - martin  2 Jul  2023  .nuget
drwx------    - martin  5 Apr  2022  .pki
drwx------    - martin 13 Jul  2023  .psensor
drwxr-xr-x    - martin 10 Apr  2022  .skrooge
drwx------    - martin 24 Jän  2023 󰢬 .ssh
drwxr-xr-x    - martin 10 Mär 03:28  .steam
drwxr-xr-x    - martin  1 Mär 01:07  .Superposition
drwx------    - martin 29 Nov  2023  .thunderbird
drwxr-xr-x    - martin 29 Nov  2023  .wine
drwxr-xr-x    - martin 19 Okt  2022  .winff
drwxr-xr-x    - martin 10 Mär 14:28  Screenshots
.rw------- 5,5k martin 10 Mär  2023 󱆃 .bash_history
.rw-r--r--   21 martin  8 Jän  2022 󱆃 .bash_logout
.rw-r--r--   57 martin  8 Jän  2022 󱆃 .bash_profile
.rw-r--r-- 2,0k martin 29 Aug  2022 󱆃 .bashrc
.rw-------    9 martin 17 Jul  2023  .calc_history
.rw-r--r--  110 martin 14 Aug  2022  .fonts.conf
.rw-r--r--  331 martin 10 Mär 14:23  .gtkrc-2.0
.rw-------   20 martin 20 Feb 00:50  .lesshst
.rw-r--r--   25 martin 15 Jul  2023  .mediainfo-gui
.rw-r--r--  183 martin 27 Feb  2022 󱆃 .profile
lrwxrwxrwx    - martin 10 Mär 03:28  .steampath -> /home/martin/.steam/sdk32/steam
lrwxrwxrwx    - martin 10 Mär 03:28  .steampid -> /home/martin/.steam/steam.pid
.rw-r--r--  389 martin  8 Feb  2023  .wget-hsts
.rw-------   54 martin 25 Jun  2023  .Xauthority
.rw-r--r--  414 martin 27 Feb  2022  .xinitrc
.rw-r--r--  49k martin  9 Jul  2022  .zcompdump
.rw-------    5 martin  9 Jul  2022  .zhistory
.rw-r--r-- 9,0k martin 21 Feb  2022 󱆃 .zshrc
.rw-r--r-- 173k martin 10 Mär 14:28  Screenshot_%T_%d.png

OK they’re . files, check and make sure under view that you have show hidden files checked.

2 Likes

I can see hidden files, look at my copy paste; I can see them!
Logged in as root - same result.
Update: Using filelight vs df -lh showed a difference of about 90 to 100GB which is exactly the amount of files I’m missing. - nope, I had a missread…
Partition tables are fine, no “non-allocated” or faulty areas.
$home location is also the same as before the update
even checked

cat /etc/passwd | grep <user>

and it is fine too!

Super confusing to me… :face_with_spiral_eyes:

Hmm, that’s a weird one! Did you check in /home to see if there are unexpected user accounts in there?

Have you tried searching for the missing directories, in case they were misplaced? For example:

find /home -name "Documents"
5 Likes

I’ll keep following but I’m honestly completely out of ideas.

1 Like

Yes, I did.
I tried several tools including Kfind, find in console, with user and with root.
Tried LiveCD, tried chroot, tried partitioning programs to check for non-allocated space.
All negative, I don’t get it. :sob:

It looks like /home is on the same disk as /, is that right? No symlinked extra drives or anything?

Is everything mounted okay? Let’s see lsblk -f and your /etc/fstab.

It sounds like you are not snapshotting /home, is that right?

Seems unlikely to be related, but you never know…

Nope.

And:

╭─martin@Clockwork in ~ took 4ms
[🔴] × lsblk -f
NAME        FSTYPE FSVER LABEL    UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
zram0                                                                                 [SWAP]
nvme0n1
├─nvme0n1p1 vfat   FAT32 NO_LABEL 047B-7CEE                             298,8M     0% /boot/efi
└─nvme0n1p2 btrfs                 de43fccd-7f1e-439e-9eca-59d05e719941  479,5G    48% /run/snapper-tools-SvrwFH
/var/tmp
/var/log
/root
/var/cache
/home
/srv
/

And:

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a device; this may
# be used with UUID= as a more robust way to name devices that works even if
# disks are added and removed. See fstab(5).
#
# <file system>             <mount point>  <type>  <options>  <dump>  <pass>
UUID=047B-7CEE                            /boot/efi      vfat    umask=0077 0 2
UUID=de43fccd-7f1e-439e-9eca-59d05e719941 /              btrfs   subvol=/@,defaults,noatime,autodefrag,compress=zstd,discard=async,ssd 0 0
UUID=de43fccd-7f1e-439e-9eca-59d05e719941 /home          btrfs   subvol=/@home,defaults,noatime,autodefrag,compress=zstd,discard=async,ssd 0 0
UUID=de43fccd-7f1e-439e-9eca-59d05e719941 /root          btrfs   subvol=/@root,defaults,noatime,autodefrag,compress=zstd,discard=async,ssd 0 0
UUID=de43fccd-7f1e-439e-9eca-59d05e719941 /srv           btrfs   subvol=/@srv,defaults,noatime,autodefrag,compress=zstd,discard=async,ssd 0 0
UUID=de43fccd-7f1e-439e-9eca-59d05e719941 /var/cache     btrfs   subvol=/@cache,defaults,noatime,autodefrag,compress=zstd,discard=async,ssd 0 0
UUID=de43fccd-7f1e-439e-9eca-59d05e719941 /var/log       btrfs   subvol=/@log,defaults,noatime,autodefrag,compress=zstd,discard=async,ssd 0 0
UUID=de43fccd-7f1e-439e-9eca-59d05e719941 /var/tmp       btrfs   subvol=/@tmp,defaults,noatime,autodefrag,compress=zstd,discard=async,ssd 0 0
tmpfs                                     /tmp           tmpfs   defaults,noatime,mode=1777 0 0

Yep I don’t. I never had issues with home and the most important data is on my back ups anyway. But I have severe trust issues now. I never had such a data fault on any Linux Distro. And I can’t even remotely tell what could have caused it…
so I’m worried AF

Thanks for your help <3

Next thing I can add to the “I’ve got issues b/c of the update”-list:
I can’t make any 360° rotations in open world games anymore. It kinda clips on abour 300° which makes the games unplayable. Yes I tried windowed full screen vs full screen vs windowed mode… :sleepy: :sleepy: :sleepy:

What’s up with this odd snapper-tools-SvrwFH mount point?

2 Likes

I have no idea. I never changed anything and used the snapper with it default settings. Whatever it might have added or not, I wasn’t doing it…

I only have those:

But I#ve found this strange thing here as well:


Huh? A ghost in my machine?

What happens if you unmount it?

Ahm, I never tried it…
I gonna do:

My Result:

NAME        FSTYPE FSVER LABEL    UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
zram0                                                                                 [SWAP]
nvme0n1
├─nvme0n1p1 vfat   FAT32 NO_LABEL 047B-7CEE                             298,8M     0% /boot/efi
└─nvme0n1p2 btrfs                 de43fccd-7f1e-439e-9eca-59d05e719941                /var/tmp

Nothing else happened. No crash, no warning, no mentioning.

I take it your @home subvolume has not been magically restored by unmounting whatever that Snapper thing was. :melting_face:

As a hail mary, we could try mounting the filesystem root (outside the subvolumes) and search from there. Something like this:

sudo mkdir /mnt/top-level_subvolume
sudo mount -o subvolid=5 /dev/nvme0n1p2 /mnt/top-level_subvolume

Then use that mount point as a search target, to try to locate one of the missing directories.

sudo find /mnt/top-level_subvolume/ -name "Documents"
2 Likes

Thank you @BluishHumility !!!

just did it, and the result is:

drwxr-xr-x - root   11 Mär 14:22  .snapshots
lrwxrwxrwx - root   19 Jän 18:10  bin -> usr/bin
drwxr-xr-x - root   11 Mär 14:19  boot
drwxr-xr-x - root   20 Jul  2023  DATATEMP
drwxr-xr-x - root    5 Apr  2022  dev
drwxr-xr-x - root   11 Mär 14:22  etc
drwxr-xr-x - root    5 Apr  2022 󱂵 home
lrwxrwxrwx - root   19 Jän 18:10  lib -> usr/lib
lrwxrwxrwx - root   19 Jän 18:10  lib64 -> usr/lib
drwxr-xr-x - root   10 Apr  2022  media
drwxr-xr-x - root   11 Mär 14:24  mnt
drwxr-xr-x - root    9 Feb 18:21  opt
drwxr-xr-x - martin 10 Mär 15:43  Personal_Data
drwxr-xr-x - root    5 Apr  2022  proc
drwxr-xr-x - root    7 Dez  2022  root
drwxr-xr-x - root    5 Apr  2022  run
lrwxrwxrwx - root   19 Jän 18:10  sbin -> usr/bin
drwxr-xr-x - root    5 Apr  2022  srv
drwxr-xr-x - root    5 Apr  2022  sys
drwxrwxrwt - root    5 Apr  2022  tmp
drwxr-xr-x - root   11 Mär 14:22  usr
drwxr-xr-x - root   11 Mär 13:35  var
.rw-r--r-- 7 root    8 Mär  2022  .garuda-tools

Which is basically my root. Also checked ‘@home

╭─martin@Clockwork in /mnt/top-level_subvolume/@/home🔒 as 🧙 took 2ms
╰─λ pwd
/mnt/top-level_subvolume/@/home

╭─martin@Clockwork in /mnt/top-level_subvolume/@/home🔒 as 🧙
╰─λ ls

╭─martin@Clockwork in /mnt/top-level_subvolume/@/home🔒 as 🧙 took 2ms
╰─λ

empty…using find:

╭─martin@Clockwork in /mnt/top-level_subvolume/@/home🔒 as 🧙 took 2ms
╰─λ find -name "Documents"

╭─martin@Clockwork in /mnt/top-level_subvolume/@/home🔒 as 🧙 took 2ms
╰─λ

*sniffs …

I roamed the internet today about my issue but couldn’t find sh*t. There was somehow a thread, although closed without solution, about an issue but the dude was symlinking his /home from another device and had issues after an update. It might had have something to do with “user profiling”. But I considered it as too far fetched for my case. Since I can’t see my stuff even via LIVE environment or chroot.

This may be kind of confusing, but yes: this directory will be empty because you are looking in the @ subvolume. /home is mounted on a completely separate subvolume called @home.

ls /mnt/top-level_subvolume/@home

That subvolume shouldn’t be empty.

Anyway, my idea was to point the search at the whole top-level subvolume like this:

sudo find /mnt/top-level_subvolume/ -name "Documents"

In theory that would find it no matter where it is, as long as it has not been renamed. I guess I was thinking maybe the directories had been moved somehow?

The curious thing about your case is the directories you are missing are the ones managed by the xdg-user-dirs package. Obviously your dotfiles are still there, but even your ~/Screenshots directory–which is not provided by this package–remains. I am not sure if that is a useful clue or not. You do have this package installed, right?

3 Likes