Reinstall grub in Linux

Source: Internet
Author: User
Reinstallation of grub in Linux-general Linux technology-Linux technology and application information. For details, refer to the following section. If your computer is a dual-system (Windows + Linux), grub will be reinstalled every time the Windows system is reinstalled. If a friend asks this question today, I will paste the specific steps here, we hope to provide you with some convenience.

1: insert the Linux system installation disk and start the computer in disc startup mode.

2: in Terminal/command line mode: sh # sudo grub

3: in Terminal/command line mode: grub> root (hdx, y)

Here, x and y represent the disks and partitions of the Linux system. If you are not clear, you can query the/boot/grub/menu. lst file or enter the hd file and use the Tab.

4: in Terminal/command line mode: grub> setup (hdm, n)

Generally, enter setup (hd0) here. If you want to install grub to a custom disk and partition, enter m and n.

If the execution is successful, the screen will display: successful ......

OK. Now, quit & reboot is successful.
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.