LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-13-2018, 07:20 PM   #1
Jacob_jhs
LQ Newbie
 
Registered: Feb 2018
Location: China
Posts: 3

Rep: Reputation: Disabled
Question LFS system can not boot on my laptop


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
}
5.the fstab is
Code:
root:~# cat /etc/fstab 
# Begin /etc/fstab

# file system  mount-point  type     options             dump  fsck
#                                                              order

/dev/sda3     /            ext4    defaults            1     1
/dev/sda1     /boot        ext4    defaults            1     1
/dev/sda2     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
anybody could help me .thanks for a lot
 
Old 02-15-2018, 11:25 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
try the linux line without /boot
linux /vmlinuz-4.12.7-lfs-8.1 root=/dev/sda3 ro
 
1 members found this post helpful.
Old 02-15-2018, 04:00 PM   #3
RoLoR
Member
 
Registered: Feb 2018
Posts: 60

Rep: Reputation: Disabled
My 2 cents.

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
 
Old 02-19-2018, 11:26 PM   #4
Nobutarou
Member
 
Registered: May 2017
Posts: 43

Rep: Reputation: Disabled
If your final goal is invoking your Linux, you can simply use super grub2 disk, https://www.supergrubdisk.org/super-grub2-disk/

Thanks,

Last edited by Nobutarou; 02-19-2018 at 11:43 PM.
 
Old 02-20-2018, 01:02 AM   #5
Jacob_jhs
LQ Newbie
 
Registered: Feb 2018
Location: China
Posts: 3

Original Poster
Rep: Reputation: Disabled
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.
 
Old 02-20-2018, 03:49 PM   #6
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
so the grub line should be as I said
linux /vmlinuz-xxx
The reason is that there is no boot dir in sda1
 
Old 02-20-2018, 04:13 PM   #7
RoLoR
Member
 
Registered: Feb 2018
Posts: 60

Rep: Reputation: Disabled
Quote:
Originally Posted by spiky0011 View Post
The reason is that there is no boot dir in sda1
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

Congrats on topic-starter for making it work.

Last edited by RoLoR; 02-20-2018 at 04:17 PM.
 
  


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
Unable to boot LFS System. happycow Linux From Scratch 3 11-08-2017 03:49 PM
LFS system is unable to boot qasimtahir Linux From Scratch 2 10-13-2017 05:56 AM
Setting up the boot process problem using GRUB on an LFS system! linuxpicaxe Linux From Scratch 1 03-07-2011 04:12 AM
lfs - old laptop - clfs or lfs tallmtt Linux From Scratch 2 12-23-2006 08:56 PM

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

All times are GMT -5. The time now is 01:52 AM.

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