Fix boot record after moving linux mint partitions to another disk

1. Copying partition is straightforward. Made using gparted.

2. Create bootable USB stick (Startup disk creator in Linux mint), boot from it.
Assume we have following partitions:
  • boot /sdb1 (don't really know how it works)
  • root /sdb2
  • home /sdb3
3. Do
sudo mount /dev/sda2 /mnt
 
## if you have boot partition:
# sudo mount /dev/sda1 /mnt/boot

sudo grub-install --root-directory=/mnt /dev/sda




Source of GRUB instructions

Mount yandex webdav on local dir

apt-get install davfs2 
mkdir /mnt/yandex.disk 
mount -t davfs https://webdav.yandex.ru /mnt/yandex.disk/
 
# check: 
df -h /mnt/yandex.disk/