Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
grub2 not start src kernel (but found it)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
ryokashi
n00b
n00b


Joined: 15 Jun 2015
Posts: 16

PostPosted: Tue Jul 07, 2015 8:38 am    Post subject: grub2 not start src kernel (but found it) Reply with quote

dobar dan. sorry for taking your time by reading this. some weeks ago start to make minimal gentoo installation (dwm+feh+...) on laptop. but, beacause not mind hands had some trouble with it. for now dwm problem is unsolved, but today one more add.

emerge --ask =sys-kernel/gentoo-sources-3.12*
make && make modules_install && make install
grub2-mkconfig -o /boot/grub/grub.cfg

Generating grub.cfg ...
Found background: /boot/grub/default-splash.png
Found linux image: /boot/kernel-genkernel-x86_64-3.18.0-sabayon
Found initrd image: /boot/initramfs-genkernel-x86_64-3.18.0-sabayon
Found linux image: /boot/kernel-genkernel-x86_64-3.12.0-sabayon
Found initrd image: /boot/initramfs-genkernel-x86_64-3.12.0-sabayon
Found linux image: /boot/vmlinuz-3.10.81-gentoo
Found initrd image: /boot/initramfs-genkernel-x86_64-3.10.81-gentoo
logger: socket /dev/log: No such file or directory

so, problem=bootloader found src kernel 3.10.81, but do not have minds why when start loading- it is only 3.18 and 3.12 kernel listing. try
genkernel --install initramfs and genkernel set but no results. what may be done next...
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3846
Location: Austro Bavaria

PostPosted: Fri Jul 10, 2015 7:12 am    Post subject: Reply with quote

usually copy the kernel and initramfs to /boot and than alter the grub.cfg by hand

any scripts may work or may not work in my expierence.

also check if your /usr/src/linux symlink points to the right kernel directory first
Back to top
View user's profile Send private message
wraeth
Developer
Developer


Joined: 08 May 2007
Posts: 72
Location: Australia

PostPosted: Sat Jul 11, 2015 6:34 am    Post subject: Re: grub2 not start src kernel (but found it) Reply with quote

ryokashi wrote:
so, problem=bootloader found src kernel 3.10.81, but do not have minds why when start loading- it is only 3.18 and 3.12 kernel listing. try
genkernel --install initramfs and genkernel set but no results. what may be done next...

If you have a separate /boot partition, I would check that it is mounted when you install the kernel and run grub2-mkconfig.
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3846
Location: Austro Bavaria

PostPosted: Sat Jul 11, 2015 8:56 am    Post subject: Reply with quote

Quote:
sabayon
Belongs to not supported but whatever

Copy the boot files manually to /boot
and manually write / edit grub config, thats the best way.

those automatical script did not work yesterday on linux mint on my second box and screwed up my boot entry for gentoo. os-prober fround the partition but added nothing to grub2
Back to top
View user's profile Send private message
ryokashi
n00b
n00b


Joined: 15 Jun 2015
Posts: 16

PostPosted: Mon Jul 13, 2015 12:10 pm    Post subject: Reply with quote

tw04l124 wrote:
Quote:
sabayon
Belongs to not supported but whatever

Copy the boot files manually to /boot
and manually write / edit grub config, thats the best way.

those automatical script did not work yesterday on linux mint on my second box and screwed up my boot entry for gentoo. os-prober fround the partition but added nothing to grub2





so, i suggest, that i= a man with problems around. try to build gcc on stage3 archive- failed. and with kernels have problem too. how you say try to install even one more new 4.2 kernel by src-method:
(wget+tar+make menuconfig >> # make && make modules_install >> # mount /boot >> # cp arch/$ARCH/boot/bzImage /boot/my-favourite-kernelname_version >> # umount /boot )
)
now in boot folder (you see what i see- 4.2 is here):
config-3.10.81-gentoo
config-3.19.8-ck
config-4.2-rc1
initframs-genkernel-3.10.81-gentoo
kernel-genkernel-3.12-sabayon
system.map-genkernel-3.12-sabayon
vmlinuz-3.10.81
vmlinuz-4.2
vmlinuz-3.19.8-ck

