Both Surface Pro 6 and Surface Pro 9 have 520 TB SSD hard drives.
Goal: Use Clonezilla to copy/image 3 Ubuntu partitions of the old Surface Pro 6 (/dev/nvme0n1p4, /dev/nvme0n1p5, /dev/nvme0n1p7) to the new Surface Pro 9 system.
The Surface Pro 9 Windows system was set up with the Windows 11 that came with the new computer. I only wanted to clone the Ubuntu 22.04 to avoid setting up the development environment again.
1. On old Surface Pro 6:
Clonezilla:
- Press Power + Volume Down button to start from the USB. Choose large VGA + to RAM option.
- Selected /dev/nvme0n1p4, /dev/nvme0n1p5, /dev/nvme0n1p7 to clone and saved to a 2TB HDD.
- Windows 11: EaseUS Partition Master Free tool to shrink the SSD to allocate 200500 MB free space for Ubuntu.
- Power+VolumeDown boot from the Boot Repair Disk. Use GParted tool to create 3 partitions: /dev/nvme0n1p5 (ex4, 1024 MB), /dev/nvme0n1p6 (ex4), /dev/nvme0n1p7 (linux-swap, 20480 MB).
- Edit the saved backup/image on the 2TB HDD. Change all files names: *p4* -> *p5*, *p5* -> *p6* and the parts file content to: nvme0n1p5, nvme0n1p6, nvme0n1p7
Clonezilla:
- Start from USB
- Follow the instructions of Clonezilla to restore 3 partitions.
Boot Repair Disk:
- Boot from the USB
- Follow the instructions to repair the boot
- Windows 11: Start PowerShell in Admin mode and run: bcdedit /set "{bootmgr}" path \EFI\ubuntu\grubx64.efi
- Reboot and the Grub selection menu should show. Choose Ubuntu as the option to start the system.
- The Ubuntu system won't start. Reboot and enter the recovery mode. In the recovery mode:
- sudo apt remove lightdm
- nmtui to connect to the WIF
- sudo apt install gdm3
- sudo reboot
- The dualboot should be set up successfully now.
No comments:
Post a Comment