Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Grub: Unknown Filesystem and kernel panics
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
Gooberpatrol66
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jul 2014
Posts: 113

PostPosted: Sat Feb 06, 2016 12:12 am    Post subject: Grub: Unknown Filesystem and kernel panics Reply with quote

BTRFS/GRUB2/UEFI mode/core i5/hp elitebook

I have a gentoo installation that I'm trying to boot.

The kernel is a default genkernel except with btrfs support.

When I boot the hard drive, instead of the GRUB2 menu, I get a GRUB: Unknown Filesystem error.

For some reason, if I browse for the grub.efi file in /boot with my PC's BIOS, the GRUB2 menu will load successfully, and linux gets pretty far into the boot sequence, until the kernel panics.

I have tried recording for what leads to the kernel panic, but it happens too fast, the screen ghosts, and it's impossible to read.
Back to top
View user's profile Send private message
TigerJr
Guru
Guru


Joined: 19 Jun 2007
Posts: 515
Location: /dev/x0

PostPosted: Sat Feb 06, 2016 8:30 am    Post subject: Reply with quote

Maybe btrfs drivers with genkernel contained in intrd file?
_________________

Do not update portage without hotdog!

Xenogentooway?
Back to top
View user's profile Send private message
szatox
Veteran
Veteran


Joined: 27 Aug 2013
Posts: 1753

PostPosted: Sat Feb 06, 2016 9:15 am    Post subject: Reply with quote

I guess you have grub2, you were doing _something_ with it, and forgot to reinstall it afterwards so you have an inconsistent bootloader now.
Maybe a stage file is missing or damaged. Reinstalling it (grub-install or whatever it uses now, not emerge -1 grub :lol: ) should help with it.

However, since you have a more-or-less working EFI setup, do you still need that grub at all?
Back to top
View user's profile Send private message
Gooberpatrol66
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jul 2014
Posts: 113

PostPosted: Sun Feb 07, 2016 1:03 am    Post subject: Reply with quote

Alright, so apparently, my PC's EFI isn't complete and not supposed to be used or something, so I solved the grub issue by switching to BIOS mode and reinstalling grub. I'm still getting kernel panics though.

http://imgur.com/YX4QgOZ
Back to top
View user's profile Send private message
s4e8
Guru
Guru


Joined: 29 Jul 2006
Posts: 309

PostPosted: Sun Feb 07, 2016 2:29 am    Post subject: Reply with quote

The busybox inside initrd crashed, it contains invalid instructions for your CPU. You may compile it with wrong CFLAGS.
Gooberpatrol66 wrote:
Alright, so apparently, my PC's EFI isn't complete and not supposed to be used or something, so I solved the grub issue by switching to BIOS mode and reinstalling grub. I'm still getting kernel panics though.

http://imgur.com/YX4QgOZ
Back to top
View user's profile Send private message
Gooberpatrol66
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jul 2014
Posts: 113

PostPosted: Sun Feb 07, 2016 5:46 am    Post subject: Reply with quote

Quote:
The busybox inside initrd crashed, it contains invalid instructions for your CPU. You may compile it with wrong CFLAGS.


Reemerging busybox didn't fix it.

CFLAGS="-march=x86-64 -Os -pipe"

cpuflags are disabled.

busybox: ipv6 static systemd
Back to top
View user's profile Send private message
s4e8
Guru
Guru


Joined: 29 Jul 2006
Posts: 309

PostPosted: Sun Feb 07, 2016 6:13 am    Post subject: Reply with quote

genkernel build&cache it's own busybox. You can remove initrd and skip busybox, just build root disk controller & fs driver into kernel, and use root=/dev/sdX or root=PARTUUID=xxxxx.
Gooberpatrol66 wrote:
Quote:
The busybox inside initrd crashed, it contains invalid instructions for your CPU. You may compile it with wrong CFLAGS.


Reemerging busybox didn't fix it.

CFLAGS="-march=x86-64 -Os -pipe"

cpuflags are disabled.

busybox: ipv6 static systemd
Back to top
View user's profile Send private message
Gooberpatrol66
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jul 2014
Posts: 113

PostPosted: Sun Feb 07, 2016 9:44 pm    Post subject: Reply with quote

I fixed it with a rm /var/cache/genkernel/* and running genkernel again.

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