LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-20-2018, 03:32 AM   #1
micaldas
Member
 
Registered: Mar 2018
Posts: 84

Rep: Reputation: Disabled
Grub error "/boot/grub/i386-pc/normal.mod not found" in Kvm


Hi,
I just installed Kvm (through Docker) in a machine running Deepin.
When Kvm boots it goes to grub-rescue with the following error message: "error: file /boot/grub/i386-pc/normal.mod not found".
I googled the problem and all answers center on checking if root is correct (it is,since there is only one partition), setting prefix correctly (which is now "(hd0,msdos1)/boot/grub) and typing "insmod normal" - "normal".
The problem is, even after checking, when I type "insmod normal", the error message appears again.
I did "ls /boot" to see what was in there, and /boot is empty.
I read in another forum that this could be solved by: "cp -r /usr/lib/grub/i386-pc /boot/grub", but I have no idea how to do that in a vm, or if its even possible.

Any help would be greatly appreciated.

Last edited by micaldas; 05-22-2018 at 09:28 AM.
 
Old 05-20-2018, 12:09 PM   #2
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Rep: Reputation: 164Reputation: 164
1. Please post /etc/fstab
2. Please post fdisk -l
 
1 members found this post helpful.
Old 05-21-2018, 01:02 AM   #3
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
Read this: https://askubuntu.com/questions/2664...-mod-not-found
 
1 members found this post helpful.
Old 05-21-2018, 07:17 AM   #4
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,348

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
Quote:
/boot is empty.
that is your problem /boot shouldn't be empty. Give complete details of what you did to set up kvm and any error messages.
 
1 members found this post helpful.
Old 05-21-2018, 12:07 PM   #5
micaldas
Member
 
Registered: Mar 2018
Posts: 84

Original Poster
Rep: Reputation: Disabled
Hi all, thank you for taking the time to help.
I'll by order of the posts:

Keruskerfuerst - my /etc/fstab is this:

# /dev/sda4
UUID=4d4030dd-dfd9-4d99-a59c-24dd7faa3813 / ext4 rw,relatime,data=ordered 0 1

# /dev/sda3
UUID=8e5ab1bf-660a-4895-bb78-78b722e69ba6 none swap defaults 0 0

My fdisk -l is the following:

Device Boot Start End Blocks Id System
/dev/sda1 1 1 8001 83 Linux
Warning: Partition 1 does not end on cylinder boundary.
/dev/sda2 * 1 17 128520 83 Linux
Warning: Partition 2 does not end on cylinder boundary.
/dev/sda3 17 82 522112 83 Linux
Warning: Partition 3 does not end on cylinder boundary.
/dev/sda4 82 60802 487733400 83 Linux
Warning: Partition 4 does not end on cylinder boundary.

AwesomeMachine - I already read it but it didn't help. I looked for "/i386-pc/normal.mod" as suggested, but couldn't find it, but as the vm created only one partition (the output of "ls" in grub rescue was "(hd0), (hd0, msdos1))", I think there is no other possibility but to be on hd0,1. I set the prefix to (hd0,1)/boot/grub and root to (hd0,1), but, as there is nothing inside boot, it didn't help.

colorpurple21859 - I set up kvm through docker, using this files: https://github.com/jessfraz/dockerfiles/tree/master/kvm. I had no error messages prior to the one I already told you about.
 
Old 05-21-2018, 12:24 PM   #6
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,348

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
Quote:
it is,since there is only one partition
I see 4 partitions and / on the 4th partition
 
1 members found this post helpful.
Old 05-21-2018, 12:33 PM   #7
micaldas
Member
 
Registered: Mar 2018
Posts: 84

Original Poster
Rep: Reputation: Disabled
That refers to the host. When I answered Keruskerfuerst, I took the information from the host, since I had already explained that in the vm I was in grub-rescue mode and unable to collect the asked information.
 
Old 05-21-2018, 02:43 PM   #8
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,510

Rep: Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491
The fstab and fdisk output from the host machine won't be helpful. When you see the grub prompt when trying to boot in the virtual machine and run the following do you see the grub directory? If you add grub to the command, do you see any files?

Quote:
ls (hd0,msdos1)/boot
 
1 members found this post helpful.
Old 05-21-2018, 02:53 PM   #9
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,348

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
Your running kvm inside of a container? what is the output of ls (hd0,msdos1)/
 
1 members found this post helpful.
Old 05-22-2018, 03:43 AM   #10
micaldas
Member
 
Registered: Mar 2018
Posts: 84

Original Poster
Rep: Reputation: Disabled
Hi,

Answering yancek and colourpurple21859 questions:

Output of (hd0,msdos)/

"lost+found / vmlinuz var / bin / usr / lib / etc / tmp /sys / sbin / run /root / proc / home /dev / boot/ mnt / srv /opt / media / initrd.img vmlinuz,old initrd.img.old"

Output of ls (hd0,msdos1)/boot

Nothing.

Output of ls (hd0,msdos1)/boot/grub

" 'boot/grub' not found"
 
Old 05-22-2018, 08:00 AM   #11
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,348

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
The normal answer would be to boot from a live iso, chroot into the system, install grub with package manager if not installed and then install grub to drive. However, because your running kvm from docker, I suspect you will have to pass parameters to the container when starting, but I don't know what they would be. Some one smarter than me will have to chime in on this one.

Last edited by colorpurple21859; 05-22-2018 at 08:01 AM.
 
Old 11-26-2018, 11:31 AM   #12
DaveMould
LQ Newbie
 
Registered: Nov 2018
Posts: 1

Rep: Reputation: Disabled
I solved it in BIOS

I recently had this problem after installing Linux Mint onto a HDD on a Dell laptop (not shared with any other OS). After the installation had completed (with no errors) it would not boot into the new OS, just came up with the “/boot/grub/i386-pc/normal.mod" not found GRUB error message.

I entered the Bios setup (F2 at powerup) and changed the SATA mode from AHCI to IDE mode, ignoring the warning about maybe making the HDD unreadable, and after saving & exiting the setup menu it booted into Linux Mint with no further actions needed.

Dave
 
  


Reply

Tags
grub 2, kvm



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Grub error "/boot/grub/x86_64-efi/normal.mod not found" after installing Ubuntu caml Linux - Newbie 6 01-20-2022 09:45 PM
GRUB - normal.mod not found razelll Linux - Newbie 6 04-15-2018 12:48 PM
GRUB boot fails returning "Error 15: File not found" on Centos 6.3 LittleMaster Linux - Server 2 05-24-2013 04:01 AM
[SOLVED] Ubuntu 12.10 - grub error "file /boot/grub/i386-pc/normal.mod not found" champton Ubuntu 4 02-26-2013 09:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration