Solution to grub: Use livecd to start, enter the desktop system, enter grubupdate on the terminal to enter the grub command line, and enter root (hd0, x) setup (hd0) hd0 refers to the first hard disk (no serial port SATA or parallel port PATA). x is the Partition Number of the linux main directory "/". The serial number starts from 0, 1 is smaller than the partition number displayed in linux. For example, if the hard disk partition number is hda5 in linux, x is 4. How to fix grub by using the Partition Number:
Start with livecd, enter the desktop system, and enter
Grub update
Enter the grub command line and enter
Root (hd0, x)
Setup (hd0)
Hd0 refers to the first hard disk (no serial port SATA or parallel port PATA). x is the Partition Number of the linux main directory "/". The serial number starts from 0, 1 is smaller than the partition number displayed in linux. For example, if the hard disk partition number is hda5 in linux, x is 4. The partition number can be used in the menu. If you do not know the number of disks, try it one by one. When grub prompts that the partition format is ex2fs. Note that root (hd0, x) must have spaces behind root.
The root command specifies the boot partition, And the setup command writes the boot information to the hard disk MBR.
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.