Need to replace the motherboard, but do not want to reload the computer. What do we do? In fact, there is no need to reload the computer, only need to reply to boot menu.
1. First make an Ubuntu live CD with U-disk (please Baidu yourself), then start with the U-disk, select Try Ubuntu, enter the Live CD system
2. Then need to determine whether your/boot is separate partition, generally there is no separate partition, if you do not know, you can go through the Live CD Gpartion program to see where your boot, as shown, my boot is not separate partition, in/DEV/SDB1
3a./boot does not have a separate partition case.
In this case, first through the Gpartition view partition content, determine the primary partition, that is/, in which partition, for example, I was in/dev/sdb1, and then mount the partition
Mount the root directory first
sudo su Mount /dev/sdb1/mnt
Next, "Bind the required directories to" Live CD systems.
Mount --bind/dev/mnt/Devmount --bind/proc/mnt/procMount --bind/sys/ Mnt/sys
Finally switch root root directory to/mnt
chroot /mnt
So we can switch back to our original system and execute update-grub to update the boot.
sudo update-grub
No accident, restart can enter the system, the whole process such as
3b./boot Separate partition
In this case, you need to mount the following/boot partitions as soon as you mount/mnt.
sudo su Mount /dev/sdb1/mntmkdir /mnt/bootmount /dev/sdxy/mnt/boot
Note SDXY refers to the partition where/boot is located. The other steps are the same as/boot not separate partitions.
Postscript:
Due to the GTX 670 graphics card, the motherboard is set to boot from the PCI-E slot where the video card is located, so when boot is repaired, only the cursor is flashing. This is typically a problem with graphics driver-related settings.
First select back from Intel integrated graphics boot, successfully enter the system, and uninstall the driver, reinstall the driver, after the relevant settings, to normal use.
Ubuntu Update grub Restore boot Menu via Live CD