Przenoszenie systemu na inny dysk

mkdir /mnt/c
mount /dev/sda3 /mnt/c
for i in /sys /proc /run /dev; do sudo mount --bind "$i" "/mnt/c$i"; done
#edit /mnt/c/etc/fstab
chroot /mnt/c
update-initramfs -u
update-grub
grub-install /dev/sda
#ctrl+d
for i in /sys /proc /run /dev; do umount "/mnt/c$i"; done
umount /mnt/c