Only the GRUB command prompt is available.

Source: Internet
Author: User
Only the GRUB command prompt-Linux general technology-Linux technology and application information is available at startup. For more information, see the following. I use linux in a real way. Due to its inaccessibility, GF switched the system to windows when watching a movie. After watching the movie, when I restarted the machine and tried to switch back, the annoying problem appeared again: On the black screen, only the cursor after the grub prompt was flashing.

Today, I spent just one day sorting out the system. Before I had time to back up the system, this problem occurs. For a linux blind like me, the first thought in the brain is to reinstall linux.

Reinstalling linux is actually not troublesome. In the past week, I have no idea how many times I have reinstalled it. However, if a problem occurs, reinstalling the system is not a solution. You have to check whether there is any way to save it. My current level is definitely a challenge.
Unable to access the system, unable to access the network, and unable to find information.

I rummaged through the box and found out a book I bought in college-a designated teaching material for the national information technology proficiency test-all the hope of saving the system. Fortunately, this book is dedicated to explaining the Linuxd guiding process and principles. This chapter consists of seven pages and grub covers four pages. After a quick view, I found a way to start the system from GRUB. The book explains the commands for Starting windows and linux respectively, it is not easy to start linux (in fact, the commands in the book are correct for the problem that occurred on my computer at the time). There are three commands to start windows:

Root (hd0, 0)
Chainloader (hd0, 0) + 1
Boot

After entering the preceding three commands, the windows logon screen is displayed successfully. After entering the window, you can search for information on the Internet. The problem should be solved quickly, and you will be excited.

The first hope I found was to reinstall GRUB. The command I installed is as follows:

Root (hd0, 7)
Setup (hd0, 7): the information found on the Internet. Here we write setup (hd0), and there is information that it is best to install it on the linux partition. Simply put, I will change it to setup (hd0, 7) I don't know what the difference is with setup (hd0. The command is successfully executed with the success at the end.
Reboot

After the restart, a linux selection item appeared. I thought the problem had been solved. I did not expect to press enter in linux, but did not enter the system. The prompt on the screen showed that the partition was not mounted. Looking up, I found that the root of the system is (hd0, 8). (hd0, 8) I clearly remember that the G disk in win is in the fat32 format.

My second hope is the following sentence: "When GRUB is started, it will find a name named grub in/boot/grub. conf. If the setting file cannot be found, the command line mode is directly entered without entering the menu mode." This is the original article found in this life-saving book. It seems that an error has occurred in the configuration file. I cat it under grob, And it is root (hd0, 8 ). The first reaction was to change the file back, but after help, the grub file Editing Command was not found. I have no idea again.

It turns out that you can modify it like this: After selecting linux with the cursor, follow the prompts at the bottom of the screen and press "e" to edit the startup command. After editing, start by B and finally return to linux. After entering linux, modify the/root/grub. conf file.

After the above modification, the selection menu of grub is normal again. In retrospect, it is not difficult. The key to solving the problem is to re-install gurb by using sutup. (Author: aloie)
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.