Gruberror: unknownfilesystem Solution

Source: Internet
Author: User
A few days ago, I split a partition into two parts in my current project. The following error occurs when I restart the system: My computer is Ubuntu and grub is used for boot, grub is stored in/boot/grub in Ubuntu. Since grub cannot find the original Ubuntu partition because I have assigned another partition, it will naturally not find/boot/grub. Therefore, it is very easy to solve this problem, you only need to map grub to/boot/grub. Step 1: Enter

A few days ago, I split a partition into two parts in my current project. The following error occurs during restart:

Because my computer is Ubuntu and grub is used for boot, grub is placed under/boot/grub in Ubuntu. Since grub cannot find the original Ubuntu partition because I have assigned another partition, it will naturally not find/boot/grub. Therefore, it is very easy to solve this problem, you only need to map grub to/boot/grub.

The procedure is as follows:

1.

Enter ls as follows:

All available partitions on the current disk are listed. Which of the following partitions is determined based on the original partition order on the disk)

2.

Enter set as follows:

The current grub settings are listed. It is because of these incorrect settings that grub cannot find the Ubuntu partition. Since grub cannot be found, we need to manually specify it.

3.

Taking (hd0, msdos1) as an example, enter:

Set root = hd0, msdos1

Set prefix = (hd0, msdos1)/boot/grub

As follows:

Note: The format here may vary with grub versions, as long as it is consistent with the format listed in the previous set.

4.

Input set again and we will find that we have set it:

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.