Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Kernel complains about root partition
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
creaker
l33t
l33t


Joined: 14 Jul 2012
Posts: 651

PostPosted: Wed Jan 01, 2014 2:58 pm    Post subject: [Solved] Kernel complains about root partition Reply with quote

Hi!
I have two kernels, both built upon 3.10.17 sources. I built first kernel, checked if it bootable and saved it as kernel-old. After that I did some tweaks on .config file and built the second kernel (named kernel-3.10.17-gentoo). This kernel refuses to boot, I getting a message that the correct root= parameter should be added to command line. Grub menuentry:
Code:
menuentry 'Gentoo /dev/sda2' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-1143bfad-e50d-43e4-9c01-eb8b857bf091' {
        insmod part_msdos
        insmod ext2
        set root='hd0,msdos2'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  1143bfad-e50d-43e4-9c01-eb8b857bf091
        else
          search --no-floppy --fs-uuid --set=root 1143bfad-e50d-43e4-9c01-eb8b857bf091
        fi
        linux /boot/kernel-3.10.17-gentoo root=/dev/sda2
}

if I replacing "kernel-3.10.17-gentoo" in menu with "kernel-old", system boots fine.
I do not know which changes leads to producing unbootable kernel. I did these changes on .config file:
1. Removed support for initramfs
2. Enabled optimizing for minimal kernel size
3. Some processor related changes (NUMA, timers, cgroups)
Most likely kernel refuses to find root partition due to first two changes.
How do I fix this problem without enabling initramfs and disabling size optimization?
I tried to replace root=/dev/sda2 with root=<UUID> but it doesn't helped.
Also I tried real_root=/dev/sda2 and root=UUID=<UUID>.


Last edited by creaker on Wed Jan 01, 2014 6:05 pm; edited 1 time in total
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10261
Location: Somewhere over Atlanta, Georgia

PostPosted: Wed Jan 01, 2014 3:16 pm    Post subject: Reply with quote

It's likely that your root partition file system support is built as a module that was being loaded in the initramfs. Change it to be built in and you should be good to go (or at least on to the next issue :wink: ).

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
creaker
l33t
l33t


Joined: 14 Jul 2012
Posts: 651

PostPosted: Wed Jan 01, 2014 6:04 pm    Post subject: Reply with quote

Yes, it really i2c_i801 marked with <m> and built as module. I built it into kernel and now I've booted.
Many thanks
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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