Normal.mod not found of Debian Stable (Jessie 8.1)

Source: Internet
Author: User

* * When you plan to reset the next default-brower, entered the dpkg-reconfigure results by a G, and press the tab, and finally lost the carriage return. it becomes

dpkg-reconfigure grub-pc

Enter the dpkg configuration GRUB-PC interface, the inside let the grip input linux-command-line, press the ESC did not expect to quit instead of the ", is the number 1 on the symbol. Next the next option is entered. This only has a OK to move to. Then knocked on the next bus. I don't care about it. I didn't expect to restart. The error is directly.
**
Tips

errorfile ‘/boot/grub/i386-pc/normal.modnot foundgrub rescue>

Most 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 livecd U-disk in my hand.

The following is the complete process of restoring grub, only for the reference of a friend under Debian:

rescue>ls(hd0, msdos), (hd0, msdos1), (hd0, msdos5)

Because my machine has only one hard disk, no partitions, so msdos1 is my home directory.

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

So it's loaded on the normal.mod.

But it's not over yet.
Into the Grub

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

This place will be stuck for a while and then into Initramdisk.
In fact, this is because no other mod is found, causing the error.


Re-force shutdown, repeat the above operation.
Then changed a kernel, reported the following error

It's a good run. It means that these mods are not under/BOOT/GRUB/I386-PC.
So we went back to loading normal.mod at the very beginning, loading the missing mods once.

rescue>set prefix=(hd0rescuerescuerescuerescuerescuerescue>normal

These will have a normal majority of modules, into a not intact grub menu.list

Then choose one to go to the TTY, into the TTY will say more.
It would be nice to fix grub directly.

root>-l这里查看下你的硬盘, 我只有一块, 分了几个区. /dev/sda1, /dev/sda2, /dev/sda5, 说明挂载的是/dev/sdaroot> grub-install /dev/sdaroot> update-grubroot>-r now

After reboot. Logged in as normal.

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Normal.mod not found of Debian Stable (Jessie 8.1)

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.