and, as you say add to grub- totally trashes. there are 00_header, 10_linux, 20_linux_xen, 30_os-prober, 40_custom, 41_custom. do not totally know where and to which to write config (and what words need to write). and, almost forget, when loading laptop grub- there is only one work kernel- 3.12. 3.10 and 3.19 not work at all. and 4.2 kernel is not even list in grub *gone to read handbook*.
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3846
Location: Austro Bavaria

PostPosted: Mon Jul 13, 2015 2:45 pm    Post subject: Reply with quote

https://wiki.archlinux.org/index.php/GRUB

basic structure which i always use in this fashion
Quote:
menuentry "Other Linux" {
set root=(hd0,2)
linux /boot/vmlinuz (add other options here as required)
initrd /boot/initrd.img (if the other kernel uses/needs one)
}


pain in the ass to use uuid, but some prefer those and those ubuntu likes distros use all uuid in there autogenerated grub configs

Quote:
menuentry "Other Linux" {
# assuming that UUID is 763A-9CB6
search --set=root --fs-uuid 763A-9CB6

# search by label OTHER_LINUX (make sure that partition label is unambiguous)
#search --set=root --label OTHER_LINUX

linux /boot/vmlinuz (add other options here as required, for example: root=UUID=763A-9CB6)
initrd /boot/initrd.img (if the other kernel uses/needs one)
}


you can edit hte grub2 config on the file during booting when you hit: "e" key here on the grub2 from linux mint which I use ...

when you use lvm, mdadm, luks, its a bit different.

but the basics are the same

and you need to set some kernel parameters probably depending on your setup.

you can start creating it and try around, when there are questions post your section of the grub.cfg and ask.

any grub article applies on the net, as kernels / and booting should be the same afaik on any distro


Usually you add it to the Custom section and tell grub to update grub.cfg. Well that hardly worked for myself. because os_prober is buggy.

My way:

genenerate kernel as you did.
generate initramfs only with genkernel

write a new boot section by myself using guides in the fashion of

Quote:
menuentry "Other Linux" {
set root=(hd0,2)
linux /boot/vmlinuz (add other options here as required)
initrd /boot/initrd.img (if the other kernel uses/needs one)
}


set that section active

boot up and check out hte error messages,
than reboot and edit the config, these edits are not saved, they are just for trying around. hit "e" key in grub2 and edit it by hand. you can also use the autocomplete feature of grub2 (tab key)

and so on, i also take notes when I find something and than i chroot into my partition and edit the grub.cfg until it works.

it takes a while but thats the fastest approach.

you will see if the kernel gets loaded, if the kernel panics you usually need kernel modules or kernel parameters(my second box did not boot without those kernel parameters for example recently)

and a lot of reading on the web, about the issues, than you get a glue and can go on try until it works
Back to top
View user's profile Send private message
ryokashi
n00b
n00b


Joined: 15 Jun 2015
Posts: 16

PostPosted: Fri Jul 17, 2015 8:13 am    Post subject: Reply with quote

and a lot of reading on the web, about the issues, than you get a glue and can go on try until it works

