I need to change the motherboard but I don't want to reinstall my computer. What should I do? In fact, you don't need to reinstall the computer. You just need to reply to the bootmenu. 1. first, use a U disk to create a Ubuntu liveCD (please search for http://www.linuxidc.com), and then start through the U disk, select tryubuntu, enter the liveCD system 2. then you need to determine whether your/boot is partitioned separately. Generally, there is no partition separately. If you do not know, you can use
I need to change the motherboard but I don't want to reinstall my computer. What should I do? In fact, you do not need to reinstall the computer. You only need to reply to the boot menu.
1. First Use a U disk to create a Ubuntu live CD (please search for http://www.linuxidc.com), then start through the U disk, select try ubuntu, enter the live CD System
2. then you need to determine whether your/boot is partitioned separately. In general, there is no separate partition. If you do not know, you can use the GPartion program in live CD to check where your boot is, as shown in, my boot is not partitioned separately, in/dev/sdb1
3a./boot is not partitioned separately.
In this case, first view the partition content through Gpartition to determine the partition in which the primary partition is/, for example, I am in/dev/sdb1, And then mount the partition.
First mount the root directory
sudo sumount /dev/sdb1 /mnt
Next, we will bind some required directories to the live CD system.
mount --bind /dev /mnt/devmount --bind /proc /mnt/procmount --bind /sys /mnt/sys
Finally, switch the root directory to/mnt.
chroot /mnt
In this way, we switch back to our original system and execute update-grub to update the boot.
sudo update-grub
The system can be restarted without an accident. The whole process is as follows:
3b./boot separately partitioned
In this case, you only need to mount/mnt earlier and mount the following/boot partitions.
sudo sumount /dev/sdb1 /mntmkdir /mnt/bootmount /dev/sdxy /mnt/boot
Note that sdxy refers to the partition where/boot is located. The other steps are the same as that of/boot.
Postscript:
Because I use GTX 670 graphics card, the motherboard is set to start from the PCI-E slot where the video card is located, so after the boot repair start, found that only the cursor in the flash. This situation is generally caused by the relevant settings of the graphics card driver.
First, choose to enable it from Intel integrated graphics card. After successfully entering the system, uninstall the driver, reinstall the driver, and perform relevant settings, you can use it normally.
How to reinstall or fix Grub2 boot http://www.linuxidc.com/Linux/2012-11/74901.htm in Ubuntu12.04/12.10
Linux boot process grub and mbr http://www.linuxidc.com/Linux/2013-07/87923.htm
Installation and use http://www.linuxidc.com/Linux/2013-07/87682.htm for grub
Grub Bootstrap profile analysis http://www.linuxidc.com/Linux/2013-07/87547.htm
CentOS 6.4 grub plus password http://www.linuxidc.com/Linux/2013-07/87124.htm
CentOS GRUB boot error Unable to access system solution http://www.linuxidc.com/Linux/2014-11/108835.htm
For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2
This article permanently updates the link address: Http://www.linuxidc.com/Linux/2015-04/116451.htm