Answer the question
In order to leave comments, you need to log in
How to put grub on a new laptop?
There was a laptop with 2 ssds, win10 + ubuntu. Ubuntu was put after Windows and all this was successfully loaded through grub. A new laptop appeared with another win10 ssd and you need to plug in a second ssd with the same Ubuntu, but now grub has disappeared and there is only one boot option - windows. What are the options to make grub the same as on the previous system without reinstalling the axis?
Answer the question
In order to leave comments, you need to log in
Thanks to all those who tried to help! As a result, the solution was as follows:
I made a flash drive with uefi shell + rEFInd, my ssd was found there, booted under Linux and restored grub. Now everything works.
Boot from the second inserted SSD.
Well, in Bubuntochka, do grub-mkconfig (I'm not responsible for the pronouncement).
It will pull systems from other disks.
duckduckgo.com/?q=%D0%BA%D0%B0%D0%BA+%D0%BF%D0%BE%D1%87%D0%B8%D0%BD%D0%B8%D1%82%D1% 8C+grub+&t=chromentp&atb=v279-1&ia=web
Boot from livecd/liveusb of any Linux (same bitness as installed), mount system / and /boot (and /boot/efi if using uefi) somewhere in /mnt in the correct order, and do grub-install --root- directory=/mnt /dev/sda where sda is the disk to put the bootloader on.
To boot from another disk, you need to select it in the BIOS, or immediately after turning on the machine, press F8 (F11, F12 ... read the inscription that the BIOS writes when you turn it on) and select the disk.
UEFI will not work this way, since it requires that information about bootloaders be updated in the BIOS, with the exception of removable devices such as flash drives and cdrom, this information will be corrected by grub automatically
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question