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

Correct!
Every file except hidden files are vanished. The screenshot folder was created by me after the vanishing for posting screens on this forum. So, it isn’t an exception, it just was made afterwards.

Now I wanted to check packages and got this one:

╭─martin@Clockwork in ~
╰─λ apper
apper: error while loading shared libraries: libAppStreamQt.so.2: cannot open shared object file: No such fileor directory

Am I wrong, or does Apper show my installed packages? Sure I can make it with octopi as well…

Eeehm, pacman couldn’t find the xdg-user-dirs package (not even with with -Ss)

╭─martin@Clockwork in ~ as 🧙 took 183ms
[🔴] × sudo pacman -S xgd-user-dirs
Fehler: Ziel nicht gefunden: xgd-user-dirs

Not in any repository or installed. It would have told me that in fish…

Confusing…

It should be “xdg” (you have the “d” and “g” reversed).

❯ pacman -Ss xdg-user-dirs
extra/xdg-user-dirs 0.18-1 [installed]
    Manage user directories like ~/Desktop and ~/Music

Ah, gotcha…not just the xdg-user-dirs directories then.

Have you walked back through your terminal history to see if you can spot any oopsies from around this time?

2 Likes

Aaaahhhh!!! SORRY!

The new output:

╭─martin@Clockwork in ~ as 🧙 took 189ms
[🔴] × sudo pacman -Ss xdg-user-dirs
[sudo] Passwort für martin:
extra/xdg-user-dirs 0.18-1 [Installiert]
Manage user directories like ~/Desktop and ~/Music
extra/xdg-user-dirs-gtk 0.11-2 (gnome)
Creates user dirs and asks to relocalize them

Yes it is installed version 0.18-1

This sounds like the effect of something like rm -rf *. I hope to be wrong.
The only time I had a somewhat similar problem, it was an mv * /some/where/else that I foolishly typed instead of mv -t /some/where/else *.

It could also be a bug in some script, maybe an unexpected space in a filename that was not quoted.

2 Likes

I didn’t mv-ed anything, nor did I rm-ed anything. I’m on Linux for over a decade :smiley:
Thanks for your thought!

EDIT: Logs are an issue b/c I used the snapper to restore the stuff. So, the actual logs are gone… I totally forgot to mention that!

1 Like

By default, /var/log is mounted on a separate subvolume, so is not affected by restoring the / subvolume. You should be able to read through the journal from, for example, one day ago like this:

journalctl --since "1 day ago"

Or a more specific time, like this:

journalctl --since "yesterday 08:00:00" --until "yesterday 17:00:00"

Add the -r or --reverse flag if you want to read through the journal entries oldest first (in chronological order).

Shell history is stored in the user’s home directory, and similarly should be preserved if you restore a snapshot. You can toss it into a file if you want with the history command:

history > my_history.txt
4 Likes

I think you can see the gap. I did the update on March 10th.
Hmm really I did some mv’s.
I guess I’m already blindfolded by trying to figuring out what happened the whole day…

I’ve got those for you - like “What I’ve done until now”
Update performed on March 10th.

EDIT: Those mv’s just were my “Getting a new more safe place for my personal stuff”-moves. After the mayhem. Then you see some big jumps through March up until March 1st. The stuff in between is gone…

