[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Cloning a disk: partclone?



On Thu, 2023-01-19 at 19:56 +0000, 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. (And assuming the filesystem is ext2..ext4)

Addendum: If you want to check the copy is successful (good idea) you
can

  cmp /dev/sdX1 /dev/sdY1

before resizing it.


Reply to: