Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cannot boot gentoo-4.14.83
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
javeree
Guru
Guru


Joined: 29 Jan 2006
Posts: 356

PostPosted: Fri Mar 29, 2019 2:48 pm    Post subject: Cannot boot gentoo-4.14.83 Reply with quote

I have a PC that boots with grub and kernel 4.9.158.

I created a new kernel 4.14.83 using make oldconfig and accepting all the defaults.
I created a new grub entry by copying the grub entry that starts 4.9.158, and updated the version number only.

Yet, when I boot the grub line for 4.14.83, I get the grub message 'Loading Linux 4.14.83-gentoo ...', and then nothing, except
a non-blinking cursor on the next line. There is no indication whatsoever that the kernel ever starts. No more harddisk humming, nothing flashing, no network request to the dhcp server (so it is not just a missing console driver).
I have peered over the diff of the old and new kernel config, without finding anything that gives me a clue as to what is happening.
Some help please ?

/boot/grub/grub.cfg: http://dpaste.com/2A0GR6T
/boot/config-4.9.158-gentoo : http://dpaste.com/1NHZB5V
/boot/config-4.14.83-gentoo: http://dpaste.com/0FE2WXT


Code:


menuentry 'GNU/Linux, with Linux 4.9.158-gentoo' --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.9.140-gentoo-advanced-2336ffcf-66f1-4e39-a9e7-c1ea3e5afb15' {
        load_video
        set gfxpayload=keep
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='hd2,msdos5'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 --hint='hd2,msdos5'  2336ffcf-66f1-4e39-a9e7-c1ea3e5afb15
        else
          search --no-floppy --fs-uuid --set=root 2336ffcf-66f1-4e39-a9e7-c1ea3e5afb15
        fi
        echo    'Loading Linux 4.9.158-gentoo ...'
        linux   /boot/vmlinuz-4.9.158-gentoo root=/dev/sda5 ro
}

menuentry 'GNU/Linux 4.14.83 (not working)' --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.14.83-2336ffcf-66f1-4e39-a9e7-c1ea3e5afb15' {
        load_video
        set gfxpayload=keep
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='hd2,msdos5'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 --hint='hd2,msdos5'  2336ffcf-66f1-4e39-a9e7-c1ea3e5afb15
        else
          search --no-floppy --fs-uuid --set=root 2336ffcf-66f1-4e39-a9e7-c1ea3e5afb15
        fi
        echo    'Loading Linux 4.14.83-gentoo ...'
        linux   /boot/vmlinuz-4.14.83-gentoo root=/dev/sda5 ro
}
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5387

PostPosted: Sat Mar 30, 2019 5:23 am    Post subject: Reply with quote

I'd recommend do the following, burn latest SystemRescueCd on cd or usb and boot from it.
if it works, take the config, install latest kernel on your gentoo, use that config.
if after reboot your systems boots, then there is and issue with your current kernel config.
if it doesn't boot, then there is an issue with your bootloader.
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43551
Location: 56N 3W

PostPosted: Sat Mar 30, 2019 12:20 pm    Post subject: Reply with quote

javeree,

Lets start from the beginning.
Post the output of lspci
Put the new kernel .config onto a pastbin
That will show if the kernel suits your hardware.

Your /etc/fstab would be good too, so we can see your file systems. They need to be available too.

The Loading Linux 4.14.83-gentoo ..message comes from grub. Its the
Code:
echo   'Loading Linux 4.14.83-gentoo ...'
statement in grub.cfg
If there was an initrd, it would tell about that there too.

This all goes to show that grub is doing its thing and loading your kernel.
The first message from the kernel is
Code:
Decompressing Linux ...   
as you don't get that, its either drawing in on a console that is not being displayed or not drawing it at all.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
javeree
Guru
Guru


Joined: 29 Jan 2006
Posts: 356

PostPosted: Sun Mar 31, 2019 10:16 pm    Post subject: Reply with quote

lspci -nn: https://pastebin.com/3TXuJmBa

.config of booting kernel (gentoo-sources-4.9.158): https://pastebin.com/C7wpXjnS
.config of non-booting kernel (gentoo-sources-4.14.83) https://pastebin.com/yrBUJ58J
/etc/fstab: https://pastebin.com/xSeMpHvB
There is no initramfs
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43551
Location: 56N 3W

PostPosted: Sun Mar 31, 2019 11:01 pm    Post subject: Reply with quote

javeree,

Don't use /dev/disk/... in /etc/fstab they are all symlinks created by udev and there is a race between udev creating symlinks and rootfsck anh localmount trying to read them.
/etc/fstab cannot be read until root is mounted so UUIDs or LABELS are always safe.
Your boot is probably not getting that far, so that's a problem in waiting.

There is noting in your kernel that stands out as an issue.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
javeree
Guru
Guru


Joined: 29 Jan 2006
Posts: 356

PostPosted: Fri May 03, 2019 9:01 am    Post subject: Reply with quote

Some feedback.

I got the PC booted again:

1. Recompiled and reinstalled grub2
2. compiled genkernel 4.19.27-r1 (I prefer a self-built kernel, but on this PC it is not such a priority that I'll keep looking while it doesn't boot). Now it just goes on the 'TODO' list'
3. After step 2 the kernel started booting but still failed, complaining about apic, so I added 'noapic' to the kernel command line (never had to do that before)

This got the PC fully functional again, but with the new grub, the non-genkernel (also updated to 4.19.27-r1) still fails to boot. That will be for another day.
@Neddy,
I'll update my /etc/fstab
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