I have Ubuntu installed on a usb drive for a while now. I could not installed it along side Windows because my SSD was in RAID mode and not AHCI, so Ubuntu was not able to detect it. But recently I got a new laptop and switch to AHCI mode with no risk of loosing data because the PC was brand new.
Now Ubuntu can detect my internal SSD, and I want to clone it from my USB drive to a partition of my SSD, along side Windows 10. I chose to do it with the command dd (I've already used it with success for cloning Ubuntu from a usb key to another), but this time it does not work quite well.
I ran a live session of Ubuntu 18.04, plugged the usb key with my Ubuntu on it, and launched gparted in order to create a partition for the cloning operation. I unmount /dev/sdb (my Ubuntu usb key), as well as /dev/nvme01 (the SSD), and launched the command :
sudo dd status=progress if=/dev/sdb of=/dev/nvme01p4
The process worked quite well but in gparted the partition nvme01p4 (supposed to contain the clone of my Ubuntu) is not correctly detected (see the screenshot) gparted screenshot after the dd command. It appears there is a new Ubuntu option in the boot menu, but it leads to a grub console where I don't know what to do.
So I am asking you what I possibly did wrong ?
Thanks,
Anderson
sudo update-grub
This adds the Ubuntu on the SSD to the USB's boot menu. If the internal Ubuntu boots okay from the USB, you can install grub to the SSD overwriting Windows boot loader. This worked for me. – C.S.Cameron Feb 28 '21 at 12:51