Linux From ScratchThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150
Rep:
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.
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
}
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 ###
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
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150
Rep:
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.
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?
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#
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.