Re: Cloning a BTRFS filesystem

2024-07-29 Thread Barry
> On 27 Jul 2024, at 22:53, Cameron Simpson wrote: > > You could put a filesystem on a whole disc if you were happy to trash the > partition table (i.e. not have one at all). There are tools that depend on the GPT and the GUIDs describing partitions to automate file system discovery. With th

Re: Cloning a BTRFS filesystem

2024-07-29 Thread Jonathan Billings
On Jul 26, 2024, at 06:35, Patrick O'Callaghan wrote: > > On Wed, 2024-07-24 at 11:14 +0100, Patrick O'Callaghan wrote: >>> On Tue, 2024-07-23 at 20:44 -0700, Gregorio Gervasio Jr. wrote: >>> I just did this recently. I used "btrfs replace", which is part >>> of >>> btrfs-progs. See "man btrfs

Re: Cloning a BTRFS filesystem

2024-07-28 Thread Patrick O'Callaghan
On Sun, 2024-07-28 at 06:12 -0400, Jeffrey Walton wrote: > > > > I just ran 'dnf update' and am not seeing that. Perhaps it's in the > > test repo? > > It looks like it is in both stable and testing: > < > https://packages.fedoraproject.org/pkgs/btrfs-progs/btrfs-progs/index. > html>. It appeare

Re: Cloning a BTRFS filesystem

2024-07-28 Thread Jeffrey Walton
On Sun, Jul 28, 2024 at 4:59 AM Patrick O'Callaghan wrote: > > On Sun, 2024-07-28 at 03:09 -0400, Jeffrey Walton wrote: > > On Tue, Jul 23, 2024 at 7:25 AM Patrick O'Callaghan > > wrote: > > > > > > I have a new NVMe drive and want to clone my existing SSD which > > > currently holds /, /home and

Re: Cloning a BTRFS filesystem

2024-07-28 Thread Patrick O'Callaghan
On Sun, 2024-07-28 at 03:09 -0400, Jeffrey Walton wrote: > On Tue, Jul 23, 2024 at 7:25 AM Patrick O'Callaghan > wrote: > > > > I have a new NVMe drive and want to clone my existing SSD which > > currently holds /, /home and a swapfile, all as subvolumes. I know > > I > > can do this using btrfs-

Re: Cloning a BTRFS filesystem

2024-07-28 Thread Jeffrey Walton
On Tue, Jul 23, 2024 at 7:25 AM Patrick O'Callaghan wrote: > > I have a new NVMe drive and want to clone my existing SSD which > currently holds /, /home and a swapfile, all as subvolumes. I know I > can do this using btrfs-send/receive, but only one subvolume at a time > and with plenty of potent

Re: Cloning a BTRFS filesystem

2024-07-27 Thread Patrick O'Callaghan
On Sun, 2024-07-28 at 07:52 +1000, Cameron Simpson wrote: > On 27Jul2024 10:32, Patrick O'Callaghan > wrote: > > On Fri, 2024-07-26 at 19:07 -0700, Gregorio Gervasio Jr. wrote: > > > It's not?  I had the same thing and just ran "btrfs replace" on > > > each > > > BTRFS partition. > > > > > The ma

Re: Cloning a BTRFS filesystem

2024-07-27 Thread Cameron Simpson
On 27Jul2024 10:32, Patrick O'Callaghan wrote: On Fri, 2024-07-26 at 19:07 -0700, Gregorio Gervasio Jr. wrote: It's not?  I had the same thing and just ran "btrfs replace" on each BTRFS partition. The man page refers explicitly to "device" and the examples I've seen all use devices rather tha

Re: Cloning a BTRFS filesystem

2024-07-27 Thread Patrick O'Callaghan
On Fri, 2024-07-26 at 19:07 -0700, Gregorio Gervasio Jr. wrote: > > > > > > Patrick O'Callaghan writes: > > > My mistake. btrfs-replace is for replacing a whole disk as part > > of a > > BTRFS filesystem. In my case I have a vfat EFI partition, an > > ext4 /boot > > partition, and a BTRFS root+/

Re: Cloning a BTRFS filesystem

2024-07-26 Thread Gregorio Gervasio Jr.
Patrick O'Callaghan writes: My mistake. btrfs-replace is for replacing a whole disk as part of a BTRFS filesystem. In my case I have a vfat EFI partition, an ext4 /boot partition, and a BTRFS root+/home partition, so btrfs-replace isn't going to do it. It's not? I had the same thing and

Re: Cloning a BTRFS filesystem

