Re: Cloning a disk: partclone?

2023-01-20 Thread Tixy
On Fri, 2023-01-20 at 14:56 +0200, Anssi Saari wrote: > Tixy writes: > > > Surely it's also straightforward to just copy the data in the partition > > then resize the filesystem... > > > >  cp /dev/sdX1 /dev/sdY1 > >  resize2fs /dev/sdY1 > > Sure. Partclone, since the OP asked about that, can

Re: Cloning a disk: partclone?

2023-01-20 Thread Anssi Saari
Tixy writes: > Surely it's also straightforward to just copy the data in the partition > then resize the filesystem... > > cp /dev/sdX1 /dev/sdY1 > resize2fs /dev/sdY1 Sure. Partclone, since the OP asked about that, can speed this up for a partition since it's smart enough to not copy parts

Re: Cloning a disk: partclone?

2023-01-20 Thread hede
Am 19.01.2023 20:14, schrieb Charles Curley: On Thu, 19 Jan 2023 12:49:57 -0600 Tom Browder wrote: + Can it do a complete clone on an active disk? Or do I need a live CD or USB stick? I wouldn't try backing up a live partition due to issues with referential integrity. Suppose two

Re: Cloning a disk: partclone?

2023-01-19 Thread Tixy
On Thu, 2023-01-19 at 19:56 +, Tixy wrote: > > Surely it's also straightforward to just copy the data in the partition > then resize the filesystem... > >  cp /dev/sdX1 /dev/sdY1 >  resize2fs /dev/sdY1 > > Assuming you've already partitioned the target disk /dev/sdY to how you > want it.

Re: Cloning a disk: partclone?

2023-01-19 Thread Tixy
On Thu, 2023-01-19 at 20:34 +0100, DdB wrote: > Am 19.01.2023 um 19:49 schrieb Tom Browder: > > On my main PC, I would like to clone my boot drive onto another disk for > > 2 reasons: > > > > 1. Use a larger disk for the main drive > > 2. Create an emergency recovery disk > > > > A new Debian

Re: Cloning a disk: partclone?

2023-01-19 Thread Alexander V. Makartsev
On 19.01.2023 23:49, Tom Browder wrote: On my main PC, I would like to clone my boot drive onto another disk for 2 reasons: 1. Use a larger disk for the main drive 2. Create an emergency recovery disk A new Debian package to me is "partclone". Questions: + Can that be used for both purposes?

Re: Cloning a disk: partclone?

2023-01-19 Thread DdB
Am 19.01.2023 um 19:49 schrieb Tom Browder: > On my main PC, I would like to clone my boot drive onto another disk for > 2 reasons: > > 1. Use a larger disk for the main drive > 2. Create an emergency recovery disk > > A new Debian package to me is "partclone". Questions: > > + Can that be used

Re: Cloning a disk: partclone?

2023-01-19 Thread Charles Curley
On Thu, 19 Jan 2023 12:49:57 -0600 Tom Browder wrote: > + Can it do a complete clone on an active disk? Or do I need a live > CD or USB stick? I wouldn't try backing up a live partition due to issues with referential integrity. Suppose two interdependent files, A and B, change during the

Re: Cloning a disk: partclone?

2023-01-19 Thread Jeffrey Walton
On Thu, Jan 19, 2023 at 1:50 PM Tom Browder wrote: > > On my main PC, I would like to clone my boot drive onto another disk for 2 > reasons: > > 1. Use a larger disk for the main drive > 2. Create an emergency recovery disk > > A new Debian package to me is "partclone". Questions: > > + Can that