Transferring Ubuntu to another Drive?
Transferring Ubuntu to another Drive?
I enhanced my setup by assembling a fresh PC and transferring components from the previous machine. ...but the new configuration includes M.2 slots and a Samsung 980 Pro 1TB. The total storage now consists of: 1. 1TB Samsung M.2 Drive 2. 960GB SSD running Ubuntu 21.10 3. 120GB SSD with Windows 10 (including a 240GB version in NTFS format). When powering on, I expected Ubuntu to launch smoothly, but upon switching, the system froze. After checking the boot sequence, I noticed Windows was already attempting to fix itself. A reboot into the BIOS helped me adjust the boot order to prioritize the 960GB SSD with GRUB. However, that drive still wouldn’t start. I rebuilt GRUB using a live USB and eventually installed Ubuntu 20.04 on the Samsung drive. Now, upon launching, I can select between: - Booting Ubuntu 20.04 from the Samsung drive (a clean installation) - Booting Ubuntu 21.10 from the 960GB SSD - Booting Windows 10 from the 120GB SSD. My aim is to keep Ubuntu 21.10 on the Samsung drive and Windows 10 as a backup option. What would be the optimal next step?
To transfer Linux, you connect via USB stick, move all files keeping permissions and hidden items intact, and then run update-grub. See the guide here: https://askubuntu.com/questions/145241/h...m-a-livecd
I encountered issues copying files during login from a live USB, so I set up a Clonezilla setup. I didn’t expect it to preserve UUIDs on the new drive. When I restarted without removing the old drive, my fstab behavior became unpredictable. I had Ubuntu running with /boot and swap from the M.2 drive, while the / partition stayed on the SSD. Disconnecting the SSD resolved the problem. Now I just need to clean up, verify functionality, and reconnect the SSD. Then I can boot from a live Ubuntu, repartition it, and assign new UUIDs for storage. It’s straightforward once you understand the steps.