by truth read a lot. but, eh, not start. try genkernel ramdisk. but nothing. try to change uuid from blkid. know, that problems is in my head/hand, so can mark this post as solved. try to resolve by myself. but, if interesting, work only first entery, in all others loadings most big problem is:
/ could not find lvm. could not mount root. could not find root block device in dev sda.
// mounting on new root failed. no such device.
on some forum:
For some reason mkinitcpio reports SUCCESS even if it doesn't find /sbin/blkid (provided by linux-util-ng) during the kernel build. This is probably a bug.
so, maybe a bug. sda1-boot, sda3-entire disk, sda2- swap. on another man reccomend make labels:
Then in grub you need to use root=/dev/disk/by-label/root for the root partition.
tmpfs /tmp tmpfs nodev,nosuid 0 0
LABEL=swap swap swap defaults 0 0
LABEL=root / ext4 defaults 0 1
LABEL=home /home ext4 defaults 0 1


}
menuentry '18' --class sabayon --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-3090b22e-ab3f-44ef-9b62-ddc84711790f' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
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 --hint='hd0,msdos1' cfb16cd3-3c98-495e-a60d-2ce222f8a446
else
search --no-floppy --fs-uuid --set=root cfb16cd3-3c98-495e-a60d-2ce222f8a446
fi
echo 'Loading Linux x86_64-3.18.0-sabayon ...'
linux /kernel-genkernel-x86_64-3.18.0-sabayon root=UUID=3090b22e-ab3f-44ef-9b62-ddc84711790f ro rootflags=subvol=root splash=silent,theme:sabayon dolvm init=/linuxrc resume=/dev/sda2 console=tty1 vconsole.keymap=us vconsole.font=latarcyrheb-sun16 quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-genkernel-x86_64-3.18.0-sabayon
}
menuentry 'aa' --class sabayon --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.10.81-gentoo-recovery-3090b22e-ab3f-44ef-9b62-ddc84711790f' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
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 --hint='hd0,msdos1' cfb16cd3-3c98-495e-a60d-2ce222f8a446
else
search --no-floppy --fs-uuid --set=root cfb16cd3-3c98-495e-a60d-2ce222f8a446
fi
echo 'Loading Linux 3.10.81-gentoo ...'
linux /vmlinuz-3.10.81-gentoo
root=UUID=3090b22e-ab3f-44ef-9b62-ddc84711790f ro rootflags=subvol=root
init_opts=single rootflags=subvol=root splash=verbose,theme:sabayon dolvm init=/linuxrc resume=/dev/sda2 console=tty1 vconsole.keymap=us vconsole.font=latarcyrheb-sun16 quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-genkernel-x86_64-3.10.81-gentoo
}
menuentry 'ab' --class sabayon --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.10.81-gentoo-recovery-3090b22e-ab3f-44ef-9b62-ddc84711790f' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
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 --hint='hd0,msdos1' cfb16cd3-3c98-495e-a60d-2ce222f8a446
else
search --no-floppy --fs-uuid --set=root cfb16cd3-3c98-495e-a60d-2ce222f8a446
fi
echo 'Loading Linux 3.10.81-gentoo ...'
linux /vmlinuz-3.10.81-gentoo
root=UUID=3090b22e-ab3f-44ef-9b62-ddc84711790f ro rootflags=subvol=root
init_opts=single rootflags=subvol=root splash=verbose,theme:sabayon dolvm init=/linuxrc resume=/dev/sda1 console=tty1 vconsole.keymap=us vconsole.font=latarcyrheb-sun16 quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-genkernel-x86_64-3.10.81-gentoo
}
menuentry 'ac' --class sabayon --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.10.81-gentoo-recovery-3090b22e-ab3f-44ef-9b62-ddc84711790f' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
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 --hint='hd0,msdos1' cfb16cd3-3c98-495e-a60d-2ce222f8a446
else
search --no-floppy --fs-uuid --set=root cfb16cd3-3c98-495e-a60d-2ce222f8a446
fi
echo 'Loading Linux 3.10.81-gentoo ...'
linux /vmlinuz-3.10.81-gentoo
root=UUID=3090b22e-ab3f-44ef-9b62-ddc84711790f ro rootflags=subvol=root
init_opts=single rootflags=subvol=root splash=verbose,theme:sabayon dolvm init=/linuxrc resume=/dev/sda3 console=tty1 vconsole.keymap=us vconsole.font=latarcyrheb-sun16 quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-genkernel-x86_64-3.10.81-gentoo
}
menuentry '18' --class sabayon --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-3090b22e-ab3f-44ef-9b62-ddc84711790f' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
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 --hint='hd0,msdos1' cfb16cd3-3c98-495e-a60d-2ce222f8a446
else
search --no-floppy --fs-uuid --set=root cfb16cd3-3c98-495e-a60d-2ce222f8a446
fi
echo 'Loading Linux x86_64-3.18.0-sabayon ...'
linux /kernel-genkernel-x86_64-3.18.0-sabayon root=UUID=3090b22e-ab3f-44ef-9b62-ddc84711790f ro rootflags=subvol=root splash=silent,theme:sabayon dolvm init=/linuxrc resume=/dev/sda2 console=tty1 vconsole.keymap=us vconsole.font=latarcyrheb-sun16 quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-genkernel-x86_64-3.18.0-sabayon
}
menuentry 'ad' --class sabayon --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-3090b22e-ab3f-44ef-9b62-ddc84711790f' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
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 --hint='hd0,msdos1' cfb16cd3-3c98-495e-a60d-2ce222f8a446
else
search --no-floppy --fs-uuid --set=root cfb16cd3-3c98-495e-a60d-2ce222f8a446
fi
echo 'Loading Linux x86_64-3.18.0-sabayon ...'
linux /kernel-genkernel-x86_64-3.10.81-gentoo root=UUID=3090b22e-ab3f-44ef-9b62-ddc84711790f ro rootflags=subvol=root splash=silent,theme:sabayon dolvm init=/linuxrc resume=/dev/sda2 console=tty1 vconsole.keymap=us vconsole.font=latarcyrheb-sun16 quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-genkernel-x86_64-3.10.81-gentoo
}
menuentry 'ae' --class sabayon --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-3090b22e-ab3f-44ef-9b62-ddc84711790f' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
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 --hint='hd0,msdos1' cfb16cd3-3c98-495e-a60d-2ce222f8a446
else
search --no-floppy --fs-uuid --set=root cfb16cd3-3c98-495e-a60d-2ce222f8a446
fi
echo 'Loading Linux x86_64-3.18.0-sabayon ...'
linux /kernel-genkernel-x86_64-3.10.81-gentoo root=UUID=3090b22e-ab3f-44ef-9b62-ddc84711790f ro rootflags=subvol=root splash=silent,theme:sabayon dolvm init=/linuxrc resume=/dev/sda1 console=tty1 vconsole.keymap=us vconsole.font=latarcyrheb-sun16 quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-genkernel-x86_64-3.10.81-gentoo
}
menuentry 'af' --class sabayon --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-3090b22e-ab3f-44ef-9b62-ddc84711790f' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
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 --hint='hd0,msdos1' cfb16cd3-3c98-495e-a60d-2ce222f8a446
else
search --no-floppy --fs-uuid --set=root cfb16cd3-3c98-495e-a60d-2ce222f8a446
fi
echo 'Loading Linux x86_64-3.18.0-sabayon ...'
linux /kernel-genkernel-x86_64-3.10.81-gentoo root=UUID=3090b22e-ab3f-44ef-9b62-ddc84711790f ro rootflags=subvol=root splash=silent,theme:sabayon dolvm init=/linuxrc resume=/dev/sda3 console=tty1 vconsole.keymap=us vconsole.font=latarcyrheb-sun16 quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-genkernel-x86_64-3.10.81-gentoo
}
menuentry 'ag' --class sabayon --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-3090b22e-ab3f-44ef-9b62-ddc84711790f' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
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 --hint='hd0,msdos1' cfb16cd3-3c98-495e-a60d-2ce222f8a446
else
search --no-floppy --fs-uuid --set=root cfb16cd3-3c98-495e-a60d-2ce222f8a446
fi
echo 'Loading Linux x86_64-3.18.0-sabayon ...'
linux /vmlinuz-4.2.0-rc1 root=UUID=3090b22e-ab3f-44ef-9b62-ddc84711790f ro rootflags=subvol=root splash=silent,theme:sabayon dolvm init=/linuxrc resume=/dev/sda2 console=tty1 vconsole.keymap=us vconsole.font=latarcyrheb-sun16 quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-genkernel-x86_64-3.10.81-gentoo
}
menuentry '1111111' --class sabayon --class gnu-linux --class gnu --class os $menuentry_id_option '1111111-3090b22e-ab3f-44ef-9b62-ddc84711790f' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,3'
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 --hint='hd0,msdos1' cfb16cd3-3c98-495e-a60d-2ce222f8a446
else
search --no-floppy --fs-uuid --set=root cfb16cd3-3c98-495e-a60d-2ce222f8a446
fi
echo 'Loading Linux x86_64-3.18.0-sabayon ...'
linux /kernel-genkernel-x86_64-3.10.81-gentoo root=UUID=3090b22e-ab3f-44ef-9b62-ddc84711790f ro single init_opts=single rootflags=subvol=root splash=verbose,theme:sabayon dolvm init=/linuxrc resume=/dev/sda2 console=tty1 vconsole.keymap=us vconsole.font=latarcyrheb-sun16 quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-genkernel-x86_64-3.10.81-gentoo
}
menuentry 'kernel-genkernel-x86_64-3.10.81-gentoo' --class sabayon --class gnu-linux --class gnu --class os $menuentry_id_option 'kernel-genkernel-x86_64-3.10.81-gentoo-advanced-3090b22e-ab3f-44ef-9b62-ddc84711790f' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
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 --hint='hd0,msdos1' cfb16cd3-3c98-495e-a60d-2ce222f8a446
else
search --no-floppy --fs-uuid --set=root cfb16cd3-3c98-495e-a60d-2ce222f8a446
fi
echo 'kernel-genkernel-x86_64-3.10.81-gentoo ...'
linux /kernel-genkernel-x86_64-3.10.81-gentoo root=UUID=3090b22e-ab3f-44ef-9b62-ddc84711790f ro rootflags=subvol=root splash=silent,theme:sabayon dolvm init=/linuxrc resume=/dev/sda2 console=tty1 vconsole.keymap=us vconsole.font=latarcyrheb-sun16 quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-genkernel-x86_64-3.10.81-gentoo
}
menuentry 'ak' --class sabayon --class gnu-linux --class gnu --class os $menuentry_id_option 'kernel-genkernel-x86_64-3.10.81-gentoo-advanced-cfb16cd3-3c98-495e-a60d-2ce222f8a446' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
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 --hint='hd0,msdos1' cfb16cd3-3c98-495e-a60d-2ce222f8a446
else
search --no-floppy --fs-uuid --set=root cfb16cd3-3c98-495e-a60d-2ce222f8a446
fi
echo 'kernel-genkernel-x86_64-3.10.81-gentoo ...'
linux /kernel-genkernel-x86_64-3.10.81-gentoo root=UUID=cfb16cd3-3c98-495e-a60d-2ce222f8a446 ro rootflags=subvol=root splash=silent,theme:sabayon dolvm init=/linuxrc resume=/dev/sda2 console=tty1 vconsole.keymap=us vconsole.font=latarcyrheb-sun16 quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-genkernel-x86_64-3.10.81-gentoo
}
menuentry 'al' --class sabayon --class gnu-linux --class gnu --class os $menuentry_id_option 'kernel-genkernel-x86_64-3.10.81-gentoo-advanced-cfb16cd3-3c98-495e-a60d-2ce222f8a446' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
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 --hint='hd0,msdos1' cfb16cd3-3c98-495e-a60d-2ce222f8a446
else
search --no-floppy --fs-uuid --set=root cfb16cd3-3c98-495e-a60d-2ce222f8a446
fi
echo 'kernel-genkernel-x86_64-3.10.81-gentoo ...'
linux /kernel-genkernel-x86_64-3.10.81-gentoo root=UUID=cfb16cd3-3c98-495e-a60d-2ce222f8a446 ro rootflags=subvol=root splash=silent,theme:sabayon dolvm init=/linuxrc resume=/dev/sda1 console=tty1 vconsole.keymap=us vconsole.font=latarcyrheb-sun16 quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-genkernel-x86_64-3.10.81-gentoo
}
menuentry 'at' $menuentry_id_option 'kernel-genkernel-x86_64-3.10.81-gentoo-advanced-cfb16cd3-3c98-495e-a60d-2ce222f8a446' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root=(hd0,2)
linux /kernel-genkernel-x86_64-3.10.81-gentoo root=UUID=cfb16cd3-3c98-495e-a60d-2ce222f8a446 ro rootflags=subvol=root
initrd /initramfs-genkernel-x86_64-3.10.81-gentoo
}
menuentry 'aq' $menuentry_id_option 'kernel-genkernel-x86_64-3.10.81-gentoo' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root=(hd0,2)
linux /kernel-genkernel-x86_64-3.10.81-gentoo
initrd /initramfs-genkernel-x86_64-3.10.81-gentoo
}
menuentry 'ax' --class sabayon --class gnu-linux --class gnu --class os $menuentry_id_option 'kernel-genkernel-x86_64-3.10.81-gentoo-advanced-cfb16cd3-3c98-495e-a60d-2ce222f8a446' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,2'
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 --hint='hd0,msdos1' cfb16cd3-3c98-495e-a60d-2ce222f8a446
else
search --no-floppy --fs-uuid --set=root cfb16cd3-3c98-495e-a60d-2ce222f8a446
fi
echo 'kernel-genkernel-x86_64-3.10.81-gentoo ...'
linux /kernel-genkernel-x86_64-3.10.81-gentoo root=UUID=cfb16cd3-3c98-495e-a60d-2ce222f8a446 ro rootflags=subvol=root splash=silent,theme:sabayon dolvm init=/linuxrc resume=/dev/sda1 console=tty1 vconsole.keymap=us vconsole.font=latarcyrheb-sun16 quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-genkernel-x86_64-3.10.81-gentoo
}
menuentry 'bb' $menuentry_id_option 'kernel-genkernel-x86_64-3.10.81-gentoo-advanced-cfb16cd3-3c98-495e-a60d-2ce222f8a446' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root=(hd0,1)
linux /kernel-genkernel-x86_64-3.10.81-gentoo root=UUID=cfb16cd3-3c98-495e-a60d-2ce222f8a446 ro rootflags=subvol=root
initrd /initramfs-genkernel-x86_64-3.10.81-gentoo
}
menuentry 'ba' $menuentry_id_option 'kernel-genkernel-x86_64-3.10.81-gentoo' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root=(hd0,3)
linux /kernel-genkernel-x86_64-3.10.81-gentoo
initrd /initramfs-genkernel-x86_64-3.10.81-gentoo
}
menuentry 'bx' --class sabayon --class gnu-linux --class gnu --class os $menuentry_id_option 'kernel-genkernel-x86_64-3.10.81-gentoo-advanced-cfb16cd3-3c98-495e-a60d-2ce222f8a446' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,2'
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 --hint='hd0,msdos1' cfb16cd3-3c98-495e-a60d-2ce222f8a446
else
search --no-floppy --fs-uuid --set=root cfb16cd3-3c98-495e-a60d-2ce222f8a446
fi
echo 'kernel-genkernel-x86_64-3.10.81-gentoo ...'
linux /kernel-genkernel-x86_64-3.10.81-gentoo root=UUID=cfb16cd3-3c98-495e-a60d-2ce222f8a446 ro rootflags=subvol=root splash=silent,theme:sabayon dolvm init=/linuxrc resume=/dev/sda1 console=tty1 vconsole.keymap=us vconsole.font=latarcyrheb-sun16 quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-genkernel-x86_64-3.10.81-gentoo
}
}
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3846
Location: Austro Bavaria

