On 06/13/2014 10:03 PM, Luis Muñoz Fuente wrote:
El 12/06/14 a las 18:42:12, Luis Muñoz Fuente escribió:

Hello:

Please excuse my limited English.


book: 7.5

host distribution: Debian 7


When I boot lfs the computer tell:

"Error: file not found"

"Press any key"

and when press any key I return to grub's menu.


I have one partition for lfs and it is: /dev/sda3

In Debian I write:

cat > /etc/grub.d/40_custom << "EOF"
#!/bin/sh
exec tail -n +3 $0

# 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.


insmod ext2
set root=(hd0,3)


menuentry "LFS llantones" {
          linux   /boot/vmlinuz-3.13.3-lfs-7.5 root=/dev/sda3 ro
}
EOF

and then execute: update-grub

Thanks

If I use the kernel of the host the error is a kernel panic because
can't mount root partition.



With a Debian 7.5 host I had no need to modify any /etc/grub.d entries.
Command update-grub does all the work and finds my LFS partition.

After update-grub you should check /boot/grub/grub.cfg, which is the actual file generated by update-grub, and the one that GRUB uses to locate and boot your LFS kernel.

Double check, first that your LFS built kernel file is named as you expect and located at /boot and, second, that you don't have "extra" entries in the generated /boot/grub/grub.cfg file.

Saludos.
ALZ.





--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to