2024-03-11 20:51:39 reboot
2024-03-11 20:49:34 sudo garuda-update
2024-03-11 19:47:10 exit
2024-03-11 15:49:37 sudo pacman -Ss xdg-user-dirs
2024-03-11 14:54:32 sudo pacman -Ss xgd-user-dir
2024-03-11 14:54:31 sudo pacman -Ss xgd-user-dirs
2024-03-11 14:52:31 sudo pacman -S xgd-user-dirs
2024-03-11 14:51:54 sudo pacman -S xgd-users-dirs
2024-03-11 14:51:34 sudo pacman -Ss xgd-users-dirs
2024-03-11 14:49:20 apper
2024-03-11 14:31:30 sudo umount /dev/nvme0n1p2
2024-03-11 14:31:29 cd /
2024-03-11 14:31:17 sudo umount -o /dev/nvme0n1p2
2024-03-11 14:26:45 find -name "Documents"
2024-03-11 14:25:53 ls
2024-03-11 14:25:49 pwd
2024-03-11 14:25:02 cd home/
2024-03-11 14:24:54 cd /mnt/top-level_subvolume/@/
2024-03-11 14:24:45 sudo mount -o subvolid=5 /dev/nvme0n1p2 /mnt/top-level_subvolume/
2024-03-11 14:24:12 sudo mkdir /mnt/top-level_subvolume
2024-03-11 03:23:40 shutdown -hP now
2024-03-11 03:11:27 lsblk -f
2024-03-11 03:11:15 man umount
2024-03-11 03:11:08 sudo unount /dev/nvme0n1p2
2024-03-11 03:11:00 sudo unmount /dev/nvme0n1p2
2024-03-11 02:43:21 less /etc/fstab
2024-03-11 02:42:36 lsblk -f /etc/fstab
2024-03-11 01:30:32 sudo pacman -Ss recoverit
2024-03-11 01:29:11 sudo pacman -Ss photorec
2024-03-11 01:27:54 man testdisk
2024-03-10 17:11:59 df -lh
2024-03-10 17:11:57 df -lhz
2024-03-10 17:06:20 sudo ksystemlog
2024-03-10 16:59:14 less /var/log/pacman.log
2024-03-10 16:59:07 cat /var/log/pacman.log
2024-03-10 16:58:30 sudo pacman -S photorec
2024-03-10 16:58:11 df -lh /home/martin/.local/
2024-03-10 16:57:21 df -lh /home/martin/
2024-03-10 16:56:37 ncdu /home/martin/
2024-03-10 16:56:34 sudo pacman -S ncdu
2024-03-10 16:55:06 sudp pacman -S ncdu
2024-03-10 16:40:46 bashtop
2024-03-10 16:29:57 sudo testdisk
2024-03-10 16:23:14 journalctl --since 2024-03-09
2024-03-10 16:22:46 journalctl --since 2024-03-10
2024-03-10 16:22:34 journalctl --since 2024-03-10 03:03:00
2024-03-10 16:22:25 journalctl --since 2024-03-10 03:03
2024-03-10 16:21:13 journalctl --since 2024-03-10:03:03
2024-03-10 16:21:09 journalctl --since 2024-03-10:0303
2024-03-10 16:18:57 journalctl -t
2024-03-10 16:18:46 journalctl
2024-03-10 16:17:50 sudo testdisk /dev/nvme0
2024-03-10 16:16:10 ls -lh /home/martin/
2024-03-10 16:15:24 df -lh /home
2024-03-10 16:12:42 filelight
2024-03-10 16:12:17 sudo cat /etc/passwd | grep martin
2024-03-10 16:12:11 sudo cat /etc/passwd
2024-03-10 16:12:08 cat /etc/passwd
2024-03-10 16:11:57 cat /etc/passwd | grep martin
2024-03-10 16:11:51 cat /etc/passwd|grep martin
2024-03-10 16:11:43 cat /etc/passwd|grep yourusername
2024-03-10 16:11:21 sudo pacman -S testdisk
2024-03-10 16:09:06 sudo pacman -S filelight
2024-03-10 16:05:00 tree
2024-03-10 15:44:13 cd /home/martin/
2024-03-10 15:43:07 cd Bilder/
2024-03-10 15:43:02 mv *.jpg Bilder/
2024-03-10 15:42:50 ls -lh
2024-03-10 15:42:47 mkdir Sonstiges
2024-03-10 15:42:38 mkdir TEMP
2024-03-10 15:42:35 mkdir Videos
2024-03-10 15:42:31 mkdir Downloads
2024-03-10 15:42:28 mkdir Dokumente
2024-03-10 15:42:24 mkdir Bilder
2024-03-10 15:42:20 cd Personal_Data/
2024-03-10 15:41:53 sudo chown -R martin Personal_Data/
2024-03-10 15:41:48 chown -R martin Personal_Data/
2024-03-10 15:41:29 sudo mkdir Personal_Data
2024-03-10 15:35:32 sudo garuda-update+
2024-03-10 15:34:50 sudo smartctl -a /dev/nvme0
2024-03-10 15:34:44 sudo smartctl -X /dev/nvme0
2024-03-10 15:34:40 smartctl -X /dev/nvme0
2024-03-10 15:34:26 smartctl -X
2024-03-10 15:34:08 smartcl -X
2024-03-10 15:18:24 sudo smartctl -t long /dev/nvme0
2024-03-10 15:14:43 sudo smartmontools
2024-03-10 15:14:30 sudo pacman -S smartmontools
2024-03-10 15:14:27 pacman -S smartmontools
2024-03-10 15:12:51 sudo fsck
2024-03-10 15:12:45 fsck
2024-03-10 15:08:53 man smartctl
2024-03-10 15:08:41 smartctl
2024-03-10 15:05:26 sudo reboot
2024-03-10 14:58:30 fstab
2024-03-10 03:47:02 sudo su
2024-03-10 03:41:05 garuda-inxi
2024-03-10 03:23:19 cd ..
2024-03-10 03:23:15 cd usr/
2024-03-10 03:16:27 sudo pacman -Sy balena-etcher
2024-03-10 03:16:24 pacman -Sy balena-etcher
2024-03-10 03:16:07 sudo pacman -Rdd balena-etcher
2024-03-10 03:01:30 sudo rm -rf /usr/lib/python3.11/site-packages/lutris/ *
2024-03-10 03:01:21 rm -rf /usr/lib/python3.11/site-packages/lutris/ *
2024-03-10 02:57:41 sudo pacman -Sy archlinux-keyring chaotic-keyring
2024-03-10 02:56:12 sudo pacman-key --init
2024-03-10 02:56:06 pacman-key --init
2024-03-10 00:32:28 sudo bashtop
2024-03-09 19:12:56 monitor-sensor
2024-03-08 03:11:54 clear && neofetch
2024-03-01 18:26:36 sudo ping -f 10.0.0.138

I hope you were not in your home when you did this… there’s a space before the *

1 Like

Nope, I did a cd before … although the f…ing space could have messed up the system anyhow ?! (Gee one typo…)

2024-03-10 03:23:15 cd usr/
2024-03-10 03:16:27 sudo pacman -Sy balena-etcher
2024-03-10 03:16:24 pacman -Sy balena-etcher
2024-03-10 03:16:07 sudo pacman -Rdd balena-etcher
2024-03-10 03:01:30 sudo rm -rf /usr/lib/python3.11/site-packages/lutris/ *
2024-03-10 03:01:21 rm -rf /usr/lib/python3.11/site-packages/lutris/ *
...

It kinda doesn’t explains me how my personal data from /home/user can be vanished tho…

This kind of reminds me of this thread…

7 Likes

Are you sure the OP didn’t write that Reddit post? :rofl: :rofl: :rofl:

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