PostPosted: Fri Jul 17, 2015 3:28 pm    Post subject: Reply with quote

just my opinion

Quote:
menuentry 'ba' $menuentry_id_option 'kernel-genkernel-x86_64-3.10.81-gentoo' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root=(hd0,3)
linux /kernel-genkernel-x86_64-3.10.81-gentoo
initrd /initramfs-genkernel-x86_64-3.10.81-gentoo
}


should be

Quote:
menuentry 'ba' $menuentry_id_option 'kernel-genkernel-x86_64-3.10.81-gentoo' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root=(hd0,3)
linux /kernel-genkernel-x86_64-3.10.81-gentoo "kernel parmeters, look them up in grub.cfg or elsewhere"
initrd /initramfs-genkernel-x86_64-3.10.81-gentoo
}


e.g.

whatevetr if its class gentoo or gento, i think no one really cares but i left it as is

menuentry ' 3.18.16-gentoo_2015_06_29' --class gento --class gnu-linux --class gnu --class os {
linux /3.18.16-gentoo_2015_07_08 init=linuxrc ramdisk=8192 crypt_root=dev/mapper/sadfsadfa realroot=/dev/mapper/adsfasd dolvm net.ifnames=0
initrd /initramfs-genkernel-x86_64-3.5.3-gentoo_Sept_2012
}

