Copy Linux partition
Linuxのパーティションをコピーした。
同じサイズのパーティションを作成。
dd if=/dev/sda1 of=/dev/sda4 status=progress
これでコピーされたが、UUIDも同じなので変更。
tune2fs /dev/sda4 -U random
mount /dev/sda4 /mnt
vi /mnt/etc/fstab
arch-chroot /mnt
grub-install /dev/sda
grub-mkconfig -o /boot/grub/grub.cfg
exit
reboot
Windowsとのマルチブートのために、/etc/default/grubに下記を追加。
GRUB_DISABLE_OS_PROBER="false"