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

Re: Copying one drive to a smaller one.



Hi,

Am 09.05.2022 um 20:54 schrieb David Christensen:
> Resizing and moving a Debian instance from a 500 GB drive to a 250 GB
> drive requires a lot of expertise.

I fully agree. And i am missing some information from the OP:

Was the 500 GB drive UEFI already?
Will both drives live on the same computer ever?

If the answers would be yes to 1 and no to second, that would allow
reusing the UUID's, which can be manipulated (on the new disk) with
sgdisk. But of course, since that involves some kind of "hacking", i
recommend to create some understanding along the disk format necessities
for UEFI booting first, like from https://www.rodsbooks.com/ pages.

My goal would be to manipulate the target to come very close to the
source, except for the partitioning/fs layout, in order to prepare for a
successful rsync for ALL (except swap, but including ESP) partitions.
mkswap has a -U switch too. :-)


Reply to: