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.
hello everyone !
I am very interesting linux from scratch.and on virtualbox I have build an LFS system and boot it successfully.
These days i want to compile the LFS system on an old 32bit laptop of mine.but i cant boot it.
The error is:
Code:
error:file '/boot/vmlinuz-4.12.7-lfs-8.1' not found
2.the disc and mount are:
Code:
root:/# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
loop0 7:0 0 1020.1M 1 loop
sda 8:0 0 465.8G 0 disk
|-sda1 8:1 0 200M 0 part /boot
|-sda2 8:2 0 4G 0 part [SWAP]
`-sda3 8:3 0 461.6G 0 part /
sdb 8:16 1 7.2G 0 disk
`-sdb4 8:20 1 7.2G 0 part
sr0 11:0 1 1024M 0 rom
3.the /boot files are
Code:
root:/# ls /boot/
config-4.12.7 initrd.img-4.12.7 System.map-4.12.7
grub lost+found vmlinuz-4.12.7-lfs-8.1
4. the grub.cfg is
Code:
root:~# cat /boot/grub/grub.cfg
# Begin /boot/grub/grub.cfg
set default=0
set timeout=3
insmod ext2
set root=(hd0,1)
menuentry "GNU/Linux, Linux 4.12.7-lfs-8.1" {
linux /boot/vmlinuz-4.12.7-lfs-8.1 root=/dev/sda3 ro
initrd /boot/initrd.img-4.12.7
}
Recently (2018-02-05) i started playing with lfs, went for the devel-book of lfs, that first build crashed because the partition i used ran out of space, restarted with the new devel-book and got to a successful end.
Regarding the grub i had (and partitial still have a problem) and gave it my own interpretation. grub provide a grub-mkconfig (hint: grub-mkconfig -o /your/path/grub.out) util i ran on the lfs. That that file created in /your/path/ i edit down to the menu-listing structure like following:
Code:
menuentry 'Linux From Scratch' --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-6c5d12d6-73e8-4a76-a4f6-8cfb53d8360e' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos13'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos13 --hint-efi=hd0,msdos13 --hint-baremetal=ahci0,msdos13 6c5d12d6-73e8-4a76-a4f6-8cfb53d8360e
else
search --no-floppy --fs-uuid --set=root 6c5d12d6-73e8-4a76-a4f6-8cfb53d8360e
fi
echo 'Loading Linux 4.15.2-lfs-SVN-20180211 ...'
linux /boot/vmlinuz-4.15.2-lfs-SVN-20180211 root=/dev/sda13 ro
}
submenu 'Advanced options for Linux From Scratch' $menuentry_id_option 'gnulinux-advanced-6c5d12d6-73e8-4a76-a4f6-8cfb53d8360e' {
menuentry 'Linux From Scratch, with Linux 4.15.2-lfs-SVN-20180211' --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.2-lfs-SVN-20180211-advanced-6c5d12d6-73e8-4a76-a4f6-8cfb53d8360e' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos13'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos13 --hint-efi=hd0,msdos13 --hint-baremetal=ahci0,msdos13 6c5d12d6-73e8-4a76-a4f6-8cfb53d8360e
else
search --no-floppy --fs-uuid --set=root 6c5d12d6-73e8-4a76-a4f6-8cfb53d8360e
fi
echo 'Loading Linux From Scratch Linux 4.15.2-lfs-SVN-20180211 ...'
linux /boot/vmlinuz-4.15.2-lfs-SVN-20180211 root=/dev/sda13 ro
}
menuentry 'Linux From Scratch, with Linux 4.15.2-lfs-SVN-20180211 (recovery mode)' --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.2-lfs-SVN-20180211-recovery-6c5d12d6-73e8-4a76-a4f6-8cfb53d8360e' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos13'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos13 --hint-efi=hd0,msdos13 --hint-baremetal=ahci0,msdos13 6c5d12d6-73e8-4a76-a4f6-8cfb53d8360e
else
search --no-floppy --fs-uuid --set=root 6c5d12d6-73e8-4a76-a4f6-8cfb53d8360e
fi
echo 'Loading Linux 4.15.2-lfs-SVN-20180211 ...'
linux /boot/vmlinuz-4.15.2-lfs-SVN-20180211 root=/dev/sda13 ro single
}
}
This piece can be inserted in several ways into the real grub.cfg. Mine was to going to disable grub rebuild on every other disrtibution i currently run and put the code right into the /boot/grub/grub.cfg of the actual boot-map responsible for starting grub. in mine example pasted above into excisting grub.cfg at line 134. In your case the produced file of grub-mkconfig could work inmidiate but took the trouble of displaying mine situation which is almost the same except you're using a seperate boot partition (you can consider to put the /boot temporary at the root partition and test that before seperate it again)
little last remark: lfs don't need an initrd to boot properly ( only on some rare conditions )
Code:
#
# 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
set have_grubenv=true
load_env
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
fi
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 recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; 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
}
if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_msdos
insmod ext2
set root='hd0,msdos14'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos14 --hint-efi=hd0,msdos14 --hint-baremetal=ahci0,msdos14 5bcccd8c-9502-4e63-8df4-d51e85e60d8a
else
search --no-floppy --fs-uuid --set=root 5bcccd8c-9502-4e63-8df4-d51e85e60d8a
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=nl_NL
insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
set timeout=30
else
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=10
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=10
fi
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
if background_color 44,0,30,0; then
clear
fi
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
set gfxpayload="${1}"
if [ "${1}" = "keep" ]; then
set vt_handoff=vt.handoff=7
else
set vt_handoff=
fi
}
if [ "${recordfail}" != 1 ]; then
if [ -e ${prefix}/gfxblacklist.txt ]; then
if hwmatch ${prefix}/gfxblacklist.txt 3; then
if [ ${match} = 0 ]; then
set linux_gfx_mode=keep
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=keep
fi
else
set linux_gfx_mode=text
fi
export linux_gfx_mode
menuentry 'Linux From Scratch' --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-6c5d12d6-73e8-4a76-a4f6-8cfb53d8360e' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos13'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos13 --hint-efi=hd0,msdos13 --hint-baremetal=ahci0,msdos13 6c5d12d6-73e8-4a76-a4f6-8cfb53d8360e
else
search --no-floppy --fs-uuid --set=root 6c5d12d6-73e8-4a76-a4f6-8cfb53d8360e
fi
echo 'Loading Linux 4.15.2-lfs-SVN-20180211 ...'
linux /boot/vmlinuz-4.15.2-lfs-SVN-20180211 root=/dev/sda13 ro
}
submenu 'Advanced options for Linux From Scratch' $menuentry_id_option 'gnulinux-advanced-6c5d12d6-73e8-4a76-a4f6-8cfb53d8360e' {
menuentry 'Linux From Scratch, with Linux 4.15.2-lfs-SVN-20180211' --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.2-lfs-SVN-20180211-advanced-6c5d12d6-73e8-4a76-a4f6-8cfb53d8360e' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos13'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos13 --hint-efi=hd0,msdos13 --hint-baremetal=ahci0,msdos13 6c5d12d6-73e8-4a76-a4f6-8cfb53d8360e
else
search --no-floppy --fs-uuid --set=root 6c5d12d6-73e8-4a76-a4f6-8cfb53d8360e
fi
echo 'Loading Linux From Scratch Linux 4.15.2-lfs-SVN-20180211 ...'
linux /boot/vmlinuz-4.15.2-lfs-SVN-20180211 root=/dev/sda13 ro
}
menuentry 'Linux From Scratch, with Linux 4.15.2-lfs-SVN-20180211 (recovery mode)' --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.2-lfs-SVN-20180211-recovery-6c5d12d6-73e8-4a76-a4f6-8cfb53d8360e' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos13'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos13 --hint-efi=hd0,msdos13 --hint-baremetal=ahci0,msdos13 6c5d12d6-73e8-4a76-a4f6-8cfb53d8360e
else
search --no-floppy --fs-uuid --set=root 6c5d12d6-73e8-4a76-a4f6-8cfb53d8360e
fi
echo 'Loading Linux 4.15.2-lfs-SVN-20180211 ...'
linux /boot/vmlinuz-4.15.2-lfs-SVN-20180211 root=/dev/sda13 ro single
}
}
menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-5bcccd8c-9502-4e63-8df4-d51e85e60d8a' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos14'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos14 --hint-efi=hd0,msdos14 --hint-baremetal=ahci0,msdos14 5bcccd8c-9502-4e63-8df4-d51e85e60d8a
else
search --no-floppy --fs-uuid --set=root 5bcccd8c-9502-4e63-8df4-d51e85e60d8a
fi
linux /boot/vmlinuz-4.2.0-42-generic root=UUID=5bcccd8c-9502-4e63-8df4-d51e85e60d8a ro quiet splash $vt_handoff
initrd /boot/initrd.img-4.2.0-42-generic
}
submenu 'Geavanceerde opties voor Ubuntu' $menuentry_id_option 'gnulinux-advanced-5bcccd8c-9502-4e63-8df4-d51e85e60d8a' {
menuentry 'Ubuntu, met Linux 4.2.0-42-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.2.0-42-generic-advanced-5bcccd8c-9502-4e63-8df4-d51e85e60d8a' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos14'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos14 --hint-efi=hd0,msdos14 --hint-baremetal=ahci0,msdos14 5bcccd8c-9502-4e63-8df4-d51e85e60d8a
else
search --no-floppy --fs-uuid --set=root 5bcccd8c-9502-4e63-8df4-d51e85e60d8a
fi
echo 'Laden van Linux 4.2.0-42-generic...'
linux /boot/vmlinuz-4.2.0-42-generic root=UUID=5bcccd8c-9502-4e63-8df4-d51e85e60d8a ro quiet splash $vt_handoff
echo 'Laden van initiële RAM-schijf...'
initrd /boot/initrd.img-4.2.0-42-generic
}
menuentry 'Ubuntu, with Linux 4.2.0-42-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.2.0-42-generic-recovery-5bcccd8c-9502-4e63-8df4-d51e85e60d8a' {
recordfail
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos14'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos14 --hint-efi=hd0,msdos14 --hint-baremetal=ahci0,msdos14 5bcccd8c-9502-4e63-8df4-d51e85e60d8a
else
search --no-floppy --fs-uuid --set=root 5bcccd8c-9502-4e63-8df4-d51e85e60d8a
fi
echo 'Laden van Linux 4.2.0-42-generic...'
linux /boot/vmlinuz-4.2.0-42-generic root=UUID=5bcccd8c-9502-4e63-8df4-d51e85e60d8a ro recovery nomodeset
echo 'Laden van initiële RAM-schijf...'
initrd /boot/initrd.img-4.2.0-42-generic
}
menuentry 'Ubuntu, met Linux 4.2.0-27-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.2.0-27-generic-advanced-5bcccd8c-9502-4e63-8df4-d51e85e60d8a' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos14'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos14 --hint-efi=hd0,msdos14 --hint-baremetal=ahci0,msdos14 5bcccd8c-9502-4e63-8df4-d51e85e60d8a
else
search --no-floppy --fs-uuid --set=root 5bcccd8c-9502-4e63-8df4-d51e85e60d8a
fi
echo 'Laden van Linux 4.2.0-27-generic...'
linux /boot/vmlinuz-4.2.0-27-generic root=UUID=5bcccd8c-9502-4e63-8df4-d51e85e60d8a ro quiet splash $vt_handoff
echo 'Laden van initiële RAM-schijf...'
initrd /boot/initrd.img-4.2.0-27-generic
}
menuentry 'Ubuntu, with Linux 4.2.0-27-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.2.0-27-generic-recovery-5bcccd8c-9502-4e63-8df4-d51e85e60d8a' {
recordfail
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos14'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos14 --hint-efi=hd0,msdos14 --hint-baremetal=ahci0,msdos14 5bcccd8c-9502-4e63-8df4-d51e85e60d8a
else
search --no-floppy --fs-uuid --set=root 5bcccd8c-9502-4e63-8df4-d51e85e60d8a
fi
echo 'Laden van Linux 4.2.0-27-generic...'
linux /boot/vmlinuz-4.2.0-27-generic root=UUID=5bcccd8c-9502-4e63-8df4-d51e85e60d8a ro recovery nomodeset
echo 'Laden van initiële RAM-schijf...'
initrd /boot/initrd.img-4.2.0-27-generic
}
}
### 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+)' {
insmod part_msdos
insmod ext2
set root='hd0,msdos14'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos14 --hint-efi=hd0,msdos14 --hint-baremetal=ahci0,msdos14 5bcccd8c-9502-4e63-8df4-d51e85e60d8a
else
search --no-floppy --fs-uuid --set=root 5bcccd8c-9502-4e63-8df4-d51e85e60d8a
fi
knetbsd /boot/memtest86+.elf
}
menuentry 'Memory test (memtest86+, serial console 115200)' {
insmod part_msdos
insmod ext2
set root='hd0,msdos14'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos14 --hint-efi=hd0,msdos14 --hint-baremetal=ahci0,msdos14 5bcccd8c-9502-4e63-8df4-d51e85e60d8a
else
search --no-floppy --fs-uuid --set=root 5bcccd8c-9502-4e63-8df4-d51e85e60d8a
fi
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows 7 (loader) (op /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-A81886071885D52A' {
insmod part_msdos
insmod ntfs
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 A81886071885D52A
else
search --no-floppy --fs-uuid --set=root A81886071885D52A
fi
parttool ${root} hidden-
chainloader +1
}
menuentry 'Gentoo Base System release 2.2 (op /dev/sda10)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-92023209-b44f-4691-8721-ac0d5d07ff4c' {
insmod part_msdos
insmod ext2
set root='hd0,msdos10'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos10 --hint-efi=hd0,msdos10 --hint-baremetal=ahci0,msdos10 92023209-b44f-4691-8721-ac0d5d07ff4c
else
search --no-floppy --fs-uuid --set=root 92023209-b44f-4691-8721-ac0d5d07ff4c
fi
linux /boot/kernel-genkernel-x86_64-4.8.0-sabayon root=UUID=92023209-b44f-4691-8721-ac0d5d07ff4c ro splash dolvm resume=/dev/sda6 quiet
initrd /boot/initramfs-genkernel-x86_64-4.8.0-sabayon
}
submenu 'Geavanceerde opties voor Gentoo Base System release 2.2 (op /dev/sda10)' $menuentry_id_option 'osprober-gnulinux-advanced-92023209-b44f-4691-8721-ac0d5d07ff4c' {
menuentry 'Sabayon GNU/Linux (op /dev/sda10)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/kernel-genkernel-x86_64-4.8.0-sabayon--92023209-b44f-4691-8721-ac0d5d07ff4c' {
insmod part_msdos
insmod ext2
set root='hd0,msdos10'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos10 --hint-efi=hd0,msdos10 --hint-baremetal=ahci0,msdos10 92023209-b44f-4691-8721-ac0d5d07ff4c
else
search --no-floppy --fs-uuid --set=root 92023209-b44f-4691-8721-ac0d5d07ff4c
fi
linux /boot/kernel-genkernel-x86_64-4.8.0-sabayon root=UUID=92023209-b44f-4691-8721-ac0d5d07ff4c ro splash dolvm resume=/dev/sda6 quiet
initrd /boot/initramfs-genkernel-x86_64-4.8.0-sabayon
}
menuentry 'Sabayon GNU/Linux, with Linux x86_64-4.8.0-sabayon (op /dev/sda10)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/kernel-genkernel-x86_64-4.8.0-sabayon--92023209-b44f-4691-8721-ac0d5d07ff4c' {
insmod part_msdos
insmod ext2
set root='hd0,msdos10'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos10 --hint-efi=hd0,msdos10 --hint-baremetal=ahci0,msdos10 92023209-b44f-4691-8721-ac0d5d07ff4c
else
search --no-floppy --fs-uuid --set=root 92023209-b44f-4691-8721-ac0d5d07ff4c
fi
linux /boot/kernel-genkernel-x86_64-4.8.0-sabayon root=UUID=92023209-b44f-4691-8721-ac0d5d07ff4c ro splash dolvm resume=/dev/sda6 quiet
initrd /boot/initramfs-genkernel-x86_64-4.8.0-sabayon
}
menuentry 'Sabayon GNU/Linux, with Linux x86_64-4.8.0-sabayon (recovery mode) (op /dev/sda10)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/kernel-genkernel-x86_64-4.8.0-sabayon-root=UUID=92023209-b44f-4691-8721-ac0d5d07ff4c ro single splash dolvm resume=/dev/sda6 quiet-92023209-b44f-4691-8721-ac0d5d07ff4c' {
insmod part_msdos
insmod ext2
set root='hd0,msdos10'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos10 --hint-efi=hd0,msdos10 --hint-baremetal=ahci0,msdos10 92023209-b44f-4691-8721-ac0d5d07ff4c
else
search --no-floppy --fs-uuid --set=root 92023209-b44f-4691-8721-ac0d5d07ff4c
fi
linux /boot/kernel-genkernel-x86_64-4.8.0-sabayon root=UUID=92023209-b44f-4691-8721-ac0d5d07ff4c ro single splash dolvm resume=/dev/sda6 quiet
initrd /boot/initramfs-genkernel-x86_64-4.8.0-sabayon
}
}
menuentry 'openSUSE 42.3 (x86_64) (op /dev/sda11)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-77d959c9-05ce-4265-a286-2355a74bbbd9' {
insmod part_msdos
insmod ext2
set root='hd0,msdos11'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos11 --hint-efi=hd0,msdos11 --hint-baremetal=ahci0,msdos11 77d959c9-05ce-4265-a286-2355a74bbbd9
else
search --no-floppy --fs-uuid --set=root 77d959c9-05ce-4265-a286-2355a74bbbd9
fi
linux /boot/vmlinuz-4.4.114-42-default root=UUID=77d959c9-05ce-4265-a286-2355a74bbbd9 resume=/dev/disk/by-uuid/03a75c64-8bd7-42a3-9b2d-3b42ca80a53b splash=silent quiet showopts
initrd /boot/initrd-4.4.114-42-default
}
submenu 'Geavanceerde opties voor openSUSE 42.3 (x86_64) (op /dev/sda11)' $menuentry_id_option 'osprober-gnulinux-advanced-77d959c9-05ce-4265-a286-2355a74bbbd9' {
menuentry 'openSUSE Leap 42.3 (op /dev/sda11)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.4.114-42-default--77d959c9-05ce-4265-a286-2355a74bbbd9' {
insmod part_msdos
insmod ext2
set root='hd0,msdos11'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos11 --hint-efi=hd0,msdos11 --hint-baremetal=ahci0,msdos11 77d959c9-05ce-4265-a286-2355a74bbbd9
else
search --no-floppy --fs-uuid --set=root 77d959c9-05ce-4265-a286-2355a74bbbd9
fi
linux /boot/vmlinuz-4.4.114-42-default root=UUID=77d959c9-05ce-4265-a286-2355a74bbbd9 resume=/dev/disk/by-uuid/03a75c64-8bd7-42a3-9b2d-3b42ca80a53b splash=silent quiet showopts
initrd /boot/initrd-4.4.114-42-default
}
menuentry 'openSUSE Leap 42.3, met Linux 4.4.114-42-default (op /dev/sda11)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.4.114-42-default--77d959c9-05ce-4265-a286-2355a74bbbd9' {
insmod part_msdos
insmod ext2
set root='hd0,msdos11'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos11 --hint-efi=hd0,msdos11 --hint-baremetal=ahci0,msdos11 77d959c9-05ce-4265-a286-2355a74bbbd9
else
search --no-floppy --fs-uuid --set=root 77d959c9-05ce-4265-a286-2355a74bbbd9
fi
linux /boot/vmlinuz-4.4.114-42-default root=UUID=77d959c9-05ce-4265-a286-2355a74bbbd9 resume=/dev/disk/by-uuid/03a75c64-8bd7-42a3-9b2d-3b42ca80a53b splash=silent quiet showopts
initrd /boot/initrd-4.4.114-42-default
}
menuentry 'openSUSE Leap 42.3, met Linux 4.4.114-42-default (herstelmodus) (op /dev/sda11)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.4.114-42-default--77d959c9-05ce-4265-a286-2355a74bbbd9' {
insmod part_msdos
insmod ext2
set root='hd0,msdos11'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos11 --hint-efi=hd0,msdos11 --hint-baremetal=ahci0,msdos11 77d959c9-05ce-4265-a286-2355a74bbbd9
else
search --no-floppy --fs-uuid --set=root 77d959c9-05ce-4265-a286-2355a74bbbd9
fi
linux /boot/vmlinuz-4.4.114-42-default root=UUID=77d959c9-05ce-4265-a286-2355a74bbbd9
initrd /boot/initrd-4.4.114-42-default
}
menuentry 'openSUSE Leap 42.3, met Linux 4.4.104-39-default (op /dev/sda11)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.4.104-39-default--77d959c9-05ce-4265-a286-2355a74bbbd9' {
insmod part_msdos
insmod ext2
set root='hd0,msdos11'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos11 --hint-efi=hd0,msdos11 --hint-baremetal=ahci0,msdos11 77d959c9-05ce-4265-a286-2355a74bbbd9
else
search --no-floppy --fs-uuid --set=root 77d959c9-05ce-4265-a286-2355a74bbbd9
fi
linux /boot/vmlinuz-4.4.104-39-default root=UUID=77d959c9-05ce-4265-a286-2355a74bbbd9 resume=/dev/disk/by-uuid/03a75c64-8bd7-42a3-9b2d-3b42ca80a53b splash=silent quiet showopts
initrd /boot/initrd-4.4.104-39-default
}
menuentry 'openSUSE Leap 42.3, met Linux 4.4.104-39-default (herstelmodus) (op /dev/sda11)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.4.104-39-default--77d959c9-05ce-4265-a286-2355a74bbbd9' {
insmod part_msdos
insmod ext2
set root='hd0,msdos11'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos11 --hint-efi=hd0,msdos11 --hint-baremetal=ahci0,msdos11 77d959c9-05ce-4265-a286-2355a74bbbd9
else
search --no-floppy --fs-uuid --set=root 77d959c9-05ce-4265-a286-2355a74bbbd9
fi
linux /boot/vmlinuz-4.4.104-39-default root=UUID=77d959c9-05ce-4265-a286-2355a74bbbd9
initrd /boot/initrd-4.4.104-39-default
}
<snip> cut text short regarding post demands
thank you for eveyone!
in fact . I have solved it by this.when i reboot the systems and use E key to the grub terminal and use it like Linux terminal .
for example . set root=(hd0,msdos1) .just push the button "Tab".When i find the vmlinuz* and ctrl+x to boot it .its successful.
Of course! That's mainly my reason never to put out the /boot on a separate partition and leaving it
inside the distribution. It is more an horror when you start playing with multiple distros. When mount a separate part to /boot it's the root and making a /boot in there would result in /boot/boot
May be it can be tricked by making a link from /boot to / but i wouldn't go that way.
In my own situation i solved the trouble of updating the grub.cfg on several distros by moving the 'real' acting grub to the lfs. lfs never will touch the grub.cfg and i moved my theme of grub inside there and changed the root-pointers from hd0,msdos14 to hd0,msdos13 where lfs is running. Any other distro can do whatever they like with their own not used grub.cfg
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.