Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #241743

Change root subvolume on btrfs

From piorunz <piorunz@gmx.com>
Newsgroups linux.debian.user
Subject Change root subvolume on btrfs
Date 2021-10-28 05:20 +0200
Message-ID <Dd47n-Kk-1@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Hello,

I have / partition on btrfs subvolume, default name @rootfs created by
Debian.

I'd like to use Timeshift for snapshots, but it only recognizes root on
@ subvolume, any other subvolume name is being ignored. Pretty stupid to
me, but I'd like to use it - I don't see other way to have snapshots.

Question:
How can I rename / subvolume on btrfs from @rootfs to @?
I tried:
rename folder name by hand from USB stick Linux Mint from @rootfs to @,
and then changing @rootfs to @ in /etc/fstab, but grub didn't booted, it
thrown me out to grub emergency console. I had to revert it back.

What else I need to do to make this change? Chroot to debian and do sudo
update-grub? If so, how? There is many conflicting tutorials how can I
chroot to do update-grub that I am lost. I will welcome any suggestions.

Some context:
$ sudo btrfs subvolume list /
ID 256 gen 176714 top level 5 path @rootfs
ID 265 gen 21191 top level 256 path var/lib/portables
ID 266 gen 21192 top level 256 path var/lib/machines

/etc/fstab lines:

UUID=77ba5989-5d64-4929-9145-ede6751a4102       /
         btrfs
noatime,nodiratime,space_cache=v2,ssd,compress-force=zstd:6,subvol=@rootfs
0 1
(...)
UUID=9A94-D623                                  /boot/efi
         vfat    umask=0077 0 1

I use UEFI with GPT, no CSM, it that matters for anything.


--
With kindest regards, Piotr.

⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀⠀⠀⠀

Back to linux.debian.user | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Change root subvolume on btrfs piorunz <piorunz@gmx.com> - 2021-10-28 05:20 +0200
  Re: Change root subvolume on btrfs Nito <nito@dismail.de> - 2021-10-29 19:30 +0200
    [SOLVED] Change root subvolume on btrfs piorunz <piorunz@gmx.com> - 2021-11-07 13:10 +0100

csiph-web