The solution of error:unknown filesystem when the computer starts up
My computer is equipped with a dual system (redhat7+win7). One day I compressed a partition on the win7 and added a new partition. After that, I encountered this error when I turned it on: error:unknown filesystem
First of all, let's talk about the reason for this: I re-partitioned with the partition tool under windows (although I didn't touch the partition where the Linux is located)
Solution:
Do the following on the command line:
Enter after normal and you will enter the system.
Description:
Ls displays information about partitions
The ls (hd0,msdosx) / grub2 command is used to find out which partition the Linux disk is in and where the grub directory is located. Because my linux is installed with red hat enterprise 7 dint rhel7 using grub2 boot. So find out where the grub2 directory is. (hd0,msdosx) is the partition name listed in ls above, which requires an attempt. When a file is displayed instead of unkown filesystem, the partition is the partition where your linux is located.
Set lists the current grub settings and replaces them with the partitions you found in the listed format, such as what I did:
Set root=hd0,msdos9
Set prefix= (hd0,msdos9) / grub2
Enter the linux system, execute the command grub2-install / dev/sda under the superuser (sda is my boot disk), and then the system can start normally
Reference: http://www.linuxidc.com/Linux/2012-06/61983.htm
Http://www.2cto.com/os/201206/135368.html