as you can see i have parameters which i pass to the kernel, as


linux /3.18.16-gentoo_2015_07_08 init=linuxrc ramdisk=8192 crypt_root=dev/mapper/sadfsadfa realroot=/dev/mapper/adsfasd dolvm net.ifnames=0

linux means this line loads the kenrel

/3.18-gen.... is my kernel

init=linuxrc ramdisk=8192 crypt_root=dev/mapper/sadfsadfa realroot=/dev/mapper/adsfasd dolvm net.ifnames=0
are teh paremters which is your job to look up and adapt to your setup.

your example lacks those paremters.

I highly do not advise those if else search ... theme bla bla autogenerated grub configs. I doubt any non programmer really knows what is done or not.
and those replacement things

I would also not mix uuid with /dev/sdXX numberation. just stick to good old /dev/sdXX


you may just lack that line which is in the other configs

init_opts=single rootflags=subvol=root splash=verbose,theme:sabayon dolvm init=/linuxrc resume=/dev/sda3 console=tty1 vconsole.keymap=us

but is dirty in my approach as long i can remember it was
linux kernel parameters

and now it seems you can definte the parametesrs before somehow because it says "rootflags" ...

init_opts=single rootflags=subvol=root splash=verbose,theme:sabayon dolvm init=/linuxrc resume=/dev/sda3 console=tty1 vconsole.keymap=us

