View previous topic :: View next topic |
Author |
Message |
az20110303 n00b
Joined: 21 Mar 2011 Posts: 30
|
Posted: Tue May 17, 2011 2:51 pm Post subject: troubles with kernel |
|
|
Hello everyone . So i decided to migrate to gentoo from ubuntu. i did some efforts before, but they all were half successfull.
i am installing gentoo on one physical drive with ubuntu. i compiled kernel 2.6.37-gentoo-r4 using configs from kernel-seeds.org. It seems i did not miss anything in config file, i checked it twice.
After kernel is compiled i
in ubuntu and gentoo entry appears in grub.cfg
here how it looks:
Code: | menuentry "Gentoo Base System release 1.12.14 (on /dev/sda5)" --class gnu-linux --class gnu --class os {
insmod part_gpt
insmod ext2
set root='(/dev/sda,gpt5)'
search --no-floppy --fs-uuid --set=root 6cace587-a44a-4bc2-87a8-dd72a3fe82ed
linux /boot/kernel-2.6.37-gentoo-r4 root=/dev/sda5
} |
when trying to boot this entry i get error:
http://oi53.tinypic.com/s688c7.jpg
i also tried to use change kernel options in grub.cfg
Code: | linux /boot/kernel-2.6.37-gentoo-r4 root=UUID=6cace587-a44a-4bc2-87a8-dd72a3fe82ed |
but result was the same
i am not sure is it error in my manually compiled kernel or some incompatibility with ubuntu grub2.
any help will be appreciated. |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
az20110303 n00b
Joined: 21 Mar 2011 Posts: 30
|
Posted: Wed May 18, 2011 5:54 am Post subject: |
|
|
Jaglover wrote: | Looks like missing root filesystem support in kernel. |
i included support of ext2,3,4 reiserfs into kernel. file system of my gentoo partition is ext4. partition table of hard disk is GPT. |
|
Back to top |
|
|
whiteghost Guru
Joined: 26 Jul 2009 Posts: 374 Location: north dakota
|
Posted: Wed May 18, 2011 6:19 am Post subject: |
|
|
please post your .config and lspci -kvm on pastebin _________________ www.informationclearinghouse.info
May you re-discover what the poor in 18th century France discovered, that rich people's heads can be mechanically separated from their shoulders if they refuse to listen to reason. |
|
Back to top |
|
|
az20110303 n00b
Joined: 21 Mar 2011 Posts: 30
|
|
Back to top |
|
|
whiteghost Guru
Joined: 26 Jul 2009 Posts: 374 Location: north dakota
|
Posted: Wed May 18, 2011 7:38 am Post subject: |
|
|
from your config
Code: | CONFIG_SATA_AHCI is not set |
set this to yes, hope it helps _________________ www.informationclearinghouse.info
May you re-discover what the poor in 18th century France discovered, that rich people's heads can be mechanically separated from their shoulders if they refuse to listen to reason. |
|
Back to top |
|
|
az20110303 n00b
Joined: 21 Mar 2011 Posts: 30
|
Posted: Wed May 18, 2011 10:47 am Post subject: |
|
|
whiteghost wrote: | from your config
Code: | CONFIG_SATA_AHCI is not set |
set this to yes, hope it helps |
Thanks for help, but still the same problem=( |
|
Back to top |
|
|
Randy Andy Veteran
Joined: 19 Jun 2007 Posts: 1152 Location: /dev/koelsch
|
Posted: Wed May 18, 2011 12:41 pm Post subject: |
|
|
Hi az20110303.
as i see in your .config, you have to set this option and the belonging for your kind of system, which submenue appears only after setting this to yes:
Code: |
# CONFIG_EFI is not set
|
you will see some help text for clarification your eventually upcoming questions.
AFAIK you ned this option, cause you're using a GPT partition scheme and GRUB2.
Much success,
Andy. _________________ If you want to see a Distro done right, compile it yourself! |
|
Back to top |
|
|
az20110303 n00b
Joined: 21 Mar 2011 Posts: 30
|
Posted: Mon Jun 20, 2011 5:40 am Post subject: |
|
|
Randy Andy wrote: |
Code: |
# CONFIG_EFI is not set
|
|
Thanks a lot, that helped! Though i did not set
Code: |
# CONFIG_EFI is not set
|
But i set
Code: |
CONFIG_EFI_PARTITION=y
|
This one was enouht for kernel to boot |
|
Back to top |
|
|
az20110303 n00b
Joined: 21 Mar 2011 Posts: 30
|
Posted: Tue Jun 21, 2011 2:07 am Post subject: |
|
|
There's one more trouble with ext4 on new kernels. To mount r/w ext4 root file system kernel should be compiled with CONFIG_LBDAF. May be it will help to somebody . |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 23075
|
Posted: Tue Jun 21, 2011 2:20 am Post subject: |
|
|
az20110303 wrote: | There's one more trouble with ext4 on new kernels. To mount r/w ext4 root file system kernel should be compiled with CONFIG_LBDAF. | This only applies to x86 kernels, not amd64 kernels. Additionally, depending on other factors, an x86 kernel can mount an ext4 filesystem without having LBDAF=y. I have an x86 system using ext4 for all its filesystems, and it works fine even though I did not set LBDAF. |
|
Back to top |
|
|
|