I am trying to migrate my old disk to a new one without re-installing everything (read re-downloading the entire Internet / copying stuff as much as possible from the old one). Considering that the old disk
contains my boot partition, home partition, swap device and the nix store,
is formatted in ext4 (and the new one is in btrfs),
is of different capacity from the new one.
What would be the most efficient / successful procedure to transfer all of the above partitions to the new drive using my current configuration ?
I tried copying my boot partition, home partition and created a new swap partition on the new drive. Changed my hardware configuration to match the new changes but to no avail : I am getting an error regarding udev in stage 1 preventing me from reaching stage 2.
No, I am sorry : right now I am in update hell. I am trying to bump my nixpkgs to this commit 58fdb93 for other reasons.
But of course it does not build, so I am just waiting before transferring to the new disk (to be able to tell which part of the process is breaking what). I will come back to the transfer issue (soon I hope) and post my findings (problems ?) here.