Debian Stable (Jessie 8.1) normal. mod not found

Source: Internet
Author: User

Debian Stable (Jessie 8.1) normal. mod not found

I plan to reset the default-brower, input dpkg-reconfigure, press g, press tab, and press Enter.

dpkg-reconfigure grub-pc

After entering the interface for configuring grub-pc in dpkg, enter linux-command-line in it, and press the symbol on number 1 instead of exiting. next we enter the next option. this can only be moved to OK. then press Enter. you can leave it alone. I did not expect the restart. an error is reported directly.
**
Prompt

error: file '/boot/grub/i386-pc/normal.mod' not foundgrub rescue>

The vast majority of commands are not available, only a few simple ls, set can

This means that the normal module cannot be found. I don't have a USB flash drive for liveCD either.

The following is a complete process for restoring grub, which is for your reference only In debian:

grub rescue>ls(hd0, msdos), (hd0, msdos1), (hd0, msdos5)
  • 1

Because my machine has only one hard disk and no partitions, msdos1 is my main directory.

grub rescue>set root=(hd0,msdos1)grub rescue> ls /usr/lib/grub/i386-pc/normal.mod, xxx.mod search.mod ......grub rescue>set prefix=(hd0,msdos1)/usr/lib/grubgrub rescue>insmod normalgrub rescue>normal

In this way, normal. mod is loaded.

But this is not complete yet.
Go to grub

grub>vmlinuz vmlinuz-linux-headers-3.16.0.4-xxxxgrub>initrd initrd-linux-headers-3.16.0.4-xxxxgrub>boot

It will be stuck here for a while and then enter initramdisk
In fact, this is because no other related mod is found, resulting in an error.


Force Shutdown again and repeat the above operations.
Then I changed the kernel and reported the following error:

This is easy to do. It means that these mod are not under the/boot/grub/i386-pc.
So when we first loaded normal. mod, we loaded all the missing mod once.

grub rescue>set prefix=(hd0,msdos1)/usr/lib/grubgrub rescue>insmod normalgrub rescue>insmod searchgrub rescue>insmod echogrub rescue>insmod linuxgrub rescue>insmod initrdgrub rescue>normal

These have most of the normal modules, and enter an unintact grub menu. list

Then you can select one to enter tty. If you enter tty, You can say more.
Fix grub directly.

Root> fdisk-l check your hard disk here. I only have one disk and there are several partitions. /dev/sda1,/dev/sda2,/dev/sda5, indicating that the mount is/dev/sdaroot> grub-install/dev/sdaroot> update-grubroot> shutdown-r now

After the restart, the system will log on normally.

This article permanently updates the link address:

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.