
On 06/02/2021 20.43, oszko@chem.u-szeged.hu wrote:
Dear all,
Possibly this topic was discussed several times, and there are a number of "tutorials" found on the web. Maybe too much.
So: I would like to move my root partition to a brand new SSD, and keep /home on the old disk. I copied the existing one with dd and gave it a new UUID. How can I proceed? This is an UEFI machine. Since /boot/efi is tiny, I think it can remain where it is now. Should I create a swap on the SSD? And possibly the most important: how can I tell the laptop to use the root on the SSD.?
I tried to unmount the existing /, but since it is in use, I cannot umount it.
There are two methods. One is to clone the rotating rust disk totally to the SSD. You need the sector size to be the same. I did this for the laptops. Then I expand the last partition, or create more partitions. One laptop was classic BIOS, the other was UEFI. They both just booted, I think. On the desktop machine I did not clone the disk. It is not trivial. I have done it, but I don't know exactly how I did it. First, I installed a small system on the SSD, and booted it. Using that, I created target partitions where I copied the system partitions over from the rotating rust media, using rsync. Once done, I chrooted the new system (don't forget to bind mount /sys, /proc, /dev) and run yast in text mode to install a boot loader (uefi). I needed several iterations to get it to boot, but I finally got it to boot, and it is the system I'm using right now. Ah, to complicate things, source and destination were on different computers, old and new. -- Cheers / Saludos, Carlos E. R. (from 15.2 x86_64 at Telcontar)