Grub shell = grub-install

Source: Internet
Author: User

In the past, when grub information on the machine was lost or damaged, use rescue mode to enter and then reinstall grub-install/dev/SDA.
For some reason, grub-install/dev/SDA may encounter more or less problems during execution. We can also use another method to replace
Go to grub shell mode.
As follows:

GNU grub version 0.97 (640 K lower/3072 K upper memory)

[Minimal bash-like line editing is supported. For the first word, Tab
Lists possible command completions. Anywhere else tab lists the possible
Completions of a device/filename.]

Grub> root (hd0, 4) # partition where the/boot directory is located
Grub> setup (hd0) # location where grub is to be installed
In this way, you can also start the following grub-install/dev/SDA command.

 

 

Reproduced from: http://blog.chinaunix.net/space.php? Uid = 9098575 & Do = Blog & id = 2435859

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.