LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 04-02-2015, 11:48 PM   #1
zeshanuk
Member
 
Registered: Mar 2015
Distribution: debian jessie baby
Posts: 85

Rep: Reputation: Disabled
error at grub splash screen


Hi all,

I need some help I have an error come up on the grub splashscreeen time

Quote:
error: file not found
Does anyone know why this is?

regards,
Zeshan
 
Old 04-03-2015, 12:59 AM   #2
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Hi you will need yo give more info for any one to help. Can you get a screen shot some how, post your grub.cfg file and fstab file.
 
Old 04-03-2015, 02:16 AM   #3
zeshanuk
Member
 
Registered: Mar 2015
Distribution: debian jessie baby
Posts: 85

Original Poster
Rep: Reputation: Disabled
I cant its a separate machine and I managed to lose my host grub.cfg file too
 
Old 04-03-2015, 02:23 AM   #4
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
well you better sort that out 1st. Any 1 who helps will need info so you will some, You can use a camara of phone to take a pic of screen it will all help.
 
Old 04-03-2015, 06:33 AM   #5
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Aside from what spiky said about needing more info, the 'file not found' error from grub generally means it cant find a nessaccary boot file, the kernel or initrd, you can drop into a simple grub menu and set boot options manually but you will have to look for the relevent documentation for more details.
 
Old 04-03-2015, 06:36 AM   #6
zeshanuk
Member
 
Registered: Mar 2015
Distribution: debian jessie baby
Posts: 85

Original Poster
Rep: Reputation: Disabled
Hi spiky, I am not able to get a pic of the screen because i dont have a camera, but i am able to send you my grub.cfg file and fstab file:


grub.cfg:

Quote:
#
# 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 [ "${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 {
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
}

insmod part_msdos
insmod ext2
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set=root 74505895-e36b-4a27-95a5-74ff5104a28d
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 79b72f35-8a67-48a2-b99e-ac0d60d3cf8a
set locale_dir=($root)/grub/locale
set lang=en_GB
insmod gettext
fi
terminal_output gfxterm
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_msdos
insmod ext2
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set=root 74505895-e36b-4a27-95a5-74ff5104a28d
insmod png
if background_image /usr/share/images/desktop-base/joy-grub.png; then
set color_normal=white/black
set color_highlight=black/white
else
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Debian GNU/Linux, with Linux 3.2.0-4-amd64' --class debian --class gnu-linux --class gnu --class os {
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 79b72f35-8a67-48a2-b99e-ac0d60d3cf8a
echo 'Loading Linux 3.2.0-4-amd64 ...'
linux /vmlinuz-3.2.0-4-amd64 root=UUID=74505895-e36b-4a27-95a5-74ff5104a28d ro quiet
echo 'Loading initial ramdisk ...'
initrd /initrd.img-3.2.0-4-amd64
}
menuentry 'Debian GNU/Linux, with Linux 3.2.0-4-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 79b72f35-8a67-48a2-b99e-ac0d60d3cf8a
echo 'Loading Linux 3.2.0-4-amd64 ...'
linux /vmlinuz-3.2.0-4-amd64 root=UUID=74505895-e36b-4a27-95a5-74ff5104a28d ro single
echo 'Loading initial ramdisk ...'
initrd /initrd.img-3.2.0-4-amd64
}
menuentry 'Debian GNU/Linux, with Linux 2.6.32-504.el6.x86_64' --class debian --class gnu-linux --class gnu --class os {
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 79b72f35-8a67-48a2-b99e-ac0d60d3cf8a
echo 'Loading Linux 2.6.32-504.el6.x86_64 ...'
linux /vmlinuz-2.6.32-504.el6.x86_64 root=UUID=74505895-e36b-4a27-95a5-74ff5104a28d ro quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-2.6.32-504.el6.x86_64.img
}
menuentry 'Debian GNU/Linux, with Linux 2.6.32-504.el6.x86_64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 79b72f35-8a67-48a2-b99e-ac0d60d3cf8a
echo 'Loading Linux 2.6.32-504.el6.x86_64 ...'
linux /vmlinuz-2.6.32-504.el6.x86_64 root=UUID=74505895-e36b-4a27-95a5-74ff5104a28d ro single
echo 'Loading initial ramdisk ...'
initrd /initramfs-2.6.32-504.el6.x86_64.img
}
menuentry 'LFS v7.7' {
insmod ext2
set root='(hd0,msdos1)'
linux /boot/vmlinuz-3.19-lfs-7.7 root=UUID=11130002-1a6b-43f2-9b49-2df2f110d371 ro single
}


### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### 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 $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

fstab file:

Quote:
# Begin /etc/fstab

