Hello Im new here ive been using cachyos for months now (kde plasma, brtfs, limine) i wanted to free up space so i used filelight and found that run/brtfs-assistant/(some random uuid here) is taking 2/3 of my disk space. I just thought its the snapshots made by brtfs so i deleted the folder, and that somehow deleted everything. like literally everything, So now im just trying to recover a few projects and im asking if theres a specific program that can recover from a specific directory like my desktop folder
#Accidentally deleted everything
34 messages · Page 1 of 1 (latest)
so /run is actually memory backed
meaning that files inside is not on your disk but rather in-memory
its used by apps to store runtime data
in this case btrfs-assistant is a gui tool for managing btrfs partitions, which im assuming that when you deleted the folder it managed to corrupt the filesystem
uhh
thats all i can give you i dont rly have experience working with btrfs
but generally dont go delete random system files
how would a 240Gb directory be in memory?
maybe it held a link to my root directory and thats why everything got wiped with it
i have no idea but
if you do mount | grep "/run "
that should show smt like "tmpfs on /run ..."
which means /run has a memory backed filesystem mounted
I wont right now cause i found theres still fragments of restore points on the brtfs so now im just iterating through all of it
file checking tools shouldnt follow symblink though
this result is pretty weird
they will follow hardlink but theres no cross filesystem hardlink
Rather not touch it untill it finishes incase i break it somehow
yeah fair
uhh
you can try btrfs's equivalent of fsck
to check fs integrity first
I did install cachyos in the goofiest way possible, i didnt have any pen drives laying aroud so i just created a partition and moved the installer there then booted and did the install, so maybe that somehow messed up the install?
not likely
again we dont rly know what exacly happened to the filesystem
just go run fsck and see the results i guess
make sure to put it on a mode where it wouldnt make actual changes to fs, only scan
[liveuser@CachyOS media]$ sudo btrfs check /dev/nvme0n1p6
Opening filesystem to check...
Checking filesystem on /dev/nvme0n1p6
UUID: 09a923cc-0183-4fca-9d70-62a9142f16a8
[1/8] checking log skipped (none written)
[2/8] checking root items
[3/8] checking extents
[4/8] checking free space tree
[5/8] checking fs roots
[6/8] checking only csums items (without verifying data)
[7/8] checking root refs
[8/8] checking quota groups skipped (not enabled on this FS)
found 35041005568 bytes used, no error found
total csum bytes: 17262708
total tree bytes: 184123392
total fs tree bytes: 131710976
total extent tree bytes: 22953984
btree space waste bytes: 39845994
file data blocks allocated: 35687526400
referenced 45446561792
[liveuser@CachyOS media]$ ```
do you mean this?
i can mount the partition and it does look intact but other than the basic directories everything is missing
but home is empty where all my stuff would be
your home might be on a separete subvol
make sure you did mount everything