[Go] Fix grub boot tutorial with Ubuntu Live CD

Source: Internet
Author: User

This tutorial method I used, can solve my problem.

This article mainly describes the use of Ubuntu Live CD repair Grub boot tutorial, this article to Ubuntu Live CD repair Grub boot For example, need friends can refer to the next

This article takes Ubuntu Live CD repair Grub boot as an example and has installed Fedora in/dev/sda3.

First make Ubuntu boot USB

sudo DD if=ubuntu-13.10-desktop-amd64.iso of=/dev/sdb #/dev/sdb is a USB drive letter

1. Use boot USB to enter Ubuntu trial environment

2. Check the partition status of the hard disk, get the Linux system installation partition number

sudo fdisk-l

Review the output and then determine which hard disk and installed partitions are installed on the Linux system based on the file type and partition size. My computer was installed in/dev/sda3 Fedora.

Alternatively, you can open the Gparted graphical tool to view the partition information.

Mount Fedora Installation Partition

3. Fedora is known to be installed on the/dev/sda3, so we can mount the Fedora installation partition with the following command. You need to replace the/dev/sda3 with your own Linux installation partition.

sudo Mount /dev/sda3/mnt

4. Mount other required directories (using--bind)

sudo Mount --bind/dev/mnt/devsudomount --bind/proc/mnt/procsudo  Mount --bind/sys/mnt/sys

5.Chroot to the Linux system on the hard disk

sudo chroot /mnt

6. Install & Update Grub

grub2-Install /dev/sdagrub2-mkconfig-o/boot/grub2/grub.cfg

7.Grub has been repaired successfully, we also need to exit the chroot environment, uninstall the already mounted devices and directories:

chroot Environment sudo umount /mnt/devsudoumount /mnt/procsudoumount /mnt/syssudoumount /mnt

8. Reboot!

Original: http://www.jb51.net/LINUXjishu/243616.html

[Go] fix grub boot tutorial with Ubuntu Live CD

Related Article

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.