Wishing to replace the system drive with near identical sized new and fresh SSD, or even a larger one, leaves me with a puzzle. dd
is great and I can't use that bit-by-bit copy technique f.e. because my source drive died or is unreliable. I have a backup of all the data available.
The issue is how to backup and restore and/or migrate/clone the GPT partitioned drive structure using a script without its files and directories:
- partitioning
- file systems (and their properties)
- swap
A search here for "migrate new drive -lvm" returns 30 results, none of them give me a hint.
Is there some kind of handy scriptable parted --backup
and --restore
command to accomplish this task in a minimal Arch Linux installation, that is UEFI booted?
fdisk: cannot open /dev/disk/by-id/bus-model: No such file or directory
– Pro Backup Sep 08 '18 at 12:25