# file system mount-point type options dump fsck
# order
/dev/sda4 / ext4 defaults 1 1
/dev/sda3 swap swap pri=1 0 0
proc /proc proc nosuid,noexec,nodev 0 0
sysfs /sys sysfs nosuid,noexec,nodev 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
tmpfs /run tmpfs defaults 0 0
devtmpfs /dev devtmpfs mode=0755,nosuid 0 0

# End /etc/fstab
any ideas?
 
Old 04-03-2015, 06:40 AM   #7
zeshanuk
Member
 
Registered: Mar 2015
Distribution: debian jessie baby
Posts: 85

Original Poster
Rep: Reputation: Disabled
Hi Keith,

Believe it or not im from wiltshire too (trowbridge) and i am really grateful for your comments, I have been trying with the grub setup for some time and cant seem to get it right
 
Old 04-03-2015, 06:45 AM   #8
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Small world!
I'm in enford, down by Amesbury
 
Old 04-03-2015, 06:48 AM   #9
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Hi

The 1st thing I would try is remove the "UUID=11130002-1a6b-43f2-9b49-2df2f110d371"
And replace it with root=/dev/sda4

FYI

normal.mod is in
/usr/lib/grub/i386-pc/normal.mod
/bootgrub/i386-pc/normal.mod

This page might help to boot from prompt, just leave the intrid part out, "not used"

https://www.linux.com/learn/tutorial...ub-2-on-linux/

Last edited by spiky0011; 04-03-2015 at 06:55 AM.
 
1 members found this post helpful.
Old 04-03-2015, 06:49 AM   #10
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
As you have some other boot entry's I would boot to one of them and manually check the grub.cfg file make sure that the kerenl name is correct and also the root uid and the initrd if there is one.
 
Old 04-03-2015, 08:54 AM   #11
zeshanuk
Member
 
Registered: Mar 2015
Distribution: debian jessie baby
Posts: 85

Original Poster
Rep: Reputation: Disabled
hi spiky, I have followed the instructions on grub you sent me. it fixed my host system configuration which now boots fine. the lfs system has a kernel panic however, error reads:

end Kernel panic - not syncing:VFS Unable to mount root fs on unknown-block(0,0)

im not sure why it doesn't mount, do you have any ideas?
 
Old 04-03-2015, 09:34 AM   #12
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Hi
Did you enable ext4 fs in kernel?

cd to where config file is and

cat config-xxx | grep CONFIG_EXT4 "xxx is what ever else config is called"
 
Old 04-03-2015, 09:59 AM   #13
zeshanuk
Member
 
Registered: Mar 2015
Distribution: debian jessie baby
Posts: 85

Original Poster
Rep: Reputation: Disabled
I used the default setup for the kernel, what config file am I looking for please??? do I need to unpack the Linux-3.19 tarball?
 
Old 04-03-2015, 10:20 AM   #14
zeshanuk
Member
 
Registered: Mar 2015
Distribution: debian jessie baby
Posts: 85

Original Poster
Rep: Reputation: Disabled
ithink i figured out what you was looking for spiky:


Quote:
root@Unknown:/home/zeshan# cat /boot/config-3.19 | grep CONFIG_EXT4
CONFIG_EXT4_FS=y
CONFIG_EXT4_USE_FOR_EXT23=y
CONFIG_EXT4_FS_POSIX_ACL=y
CONFIG_EXT4_FS_SECURITY=y
# CONFIG_EXT4_DEBUG is not set
root@Unknown:/home/zeshan#
 
Old 04-03-2015, 10:28 AM   #15
zeshanuk
Member
 
Registered: Mar 2015
Distribution: debian jessie baby
Posts: 85

Original Poster
Rep: Reputation: Disabled
now just checked the right file for you, sorry but its the same as the host output:

Quote:
root@Unknown:/mnt/bootcheck# cat config-3.19 | grep CONFIG_EXT4CONFIG_EXT4_FS=y
CONFIG_EXT4_USE_FOR_EXT23=y
CONFIG_EXT4_FS_POSIX_ACL=y
CONFIG_EXT4_FS_SECURITY=y
# CONFIG_EXT4_DEBUG is not set
root@Unknown:/mnt/bootcheck#
 
  


Reply



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 splash screen images??????? mad_abt_linux Linux - Newbie 1 10-24-2007 04:17 PM
Added my own grub splash screen checkmate3001 LinuxQuestions.org Member Success Stories 1 09-30-2007 09:08 PM
Changing GRUB Splash Screen Not Working cyborg939 Fedora 1 03-24-2007 07:38 PM
changing grub splash screen tm2383 Mandriva 1 12-16-2006 08:14 AM
Splash screen for Grub nabil Linux - General 15 05-08-2002 03:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 03:54 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