I remove a snapshot by rm -rf ,then this error come up,and i cannot boot now,the grub is also cannot enter,i assume it is because i have remove root user ,but i donnot how to do,could you have any idea??
Can you boot into another recent snapshot (last item in the grub menue)?
Bequimão
I can not enter grub
I don’t use btrfs but you can not remove a snapshot with rm -rf
the way to remove snapshots is with snapper
snapper rm <snapshot number>
did you do
rn -rf /
in that case a reinstall is the only thing you can do
Warning for new users who might stumble into this thread: under no circumstances run the rm command unless you know what you are intending. As posed in post #4 it will wipe your entire installation. See “man rm”.
If he purged the default subvolume, he might rescue the system with another snapshot. The binaries of grub lay in a separate subvolume.
But I am not ready to test lol!
Beq.
I don’t have much experience with btrfs and how snapshots are stored but he needs a minimal working system with snapper to get to the snapshots and a minimal reinstall should do that, then he can chose an older snapshot to restore, but if he’s gonna reinstall why play with snapshots (unless they have important data)
Snapper will be installed in the read-only snapshot, but the file grub.cfg is needed. If he purged his default subvolume, he might have purged data in any other mounted partition, which are excluded from snapshotting. One can try to reset manually the default subvolume with a live system, that is: Create a new read-write snapshot from a read-only one and set this snapshot as default subvolume. Then unmount and remount, chroot into the new root partition and reinstall grub.
Best regards,
Bequimão