I was using an 1TB hdd with uefi boot window10(updated from 7) and ubuntu 16.04 on it.It worked fine.I first installed windows,and then parted 120gb free space for ubuntu,then I installed ubuntu just by setting installing alongside other operating systems in the installation menu and that's done. I'm not sure if the grub was installed in the windows efi partition or somewhere else, because ubuntu just have two partition, / and the swap.
After that, I got a ssd. I followed the instruction on this page, http://blog.oaktreepeak.com/2012/03/move_your_linux_installation_t.html
and this page:
Copying system from hdd to ssd was ok. I think the problem is with GRUB. I tried both terminal the boot-repair, but in vain. What confuses me is: I find these lines in grub customer grub customer
My ssd is sda. As shown in the picture,it seems ok. But when I boot,I can not find anything about sda. All is about sdb(my hdd).
In details,I created /boot and / ext4 partition andcopied the files from my origin ubuntu accordingly. Then I created a 2mb bios-grub partition just because I failed with grub-install /dev/sda.(I followed a post
,telling me to create this to avoid "this GPT partition label contains no BIOS Boot Partition; embedding won’t be possible" error.
I did this, and succeeded. But still boot from hdd,instead of ssd. So I tried the boot-repair,both recommended repair and advanced(when using advanced,I set ubuntu on ssd as default boot and set to fix grub on sdbX(my windows efi partition)),after that, I still faced the same problem.The strange thing is,I cannot mnt my ssd on ubuntu hdd(still can boot).
Thanks in advance for any reply from you.:)