I am sorry but I am posting from another machine since I cannot boot my garuda anymore. I cant post my inxi.

So I have messed with the / by accident but I can see my home (it shows with an @before so @home) is intact. Also I can see at least the last 7 snapshots, So I guess it is possible to fix it.

I have checked the wiki for using the snapper tool but still I can’t get it to fix my boot for my case.

The wiki assumes you can still boot the disk. All I can do is mount that disk using the live flash usb.

Please would someone help me to fix it.

Thank you so much.


Edit: This is what I have done

Well, I am embarassed… so I was going to move files from the current directory in a another drive, and did mv /* /run/media/another/direcotry/

Then I tried to move everything back but it wouldn’t allow me because my user no longer existed.

Then I booted from live usb, no errors when I mount the btfrs volume, I used the root user to move everything back but it was throwing an error because there were sub-directories. Then I did cp -r to copy everything back and deleted everything, keeping only the recent copies to their rightful location. Still I cannot boot though.

  • cannot@lemmy.ml
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    Yes to rsync. It will update the destination files in place without deleting the source files (unless you provide that flag – don’t.)

    You might actually be screwed if you ended up overwriting the EFI variables in /sys/firmware/efi/efivars. See https://unix.stackexchange.com/questions/414799/efi-variable-entries-in-sys-firmware-efi-efivars.

    If you still have all your files backed up, it might be easiest to reinstall the base system and then selectively copy back over the directories you want with cp -a. Sorry to be the bearer of bad news, but if you can’t even attempt to boot, that’s not good.