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

Re: Copying one drive to a smaller one.



> With a modern EFI system with UUIDs in the fstab it's actually not that
> hard. Boot off an rescue disk or somesuch. Create partitions on the new disk
> that mirror those of the old disk (except of course that the largest one
> should be smaller; do not make any of the others smaller). If you're lucky

A similar option is to use (g)parted on the source disk to shrink the
partitions enough to fit on the destination disk, move them to the
beginning of the disk and then `dd` the whole disk to the destination:
the `dd` will fail when it reaches the end of the destination disk but
if you've shrunk*resized properly it will have copied all the relevant
info.  You'll just need to run `parted` on the destination disk (to fix
the secondary GPT partition table which is a copy normally placed at
the end and which `dd` couldn't copy for you).


        Stefan


Reply to: