Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Gentoo new install = Kernel Panic
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
Bourbon
n00b
n00b


Joined: 17 Mar 2018
Posts: 11
Location: Gaborone Botswana

PostPosted: Fri Nov 09, 2018 12:34 am    Post subject: [SOLVED] Gentoo new install = Kernel Panic Reply with quote

Hi All,

Gentoo is totally new for me, I have been trying to install it today using Gentoo DVD and Handbook64 on desktop machine with HDD (GPT) and UEFI environment in multiboot (/dev/sdb/ for Linux and /dev/sda for Windows, kernel compiled by hand).
Getting stuck at boot with GRUB on Gentoo I have been updating the native GRUB on Linux Mint, I get only "Kernel Panic". Don't know what is important for you to know, I write down a list of some details I remember:
- I have grub.cfg in /boot/grub (Linux Mint).
Another grub.cfg on /boot/efi/grub (Linux Mint too): this is the one generated by Gentoo: trying to make it bootable I have been copying the entries on the file 40_custom, after doing that, Gentoo's entries are on the file grub.cfg located on /boot/grub too.
- Into /boot/efi/EFI/gentoo I have the file grubx64.efi.
- I created fstab on Gentoo using UUID.
- Got problem at the end of the installation:
# cd = done
# umount -l /mnt/gentoo/dev{/shm,/pts,} = done
# umount -R /mnt/gentoo = can't do that. Sorry, I don't remember the error. "busy" or something like that, got stuck, everything frozen and no mouse pointer, turning off with the machine power button.
After putting Gentoo's menu entries on the file 40_custom I get "Kernel Panic" as in the image;
https://i.imgur.com/qs6I3dc.jpg
Added menu entries here:
Code:
menuentry 'Gentoo GNU/Linux' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-225cf5b2-800f-4bb8-bccc-a4757658a082' {
   load_video
   if [ "x$grub_platform" = xefi ]; then
      set gfxpayload=keep
   fi
   insmod gzio
   insmod part_gpt
   insmod fat
   set root='hd1,gpt1'
   if [ x$feature_platform_search_hint = xy ]; then
     search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt1 --hint-efi=hd1,gpt1 --hint-baremetal=ahci1,gpt1  172C-1BC3
   else
     search --no-floppy --fs-uuid --set=root 172C-1BC3
   fi
   echo   'Caricamento Linux 4.14.78-gentoo...'
   linux   /vmlinuz-4.14.78-gentoo root=/dev/sdb7 ro 
}
submenu 'Opzioni avanzate per Gentoo GNU/Linux' $menuentry_id_option 'gnulinux-advanced-225cf5b2-800f-4bb8-bccc-a4757658a082' {
   menuentry 'Gentoo GNU/Linux, con Linux 4.14.78-gentoo' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.14.78-gentoo-advanced-225cf5b2-800f-4bb8-bccc-a4757658a082' {
      load_video
      if [ "x$grub_platform" = xefi ]; then
         set gfxpayload=keep
      fi
      insmod gzio
      insmod part_gpt
      insmod fat
      set root='hd1,gpt1'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt1 --hint-efi=hd1,gpt1 --hint-baremetal=ahci1,gpt1  172C-1BC3
      else
        search --no-floppy --fs-uuid --set=root 172C-1BC3
      fi
      echo   'Caricamento Linux 4.14.78-gentoo...'
      linux   /vmlinuz-4.14.78-gentoo root=/dev/sdb7 ro 
   }
   menuentry 'Gentoo GNU/Linux, con Linux 4.14.78-gentoo (modalità ripristino)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.14.78-gentoo-recovery-225cf5b2-800f-4bb8-bccc-a4757658a082' {
      load_video
      if [ "x$grub_platform" = xefi ]; then
         set gfxpayload=keep
      fi
      insmod gzio
      insmod part_gpt
      insmod fat
      set root='hd1,gpt1'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt1 --hint-efi=hd1,gpt1 --hint-baremetal=ahci1,gpt1  172C-1BC3
      else
        search --no-floppy --fs-uuid --set=root 172C-1BC3
      fi
      echo   'Caricamento Linux 4.14.78-gentoo...'
      linux   /vmlinuz-4.14.78-gentoo root=/dev/sdb7 ro single
   }
}

- Can't mount Gentoo's partition from Linux Mint / Nemo Filemanager.

Please, do you know if possible to fix the issue or needing to remove Gentoo?

Thank you for reading, ciao


Last edited by Bourbon on Fri Nov 09, 2018 9:03 pm; edited 1 time in total
Back to top
View user's profile Send private message
Keruskerfuerst
Advocate
Advocate


Joined: 01 Feb 2006
Posts: 2266
Location: near Augsburg, Germany

PostPosted: Fri Nov 09, 2018 5:48 am    Post subject: Reply with quote

Please post
1. Partitioning
2. Kernel config

P.S.: the error shows a kernel panic (unable to mount root) caused by various kernel mis-configurations.
Back to top
View user's profile Send private message
Bourbon
n00b
n00b


Joined: 17 Mar 2018
Posts: 11
Location: Gaborone Botswana

PostPosted: Fri Nov 09, 2018 4:44 pm    Post subject: Reply with quote

Hi Keruskerfuerst,

Thank you for your kind concern, you can see /dev/sdb partioning here:
https://i.imgur.com/lfYX283.png
Gentoo's partitions are:
/dev/sdb1 fat32 boot/efi
/dev/sdb2 linux-swap
/dev/sdb7 / ext4

Please, tell me how can I show you Kernel config, do I get somewhere using Gentoo DVD mounting the partition where it is installed?

Edit
Trying to work through the Gentoo DVD Am unable to mount:
Code:
livecd gentoo # mount /dev/sdb7 /mnt/gentoo
mount: wrong fs type, bad option, bad superblock on /dev/sdb7,
       missing codepage or helper program, or other error

livecd gentoo #        dmesg | tail
[   24.119305] [drm] Initialized nouveau 1.3.1 20120801 for 0000:01:00.0 on minor 0
[   31.235374] warning: process `hwsetup' used the deprecated sysctl system call with 1.23.
[   43.659561] r8169 0000:07:00.0 eno1: link down
[   43.659569] r8169 0000:07:00.0 eno1: link down
[   45.185623] usb 1-1.1: reset high-speed USB device number 3 using ehci-pci
[   45.321447] r8169 0000:07:00.0 eno1: link up
[   46.999288] NET: Registered protocol family 10
[  762.513409] JBD2: Invalid checksum recovering block 3 in log
[  765.561526] JBD2: recovery failed
[  765.561531] EXT4-fs (sdb7): error loading journal
livecd gentoo #
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7536
Location: Goose Creek SC

PostPosted: Fri Nov 09, 2018 6:33 pm    Post subject: Reply with quote

All is explained
file system on /dev/sdb7 is messed up likely a result of your unlucky exit from the chroot
try booting mint or the install media, do not mount /dev/sdb7, run
Code:
fsck.ext4 -v /dev/sdb7
if answering yes becomes tedious and verbose annoying
Code:
fsck.ext4 -y /dev/sdb7

_________________
Defund the FCC.
Back to top
View user's profile Send private message
Bourbon
n00b
n00b


Joined: 17 Mar 2018
Posts: 11
Location: Gaborone Botswana

PostPosted: Fri Nov 09, 2018 8:20 pm    Post subject: Reply with quote

Hi DONAHUE, thank you for your kind concern, result here:
Code:
excursor@HP-Linux-Mint ~ $ sudo fsck.ext4 -v /dev/sdb7
[sudo] password di excursor:
e2fsck 1.42.13 (17-May-2015)
/dev/sdb7 has unsupported feature(s): metadata_csum
e2fsck: Utilizzare una versione più nuova di e2fsck.
excursor@HP-Linux-Mint ~ $

e2fsck: Utilizzare una versione più nuova di e2fsck. = needing new version of e2fsck

Edit
Same command from CLD (Gentoo Based)
Code:
guest@calculate ~ $ sudo fsck.ext4 -v /dev/sdb7
Password:
e2fsck 1.43.9 (8-Feb-2018)
/dev/sdb7: ripristino del journal
JBD2: Invalid checksum recovering block 3 in log
Journal checksum error found in /dev/sdb7
/dev/sdb7 non è stato smontato in maniera corretta, controllo forzato. # wrong unmountig, forced check
Passo 1: Controllo di inode, blocco(i) e dimensioni
Passo 2: Analisi della struttura delle directory
Passo 3: Controllo della connettività di directory
Pass 4: Controllo del numero dei riferimenti
Pass 5: Checking gruppo summary information
Numero dei blocco(i) liberi errato (18250103, contati=16980037).
Correggi<s>? sì # yes
Numero degli inode liberi errato (4677621, contati=4302354).
Correggi<s>? sì # yes

/dev/sdb7: ***** IL FILE SYSTEM È STATO MODIFICATO *****  # FILE SYSTEM HAS BEEN MODIFIED

      375278 inodes used (8.02%, out of 4677632)
          70 non-contiguous files (0.0%)
         168 non-contiguous directories (0.0%)
             # of inodes with ind/dind/tind blocks: 0/0/0
             Extent depth histogram: 363027/17
     1707963 blocks used (9.14%, out of 18688000)
           0 blocchi danneggiati  # 0 damaged blocks
           1 large file

      323433 file regolari # regular files
       39449 directory
         174 character device files
          97 block device files
           3 fifo
         222 collegamenti
       12113 collegamenti simbolici (11952 fast symbolic links)
           0 socket
------------
      375491 file
guest@calculate ~ $
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Fri Nov 09, 2018 8:42 pm    Post subject: Reply with quote

Bourbon,

That has changed the filesystem to make the metadata self consistent, so it should mount now.

Your unknown-block(8,23) tells the kernel can find /dev/sdb7 but not read what it finds there.
(8,23) is the kernel major and minor device numbers for /dev/sdb7.

A corrupt journal checksum can account for your error.

As your kernel loads, the boot loader has done its job, so that mush be right.
_________________
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
Bourbon
n00b
n00b


Joined: 17 Mar 2018
Posts: 11
Location: Gaborone Botswana

PostPosted: Fri Nov 09, 2018 9:02 pm    Post subject: Reply with quote

WOW! Booting now :D

Thank you Keruskerfuerst, DONAHUE, NeddySeagoon.

I get the shell now and can log in as root, # startx command not recognized.
Well that is because still only the core system installed I suppose.
I continue setting up my Gentoo now, after that wishing to discover if needing to keep Gentoo's entries on GRUB file 40_custom or can remove them.
Saw a couple of errors listed at booting but too fast can't read properly, will see later about them.

Thank you once again, I really appreciate your precious help, ciao
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Fri Nov 09, 2018 9:14 pm    Post subject: Reply with quote

Bourbon,

That's the hard bit done. Well done!
_________________
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
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 12951

PostPosted: Sat Nov 10, 2018 1:10 am    Post subject: Reply with quote

As a hint for the future: if you would prefer not to translate the messages from your local language to English, you can run the command with LC_ALL=C in its environment, so that it prints directly in English.
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