Re: How do I restore BTRFS snapshots ?

2020-12-01 Thread Chris Murphy
On Tue, Dec 1, 2020 at 2:06 AM Sreyan Chakravarty wrote: > > > > On Mon, Nov 30, 2020 at 10:12 PM Chris Murphy wrote: >> >> >> I don't understand why you're going to another forum to ask the same >> question, and posting different information. It's just making it more >> difficult to provide

Re: How do I restore BTRFS snapshots ?

2020-12-01 Thread Sreyan Chakravarty
On Mon, Nov 30, 2020 at 10:12 PM Chris Murphy wrote: > > I don't understand why you're going to another forum to ask the same > question, and posting different information. It's just making it more > difficult to provide answers. Here is what you posted there: > > Since I did not know about

Re: How do I restore BTRFS snapshots ?

2020-11-30 Thread Jorge Fábregas
On 11/30/20 1:17 PM, Chris Murphy wrote: > I see there are still some valid nuances and edge-cases! I do understand now why that's the default. If one's an advanced user then you're free to customize the installation as you see fit anyway... Thanks for the insights Chris. Much appreciated.

Re: How do I restore BTRFS snapshots ?

2020-11-30 Thread Chris Murphy
On Mon, Nov 30, 2020 at 6:42 AM Jorge Fábregas wrote: > > On 11/30/20 8:50 AM, Jorge Fábregas wrote: > > This was just a test on a scratch VM so no need to troublshoot it further. > > Gave it a 2nd thought prior to scratching the VM... > > It turns out I applied a bunch of updates (including the

Re: How do I restore BTRFS snapshots ?

2020-11-30 Thread Chris Murphy
On Mon, Nov 30, 2020 at 2:19 AM Sreyan Chakravarty wrote: > > > > On Mon, Nov 30, 2020 at 2:38 AM Chris Murphy wrote: >> >> >> It does. You can check with any or all of these commands: >> >> mount | grep btrfs >> sudo btrfs subvolume list -t / >> cat /etc/fstab >> > > It doesn't. I just

Re: How do I restore BTRFS snapshots ?

2020-11-30 Thread Chris Murphy
On Sun, Nov 29, 2020 at 10:37 PM Sreyan Chakravarty wrote: > > > > On Mon, Nov 30, 2020 at 2:38 AM Chris Murphy wrote: >> >> >> There's a lot more than one way to do this. As one possible example: >> >> $ sudo mount /dev/nvme0n1p7 /mnt >> $ cd /mnt >> $ ls -li >> total 0 >> 256 dr-xr-xr-x. 1

Re: How do I restore BTRFS snapshots ?

2020-11-30 Thread Jorge Fábregas
On 11/30/20 8:50 AM, Jorge Fábregas wrote: > This was just a test on a scratch VM so no need to troublshoot it further. Gave it a 2nd thought prior to scratching the VM... It turns out I applied a bunch of updates (including the kernel). As /boot is not part of the snapshot I took (since it's an

Re: How do I restore BTRFS snapshots ?

2020-11-30 Thread Jorge Fábregas
On 11/29/20 5:07 PM, Chris Murphy wrote: > You do not need to worry about renaming an active/in-use subvolume. > Internally Btrfs is using subvolume ID's anyway, and that won't > change. I didn't know this. I thought you had to boot off external media in order to revert back the root filesystem

Re: How do I restore BTRFS snapshots ?

2020-11-30 Thread Sreyan Chakravarty
On Mon, Nov 30, 2020 at 2:38 AM Chris Murphy wrote: > > It does. You can check with any or all of these commands: > > mount | grep btrfs > sudo btrfs subvolume list -t / > cat /etc/fstab > > It doesn't. I just confirmed. https://unix.stackexchange.com/q/622149/230582 -- Regards, Sreyan

Re: How do I restore BTRFS snapshots ?

2020-11-29 Thread Sreyan Chakravarty
On Mon, Nov 30, 2020 at 2:38 AM Chris Murphy wrote: > There's a lot more than one way to do this. As one possible example: > > $ sudo mount /dev/nvme0n1p7 /mnt > $ cd /mnt > $ ls -li > total 0 > 256 dr-xr-xr-x. 1 root root 1330 Nov 26 23:25 boot > 256 dr-xr-xr-x. 1 root root 1966 Nov 23 22:43

Re: How do I restore BTRFS snapshots ?

2020-11-29 Thread Sreyan Chakravarty
On Mon, Nov 30, 2020 at 2:38 AM Chris Murphy wrote: > > There's a lot more than one way to do this. As one possible example: > > $ sudo mount /dev/nvme0n1p7 /mnt > $ cd /mnt > $ ls -li > total 0 > 256 dr-xr-xr-x. 1 root root 1330 Nov 26 23:25 boot > 256 dr-xr-xr-x. 1 root root 1966 Nov 23 22:43

Re: How do I restore BTRFS snapshots ?

2020-11-29 Thread Chris Murphy
On Sun, Nov 29, 2020 at 9:52 AM Sreyan Chakravarty wrote: > > Hi, > > I have only 1 partition, which has my root and /home together. > > I have installed Fedora33 with the default BTRFS settings, in which it does > not create a subvolume for root. It does. You can check with any or all of these

Re: How do I restore BTRFS snapshots ?

2020-11-29 Thread Sreyan Chakravarty
On Sun, Nov 29, 2020 at 10:22 PM Sreyan Chakravarty wrote: > Hi, > > I have only 1 partition, which has my root and /home together. > > I have installed Fedora33 with the default BTRFS settings, in which it > does not create a subvolume for root. > > I have created a snapshot of my entire root

How do I restore BTRFS snapshots ?

2020-11-29 Thread Sreyan Chakravarty
Hi, I have only 1 partition, which has my root and /home together. I have installed Fedora33 with the default BTRFS settings, in which it does not create a subvolume for root. I have created a snapshot of my entire root filesystem using: sudo btrfs subv snapshot /