and looks like a mess
splash=verbose,theme:sabayon <) who cares for a beautiful background when he tries to get a box running in the first place. that background is gone when the user loads this window manager anyway...
vconsole.keymap=us <= who cares for keyboard layout when the user loads than the desctop environment anyway is nice but bad because the user will not know how to type the passwords / edit grub with the us layout when something goes wrong ... and the best is that the us keyboard layout is standard as long i used grub2 anyway. so when you have it or not, its the same

that or
init_opts=single rootflags=subvol=root dolvm init=/linuxrc resume=/dev/sda3

maybe this is far as enough
rootflags=subvol=root dolvm init=/linuxrc resume=/dev/sda3

init_opts=single no idea what this does ... maybe is this as we used to write .. linux kernel single in the past to load the single mode.
Back to top
View user's profile Send private message
ryokashi
n00b
n00b


Joined: 15 Jun 2015
Posts: 16

PostPosted: Fri Jul 31, 2015 9:59 am    Post subject: Reply with quote

[quote="tw04l124"]just my opinion


in any case- thank you very much for trying helping. now have not enough time for experiment, but near 20 configs not work. most of them write 2 things-
-Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block
-could not find root block device in dev/sda3. mounting /dev/sda3 on /newroot failed. lwm failed to run. cannot activate logical volumes.
me thinks, that problem in root- user is admin, but for some reason grub can not load sda partitions with kernel files. manually mount not work too { /dev/sda1 t auto }. only standart sabayon kernel load.

find this, bit hot try yet-
http://unix.stackexchange.com/questions/5032/trouble-getting-busybox-switch-root-to-work
https://forums.gentoo.org/viewtopic-t-1023650.html
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum