Ubuntu Update grub Restore boot Menu via Live CD

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.