2024-07-26 Thread Patrick O'Callaghan
On Fri, 2024-07-26 at 17:47 -0400, Jeffrey Walton wrote: > On Fri, Jul 26, 2024 at 5:38 PM Patrick O'Callaghan > wrote: > > > > On Fri, 2024-07-26 at 17:47 -0300, George N. White III wrote: > > > On Wed, Jul 24, 2024 at 7:14 AM Patrick O'Callaghan > > > > > > wrote: > > > > > > > I'm slightly w

Re: Cloning a BTRFS filesystem

2024-07-26 Thread Jeffrey Walton
On Fri, Jul 26, 2024 at 5:38 PM Patrick O'Callaghan wrote: > > On Fri, 2024-07-26 at 17:47 -0300, George N. White III wrote: > > On Wed, Jul 24, 2024 at 7:14 AM Patrick O'Callaghan > > > > wrote: > > > > > I'm slightly wary of clonezilla because multiple people seem to > > > have had problems wit

Re: Cloning a BTRFS filesystem

2024-07-26 Thread Patrick O'Callaghan
On Fri, 2024-07-26 at 17:47 -0300, George N. White III wrote: > On Wed, Jul 24, 2024 at 7:14 AM Patrick O'Callaghan > > wrote: > > > I'm slightly wary of clonezilla because multiple people seem to > > have had problems with it on BTRFS (may depend on the version). > > Also, > > btrfs-replace is b

Re: Cloning a BTRFS filesystem

2024-07-26 Thread George N. White III
On Wed, Jul 24, 2024 at 7:14 AM Patrick O'Callaghan wrote: > I'm slightly wary of clonezilla because multiple people seem to > have had problems with it on BTRFS (may depend on the version). Also, > btrfs-replace is built-in and looks like it will do the job. There was a bug in btrfs support in

Re: Cloning a BTRFS filesystem

2024-07-26 Thread Patrick O'Callaghan
On Wed, 2024-07-24 at 11:14 +0100, Patrick O'Callaghan wrote: > On Tue, 2024-07-23 at 20:44 -0700, Gregorio Gervasio Jr. wrote: > > > > I just did this recently.  I used "btrfs replace", which is part > > of > > btrfs-progs.  See "man btrfs-replace" for details. > > > > It initially refused for

Re: Cloning a BTRFS filesystem

2024-07-24 Thread Patrick O'Callaghan
On Tue, 2024-07-23 at 20:44 -0700, Gregorio Gervasio Jr. wrote: > > I just did this recently.  I used "btrfs replace", which is part > of > btrfs-progs.  See "man btrfs-replace" for details. > > It initially refused for one of my partitions (forgot the exact > error > message) but it worked aft

Re: Cloning a BTRFS filesystem

2024-07-23 Thread Gregorio Gervasio Jr.
I just did this recently. I used "btrfs replace", which is part of btrfs-progs. See "man btrfs-replace" for details. It initially refused for one of my partitions (forgot the exact error message) but it worked after I ran "btrfs balance". -- -- ___

Re: Cloning a BTRFS filesystem

2024-07-23 Thread Patrick O'Callaghan
On Tue, 2024-07-23 at 07:30 -0400, Jeffrey Walton wrote: > On Tue, Jul 23, 2024 at 7:25 AM Patrick O'Callaghan > wrote: > > > > I have a new NVMe drive and want to clone my existing SSD which > > currently holds /, /home and a swapfile, all as subvolumes. I know > > I > > can do this using btrfs-

Re: Cloning a BTRFS filesystem

2024-07-23 Thread Jeffrey Walton
On Tue, Jul 23, 2024 at 7:25 AM Patrick O'Callaghan wrote: > > I have a new NVMe drive and want to clone my existing SSD which > currently holds /, /home and a swapfile, all as subvolumes. I know I > can do this using btrfs-send/receive, but only one subvolume at a time > and with plenty of potent

Re: Cloning a BTRFS filesystem

2024-07-23 Thread Patrick O'Callaghan
On Tue, 2024-07-23 at 12:24 +0100, Patrick O'Callaghan wrote: > I have a new NVMe drive and want to clone my existing SSD which > currently holds /, /home and a swapfile, all as subvolumes. I know I > can do this using btrfs-send/receive, but only one subvolume at a > time > and with plenty of pote

Cloning a BTRFS filesystem

2024-07-23 Thread Patrick O'Callaghan
I have a new NVMe drive and want to clone my existing SSD which currently holds /, /home and a swapfile, all as subvolumes. I know I can do this using btrfs-send/receive, but only one subvolume at a time and with plenty of potential for fat-fingering it. Using dd is another option (the old and new