You are not logged in.
Pages: 1
Hello
I have this strange grub error at boot and I can't figure out what is causing it. It has been there for a while, I think since I upgraded to kernel 3.4.0.
What happens is once the system starts booting (after grub menu) it displays:
error: file not found
error: file not found
error: file not found
Loading Linux core repo kernel ...
Loading initial ramdisk ...
Press any key to continue...
I can then press a key and my system boots just fine.
Here's my /boot/grub/grub.cfg (http://pasteit.com/18553)
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
load_env
fi
set default="0"
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}
set menu_color_normal=light-blue/black
set menu_color_highlight=light-cyan/blue
if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_gpt
insmod ext2
set root='hd2,gpt3'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3 --hint='hd2,gpt3' 2002e224-ca47-446e-a81a-65398e896d9e
else
search --no-floppy --fs-uuid --set=root 2002e224-ca47-446e-a81a-65398e896d9e
fi
font="/usr/share/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=en_DK
insmod gettext
fi
terminal_output gfxterm
if sleep --verbose --interruptible 2 ; then
set timeout=5
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'GNU/Linux, with Linux core repo kernel' --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-core repo kernel-true-2002e224-ca47-446e-a81a-65398e896d9e' {
load_video
insmod gzio
insmod part_gpt
insmod ext2
set root='hd2,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 --hint='hd2,gpt2' acf53ee3-6b90-4285-aa81-b4d5da5f3ef6
else
search --no-floppy --fs-uuid --set=root acf53ee3-6b90-4285-aa81-b4d5da5f3ef6
fi
echo 'Loading Linux core repo kernel ...'
linux /vmlinuz-linux root=UUID=2002e224-ca47-446e-a81a-65398e896d9e ro
echo 'Loading initial ramdisk ...'
initrd /initramfs-linux.img
}
menuentry 'GNU/Linux, with Linux core repo kernel (Fallback initramfs)' --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-core repo kernel-fallback-2002e224-ca47-446e-a81a-65398e896d9e' {
load_video
insmod gzio
insmod part_gpt
insmod ext2
set root='hd2,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 --hint='hd2,gpt2' acf53ee3-6b90-4285-aa81-b4d5da5f3ef6
else
search --no-floppy --fs-uuid --set=root acf53ee3-6b90-4285-aa81-b4d5da5f3ef6
fi
echo 'Loading Linux core repo kernel ...'
linux /vmlinuz-linux root=UUID=2002e224-ca47-446e-a81a-65398e896d9e ro
echo 'Loading initial ramdisk ...'
initrd /initramfs-linux-fallback.img
}
menuentry 'GNU/Linux, with Linux core repo kernel (recovery mode)' --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-core repo kernel-recovery-2002e224-ca47-446e-a81a-65398e896d9e' {
load_video
insmod gzio
insmod part_gpt
insmod ext2
set root='hd2,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 --hint='hd2,gpt2' acf53ee3-6b90-4285-aa81-b4d5da5f3ef6
else
search --no-floppy --fs-uuid --set=root acf53ee3-6b90-4285-aa81-b4d5da5f3ef6
fi
echo 'Loading Linux core repo kernel ...'
linux /vmlinuz-linux root=UUID=2002e224-ca47-446e-a81a-65398e896d9e ro single
echo 'Loading initial ramdisk ...'
initrd /initramfs-linux-fallback.img
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" --class memtest86 --class gnu --class tool {
insmod part_gpt
insmod ext2
set root='hd2,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 --hint='hd2,gpt2' acf53ee3-6b90-4285-aa81-b4d5da5f3ef6
else
search --no-floppy --fs-uuid --set=root acf53ee3-6b90-4285-aa81-b4d5da5f3ef6
fi
linux16 ($root)/memtest86+/memtest.bin
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
Last edited by KLIM (2012-08-22 22:56:00)
Offline
I've found this topic where the guy got the same error's as I do.
https://bbs.archlinux.org/viewtopic.php?pid=1096334
How ever, I want to reinstall grub2 - but I'm not sure how to "format" this line correctly. What should the --directory and --target parameters be?
# grub-install --directory=/usr/lib/grub/i386-pc --target=i386-pc --boot-directory=/boot --recheck --debug /dev/sda
# grub-mkconfig -o /boot/grub/grub.cfg
My arch installation is x86_64 - should I still use i386 then?
In /boot/grub/locale I don't have the any en*.mo file either. Could I generate or copy theese files from somewhere?
$ ls /boot/grub/locale/
ast.mo da.mo fi.mo hu.mo it.mo nl.mo ru.mo uk.mo zh_CN.mo
ca.mo de.mo fr.mo id.mo ko.mo pl.mo sv.mo vi.mo
Last edited by KLIM (2012-08-22 14:52:17)
Offline
Grub2 is working on my box, and I do not have any /etc/grub/ folder, only /etc/grubd/.
Let all your locale files where they are.
Last edited by gabx (2012-08-22 14:32:46)
Online
Grub2 is working on my box, and I do not have any /etc/grub/ folder, only /etc/grubd/.
Let all your locale files where they are.
Sorry I meant /boot/grub/locale
Offline
Even with the typo, you don't any locale folder in /etc/grubd/. Only scripts.
Online
Even with the typo, you don't any locale folder in /etc/grubd/. Only scripts.
Well it's in the /boot/grub and as other guys in the thread at post #2 got a locale folder there aswell. I can't be the only one.
Offline
From beginner's guide: https://wiki.archlinux.org/index.php/Be … Guide#GRUB
To prevent a (harmless) error message at boot time:
# mkdir -p /boot/grub/locale # cp /usr/share/locale/en\@quot/LC_MESSAGES/grub.mo /boot/grub/locale/en.mo
Last edited by 12eason (2012-08-22 19:00:10)
Offline
gabx wrote:Even with the typo, you don't any locale folder in /etc/grubd/. Only scripts.
Well it's in the /boot/grub and as other guys in the thread at post #2 got a locale folder there aswell. I can't be the only one.
Right, your locale folder is indeed in /boot/grub, but has nothing to do in /etc/grubd/
Online
From beginner's guide: https://wiki.archlinux.org/index.php/Be … Guide#GRUB
To prevent a (harmless) error message at boot time:
# mkdir -p /boot/grub/locale # cp /usr/share/locale/en\@quot/LC_MESSAGES/grub.mo /boot/grub/locale/en.mo
Thanks, but I still got the same error messages
(I ran grub-mkconfig -o /boot/grub/grub.cfg afterwards)
So maybe this command is needed.
# grub-install --target=i386-pc --recheck /dev/sda
Edit:
Reinstalling grub2 seemed to do the trick!
I ran:
# grub-install --directory=/usr/lib/grub/i386-pc --target=i386-pc --recheck /dev/sda
# grub-mkconfig -o /boot/grub/grub.cfg
Last edited by KLIM (2012-08-22 22:56:34)
Offline
Pages: 1