this post was submitted on 27 Feb 2025
15 points (85.7% liked)

linux4noobs

1803 readers
4 users here now

linux4noobs


Noob Friendly, Expert Enabling

Whether you're a seasoned pro or the noobiest of noobs, you've found the right place for Linux support and information. With a dedication to supporting free and open source software, this community aims to ensure Linux fits your needs and works for you. From troubleshooting to tutorials, practical tips, news and more, all aspects of Linux are warmly welcomed. Join a community of like-minded enthusiasts and professionals driving Linux's ongoing evolution.


Seeking Support?

Community Rules

founded 2 years ago
MODERATORS
15
submitted 4 weeks ago* (last edited 4 weeks ago) by gpstarman to c/linux4noobs@programming.dev
 

Context: I updated my CachyOS (Arch) BTRFS system. Some new things caused few problems especially brave browser(missing tabs), some icons missing.

So I wanted to go back to previous snapshot.

What I did: I first restored my home subvol which I saved before update. I worked.

Then I tried to restored my root partition. This is where I got the problem.

I got this error.

1001090084

I would really appreciate URGENT help

If you need any more details I can provide.

EDIT

  1. I used BTRFS Assistant to restore the root partition. And I did it while the OS is running.

( I previously did that and got no issues )

  1. I pressed crtl+d and got ๐Ÿ‘‡๐Ÿฝ

  1. I typed my password and went into maintenance. Typed journalctl -xb and got 2667 lines ๐Ÿ˜ตโ€๐Ÿ’ซ. While scrolling mindlessly, this looked like something ๐Ÿ‘‡๐Ÿฝ

๐Ÿ‘‰๐Ÿฝ

๐Ÿ‘‰๐Ÿฝ

  1. This is my refind_linux.conf ๐Ÿ‘‡๐Ÿฝ
"Boot with standard options"    "quiet zswap.enabled=0 nowatchdog splash rw rootflags=subvol=/@ cryptdevice=UUID=60ecb22d-7685-43c2-ae2a-a2ad0c531cc7:luks-60ecb22d-7685-43c2-ae2a-a2ad0c531cc7 root=/dev/mapper/luks-60ecb22d-7685-43c2-ae2a-a2ad0c531cc7"

"Boot to single-user mode"    "quiet zswap.enabled=0 nowatchdog splash rw rootflags=subvol=/@ cryptdevice=UUID=60ecb22d-7685-43c2-ae2a-a2ad0c531cc7:luks-60ecb22d-7685-43c2-ae2a-a2ad0c531cc7 root=/dev/mapper/luks-60ecb22d-7685-43c2-ae2a-a2ad0c531cc7" single

"Boot with minimal options"   "ro root=/dev/mapper/luks-60ecb22d-7685-43c2-ae2a-a2ad0c531cc7"


  1. This my OS partition ๐Ÿ‘‡๐Ÿฝ

  1. This is my subvol layout ๐Ÿ‘‡๐Ÿฝ (CachyOS default)

top 3 comments
sorted by: hot top controversial new old
[โ€“] starshipwinepineapple@programming.dev 2 points 3 weeks ago* (last edited 3 weeks ago) (1 children)

It sounds like the error you're seeing is from attempting to restore the root subvol (@) while the booted into the system

To fix you'll want to:

  1. boot from live usb (arch or cacyos).
  2. mount btrfs partition and access your snapshots.
  3. Restore root subvol from live environment

If you are still having issues you may need to chroot into the root partition and do an update to ensure your system images match what your bootloader is expecting.

[โ€“] gpstarman 1 points 3 weeks ago (1 children)

First of all thanks.

  1. I booted live Mint.

  2. Mounted btrfs partition.

  3. I renamed the backup (snapshot that btrfs assistant created while originally restoring before) to @.

Now my system boots but .snapshots are in original @ (which now I renamed as something else). I want those snapshots or delete altogether (for freeing up space).

  1. I tried to rsync old snaps to new @. It worked, but now I have delete the snaps from old @ (source of snaps). Which I cannot do for some reason. It says read only file system. I typed sudo btrfs property set -ts /path/to/snapshot ro false it retuned error cannot retrieve properties

  2. Then I tried to delete .snapshots subvolume altogether, but it says directory not empty.

I used sudo btrfs subvolume delete /path/to/.snapshots

(.snapshots is a separate subvol mounted on old @ subvol)

Now I have a working system but all my old snaps are stuck on old root. Which I cannot delete.

Idk what to do.๐Ÿ˜ตโ€๐Ÿ’ซ

What's your partition layout?