[solved] mounting system partition to /mnt has /mnt/@/etc

While updating my system the graphical session crashed and after reboot the kernel was missing (reminder that you should update on tty). Trying to fix that from a live-system, mounting system nvme partition to mnt, there's now /mnt/@ @cache @log, while your usual root folders are in @, log fikes @log and so on. Filesystem is btrfs, no subvolumes, if that matters.

So why is this? And can i just mount boot to /mnt/@/boot? Do break something, if i move /mnt/@ content to /mnt?

15 points · 2 comments · view on lemmy.world

2 Comments

smileyhead@discuss.tchncs.de · 7 pts · 2y (1 reply)

It seems like they are subvolumes. How did you install the system?

When mounting a btrfs without any options root/main directory is containg subvolumes. Meaning that when creating a directory it is being created as subvolume, then in that subvolume there are regular files.

What does the btrfs subvolume list / say?

Also as side note, there is nothing wrong with updating on GUI.

MonkderDritte@feddit.de · 1 pts · 2y

Right, got it, create-fstab automatically creates subvolumes for /var/cache and /var/log on btrfs.