A few days ago I was splitting a partition in my laptop, and the following error occurred when restarting:
Because my computer is Ubuntu, booting with grub boot, and grub is placed under Ubuntu/boot/grub. Because I separated a district, resulting in grub can not find the original Ubuntu partition, naturally can not find/boot/grub, so solve this problem is very simple, as long as the grub and/boot/grub corresponding on it.
The steps are as follows:
1.
Enter LS as follows:
Will list all the partitions currently available on the disk, depending on the partition order on the original disk, it is possible to determine which of these are the Ubuntu partition (which is not OK, one trial)
2.
Enter the set as follows:
Will list the current grub settings, just because these settings are wrong, so that grub cannot find the Ubuntu partition, since grub cannot be found, then we have to specify it manually.
3.
Take (HD0,MSDOS1) as an example, enter:
Set ROOT=HD0,MSDOS1
Set prefix= (HD0,MSDOS1)/boot/grub
As shown below:
Note: The format may vary depending on the version of Grub, as long as it matches the format listed in the previous set.
4.
Then enter set and find that we've set it up: