Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
The gentoo system could not be started
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
cien
n00b
n00b


Joined: 05 Dec 2024
Posts: 7

PostPosted: Thu Jan 09, 2025 9:20 am    Post subject: The gentoo system could not be started Reply with quote

Hi, I just installed the gentoo system, but when I reboot, I found that I could not enter the system, only the following information was prompted. And I installed a binary kernel. Could anyone give me some advice? I will provide more information if necessary. Thanks sincerely.
Code:
Loading Linux 6.6.67-gentoo-dist...
Loading initial ramdisk...
error: you need to load the kernel first.
Press any key to continue...


Code:
(chroot) livecd / # fdisk -l
The backup GPT table is corrupt, but the primary appears OK, so that will be used.
Disk /dev/sda: 298.09 GiB, 320072933376 bytes, 625142448 sectors
Disk model: WDC WD3200AAJS-0
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 5B55776F-BB78-4864-BD25-071C7EA0E282

Device        Start       End   Sectors   Size Type
/dev/sda1      2048   2099199   2097152     1G EFI System
/dev/sda2   2099200  18876415  16777216     8G Linux swap
/dev/sda3  18876416 625141759 606265344 289.1G Linux filesystem


Disk /dev/sdb: 7.46 GiB, 8010194944 bytes, 15644912 sectors
Disk model: DT 101 G2
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x0073f0c9

Device     Boot Start      End  Sectors  Size Id Type
/dev/sdb1  *     2048 15644879 15642832  7.5G  c W95 FAT32 (LBA)


Disk /dev/loop0: 506.34 MiB, 530931712 bytes, 1036976 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Code:
(chroot) livecd / # grub-install --efi-directory=/efi
Installing for x86_64-efi platform.
Installation finished. No error reported.
(chroot) livecd / # cd /boot/grub/
(chroot) livecd /boot/grub # ls
fonts  grub.cfg  grubenv  locale  themes  x86_64-efi
(chroot) livecd /boot/grub # vim grub.cfg
(chroot) livecd /boot/grub # grub-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/kernel-6.6.67-gentoo-dist
Found initrd image: /boot/intel-uc.img /boot/amd-uc.img /boot/initramfs-6.6.67-gentoo-dist.img
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Adding boot menu entry for UEFI Firmware Settings ...
done
(chroot) livecd /boot/grub # exit
exit
livecd /mnt/gentoo # cd
livecd ~ # umount -l /mnt/gentoo/dev{/shm,/pts,}
livecd ~ # umount -R /mnt/gentoo
livecd ~ # reboot
livecd ~ #
Broadcast message from root@livecd (pts/0) (Thu Jan  9 17:08:53 2025):

The system is going down for reboot NOW!


Code:
livecd ~ # df -h
Filesystem      Size  Used Avail Use% Mounted on
devtmpfs         10M     0   10M   0% /dev
tmpfs           1.9G     0  1.9G   0% /dev/shm
tmpfs           1.9G  900K  1.9G   1% /run
/dev/sdb1       7.5G  600M  6.9G   8% /run/initramfs/live
/dev/loop0      507M  507M     0 100% /run/rootfsbase
LiveOS_rootfs   1.9G  900K  1.9G   1% /
efivarfs        128K   58K   66K  47% /sys/firmware/efi/efivars
/dev/sda3       284G  8.3G  261G   4% /mnt/gentoo
/dev/sda1      1022M  156K 1022M   1% /mnt/gentoo/efi
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Thu Jan 09, 2025 11:45 am    Post subject: Reply with quote

cien,

Code:
Loading Linux 6.6.67-gentoo-dist...
is some text of your making printed by grub, just before it loads the kernel.
Likewise
Code:
Loading initial ramdisk...
just before the initrd is loaded.

Two questions.

What is the output of
Code:
ls -l /boot
It should list all of you installed kernels and initrd/iniramfs files.
It may be /efi rather that /boot on your install.

What is the content of grub.cfg?
That will be in /boot/grub/... or /efi/grub/

It looks like loading the kernel failed for some reason.
_________________
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
Goverp
Advocate
Advocate


Joined: 07 Mar 2007
Posts: 2193

PostPosted: Thu Jan 09, 2025 11:55 am    Post subject: Reply with quote

IIUC that sequence of messages means that GRUB read and loaded the initramfs, but couldn't do so for the kernel One possible cause that Google found me is that you are using secure boot but something is wrong - so if you did, try turning it off in BIOS, and see if that gets you booting.
_________________
Greybeard
Back to top
View user's profile Send private message
cien
n00b
n00b


Joined: 05 Dec 2024
Posts: 7

PostPosted: Thu Jan 09, 2025 12:05 pm    Post subject: Reply with quote

NeddySeagoon wrote:
cien,

Code:
Loading Linux 6.6.67-gentoo-dist...
is some text of your making printed by grub, just before it loads the kernel.
Likewise
Code:
Loading initial ramdisk...
just before the initrd is loaded.

Two questions.

What is the output of
Code:
ls -l /boot
It should list all of you installed kernels and initrd/iniramfs files.
It may be /efi rather that /boot on your install.

What is the content of grub.cfg?
That will be in /boot/grub/... or /efi/grub/

It looks like loading the kernel failed for some reason.


Thank you for your reply. Here is some information that I hope will be useful.

Code:
(chroot) livecd / # ls -l /boot/
total 92668
-rw-r--r-- 1 root root   148480 Jan  9 22:26 amd-uc.img
drwxr-xr-x 6 root root     4096 Jan 10 01:07 grub
-rw------- 1 root root 58182960 Jan  9 22:26 initramfs-6.6.67-gentoo-dist.img
-rw-r--r-- 1 root root 18515968 Jan  9 22:26 intel-uc.img
-rw-r--r-- 1 root root 18033648 Jan  9 22:26 kernel-6.6.67-gentoo-dist
(chroot) livecd / # ls -l /efi/
total 4
drwxr-xr-x 3 root root 4096 Jan  9 23:49 EFI


Code:
(chroot) livecd / # cd boot/grub/
(chroot) livecd /boot/grub # ls
fonts  grub.cfg  grubenv  locale  themes  x86_64-efi
(chroot) livecd /boot/grub # cat grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="0"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_gpt
insmod ext2
set root='hd0,gpt3'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,g                                                            pt3 --hint-baremetal=ahci0,gpt3  ee196787-0c9f-43e4-a3fd-bb874f43eccf
else
  search --no-floppy --fs-uuid --set=root ee196787-0c9f-43e4-a3fd-bb874f43eccf
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=en_US
  insmod gettext
fi
terminal_output gfxterm
if [ x$feature_timeout_style = xy ] ; then
  set timeout_style=menu
  set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
  set timeout=5
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Gentoo GNU/Linux' --class gentoo --class gnu-linux --class gnu --cla                                                            ss os $menuentry_id_option 'gnulinux-simple-ee196787-0c9f-43e4-a3fd-bb874f43ecc                                                            f' {
        load_video
        insmod gzio
        insmod part_gpt
        insmod ext2
        set root='hd0,gpt3'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-e                                                            fi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  ee196787-0c9f-43e4-a3fd-bb874f43eccf
        else
          search --no-floppy --fs-uuid --set=root ee196787-0c9f-43e4-a3fd-bb874                                                            f43eccf
        fi
        echo    'Loading Linux 6.6.67-gentoo-dist ...'
        linux   /boot/kernel-6.6.67-gentoo-dist root=UUID=ee196787-0c9f-43e4-a3                                                            fd-bb874f43eccf ro
        echo    'Loading initial ramdisk ...'
        initrd  /boot/intel-uc.img /boot/amd-uc.img /boot/initramfs-6.6.67-gent                                                            oo-dist.img
}
submenu 'Advanced options for Gentoo GNU/Linux' $menuentry_id_option 'gnulinux-                                                            advanced-ee196787-0c9f-43e4-a3fd-bb874f43eccf' {
        menuentry 'Gentoo GNU/Linux, with Linux 6.6.67-gentoo-dist' --class gen                                                            too --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.6                                                            .67-gentoo-dist-advanced-ee196787-0c9f-43e4-a3fd-bb874f43eccf' {
                load_video
                insmod gzio
                insmod part_gpt
                insmod ext2
                set root='hd0,gpt3'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3                                                             --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  ee196787-0c9f-43e4-a3fd-bb874f                                                            43eccf
                else
                  search --no-floppy --fs-uuid --set=root ee196787-0c9f-43e4-a3                                                            fd-bb874f43eccf
                fi
                echo    'Loading Linux 6.6.67-gentoo-dist ...'
                linux   /boot/kernel-6.6.67-gentoo-dist root=UUID=ee196787-0c9f                                                            -43e4-a3fd-bb874f43eccf ro
                echo    'Loading initial ramdisk ...'
                initrd  /boot/intel-uc.img /boot/amd-uc.img /boot/initramfs-6.6                                                            .67-gentoo-dist.img
        }
        menuentry 'Gentoo GNU/Linux, with Linux 6.6.67-gentoo-dist (recovery mo                                                            de)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_opti                                                            on 'gnulinux-6.6.67-gentoo-dist-recovery-ee196787-0c9f-43e4-a3fd-bb874f43eccf'                                                             {
                load_video
                insmod gzio
                insmod part_gpt
                insmod ext2
                set root='hd0,gpt3'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3                                                             --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  ee196787-0c9f-43e4-a3fd-bb874f                                                            43eccf
                else
                  search --no-floppy --fs-uuid --set=root ee196787-0c9f-43e4-a3                                                            fd-bb874f43eccf
                fi
                echo    'Loading Linux 6.6.67-gentoo-dist ...'
                linux   /boot/kernel-6.6.67-gentoo-dist root=UUID=ee196787-0c9f                                                            -43e4-a3fd-bb874f43eccf ro single
                echo    'Loading initial ramdisk ...'
                initrd  /boot/intel-uc.img /boot/amd-uc.img /boot/initramfs-6.6                                                            .67-gentoo-dist.img
        }
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/25_bli ###
if [ "$grub_platform" = "efi" ]; then
  insmod bli
fi
### END /etc/grub.d/25_bli ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
if [ "$grub_platform" = "efi" ]; then
        menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware'                                                             {
                fwsetup
        }
fi
### END /etc/grub.d/30_uefi-firmware ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg
fi
### END /etc/grub.d/41_custom ###
(chroot) livecd /boot/grub #


To be honest, I don't know if it's because I'm confused with uefi or boot, I don't know where to identify them.
Back to top
View user's profile Send private message
cien
n00b
n00b


Joined: 05 Dec 2024
Posts: 7

PostPosted: Thu Jan 09, 2025 12:30 pm    Post subject: Reply with quote

Goverp wrote:
IIUC that sequence of messages means that GRUB read and loaded the initramfs, but couldn't do so for the kernel One possible cause that Google found me is that you are using secure boot but something is wrong - so if you did, try turning it off in BIOS, and see if that gets you booting.


Thanks for your reply, I checked and the secure boot is disable, legacy support is enable, and fast boot is disable.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Thu Jan 09, 2025 2:51 pm    Post subject: Reply with quote

cien,

That's all self consistent. Good.

What does
Code:
file /boot/kernel-6.6.67-gentoo-dist
say about your kernel?
_________________
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
cien
n00b
n00b


Joined: 05 Dec 2024
Posts: 7

PostPosted: Thu Jan 09, 2025 3:27 pm    Post subject: Reply with quote

NeddySeagoon wrote:
cien,

That's all self consistent. Good.

What does
Code:
file /boot/kernel-6.6.67-gentoo-dist
say about your kernel?


Code:
(chroot) livecd /boot # file kernel-6.6.67-gentoo-dist
kernel-6.6.67-gentoo-dist: Linux kernel x86 boot executable bzImage, version 6.6.67-gentoo-dist (root@devbox) #1 SMP PREEMPT_DYNAMIC Thu Dec 19 22:09:00 -00 2024, RO-rootFS, swap_dev 0X11, Normal VGA
(chroot) livecd /boot #
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Thu Jan 09, 2025 6:03 pm    Post subject: Reply with quote

cien,

That's one of the right answers.

So far everything looks correct.
_________________
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
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