Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Stuck at "Loading initial ramdisk"
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
da_weed
n00b
n00b


Joined: 06 Dec 2011
Posts: 14

PostPosted: Sun Jun 16, 2024 6:57 pm    Post subject: Stuck at "Loading initial ramdisk" Reply with quote

Hello.
I have been using Gentoo for longer then I can remember as my daily workhorse. My system became a little cluttered so I decided it's time for a fresh install. I've been trying to make it work for past 3 days with no success. I have started fresh three times already thinking that i might have missed something but ending up with the same problem. I thought there must be something wrong with kernel configuration and in the act of desperation i installed gentoo-kernel-bin but it will always hang at "Loading initial ramdisk" no matter what. For kernel installation I use "installkernel" with "dracut" use flag that generate initramfs.
When this happens my computer fans spin up, num_lock and caps_lock wont switch on on keyboard, Alt+Ctrl+Del won't work and Power button will switch off immediately. All logs are clear.
https://pastebin.com/ZNLE8VyP - kernel .config but because I used gentoo-kernel-bin I don't think that there is problem
https://pastebin.com/u9mVAvcm - fstab
https://pastebin.com/WpSwxnQM - grub.cfg
https://pastebin.com/Khjp6HRP - lspci
https://pastebin.com/JrumPsFv - make.conf
I got feeling that it's some silly little thing that I'm missing.

EDIT
More info.
grub.cfg was pasted into pastebin before i generated new grub.cfg so its missing. I kind of made my computer running again. If I leave either initrd /amd-uc.img or initrd /initramfs-6.6.30-gentoo.img in grub cfg on both kernels (gentoo-kernel-bin nad one configured by myself) the same problem of not responding computer persist. If I remove initrd line from grub.cfg altogether and replace UUID with PARTUUID for root partition then gentoo-kernel-bin prints out with kernel panic as it can't access NVME partition due to missing modules but kernel configured by myself which has NVME compiled into kernel on the other hand won't print any output (problem with framebuffer) but at least it will boot and i can access it through SSH. That makes things so much easier now instead of chrooting all the time. Now my original problem persist of not being able to use initram. I also add emerge --info and portage summary.log
https://pastebin.com/G2ZmMmip - emerge --info
https://pastebin.com/znUTxr0V - portage summary.log
Only odd thing that I remember was app-alternatives/cpio-0 had file collision of /bin/cpio, but it was merged successfully.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5109
Location: Bavaria

PostPosted: Sun Jun 16, 2024 11:48 pm    Post subject: Reply with quote

I guess this was your initial problem - missing framebuffer device/framebuffer console:
https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Manual_Configuring_Kernel_Version_6.6#Part_3_-_Must_Haves

This tells me you want to boot your kernel in a VM:
Code:
# CONFIG_DRM_RADEON is not set
# CONFIG_DRM_AMDGPU is not set
# CONFIG_DRM_NOUVEAU is not set
# CONFIG_DRM_I915 is not set
# CONFIG_DRM_VGEM is not set
# CONFIG_DRM_VKMS is not set
# CONFIG_DRM_VMWGFX is not set
# CONFIG_DRM_GMA500 is not set
# CONFIG_DRM_UDL is not set
# CONFIG_DRM_AST is not set
# CONFIG_DRM_MGAG200 is not set
# CONFIG_DRM_QXL is not set
CONFIG_DRM_VIRTIO_GPU=m

(I dont know when you did your lspci ... be aware there is/was no "kernel driver in use" for your nvidia)

For this I recommend to boot with our GentooLiveCD and do a "lspci -nnk".
(and some other queries: https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Manual_kernel_configuration#Before_you_start )
With these informations you should be able to identify every needed module, so kernel is able to access the harddisk (dont forget the FS ;-) )
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
da_weed
n00b
n00b


Joined: 06 Dec 2011
Posts: 14

PostPosted: Tue Jun 18, 2024 11:48 am    Post subject: Reply with quote

Hello. Thx for reply
pietinger wrote:
I guess this was your initial problem - missing framebuffer device/framebuffer console:
https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Manual_Configuring_Kernel_Version_6.6#Part_3_-_Must_Haves

The thing is it is not my problem. As i said if there are any initrd entries my computer wont boot at all (no sshd, no response from keyboard). In order for me to boot my system I have to remove initrd entries and replace root UUID with PARTUUID. I have now installed Gnome so at least i can use it somehow but the main issue persist. I believe it might have something to do with my system being no-multilib. Meanwhile I tried to use genkernel to generate initram with same result of non responsive system. I might make a new topic in "Kernel & Hardware" section.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Tue Jun 18, 2024 2:25 pm    Post subject: Reply with quote

[da_weed,

Code:
CONFIG_RD_GZIP=y
CONFIG_RD_BZIP2=y
# CONFIG_RD_LZMA is not set
# CONFIG_RD_XZ is not set
# CONFIG_RD_LZO is not set
# CONFIG_RD_LZ4 is not set
# CONFIG_RD_ZSTD is not set


Your initrd must be gzip or bzip2 compressed is your kernel cannot read it.
What does
Code:
file /path/to/init
d say?

Code:
# file /boot/EFI/EFI/SYSLINUX/initramfs
/boot/EFI/EFI/SYSLINUX/initramfs: ASCII cpio archive (SVR4 with no CRC)

You get cpio for free.
_________________
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
da_weed
n00b
n00b


Joined: 06 Dec 2011
Posts: 14

PostPosted: Tue Jun 18, 2024 3:00 pm    Post subject: Reply with quote

NeddySeagoon wrote:
[da_weed,
Your initrd must be gzip or bzip2 compressed is your kernel cannot read it.
What does
Code:
file /path/to/init
d say?

Hello NeddySeagoon
Code:

file /boot/initramfs-6.6.30-gentoo.img
/boot/initramfs-6.6.30-gentoo.img: ASCII cpio archive (SVR4 with no CRC)


With regards to CPIO I found this in my summary.log indicating file collision.
Code:

>>> Messages generated by process 5480 on 2024-06-16 16:38:05 BST for package app-alternatives/cpio-0:
 
ERROR: preinst
This package will overwrite one or more files that may belong to other
packages (see list below). You can use a command such as `portageq
owners / <filename>` to identify the installed package that owns a
file. If portageq reports that only one package owns a file then do
NOT file a bug report. A bug report is only useful if it identifies at
least two or more packages that are known to install the same file(s).
If a collision occurs and you can not explain where the file came from
then you should simply ignore the collision since there is not enough
information to determine if a real problem exists. Please do NOT file
a bug report at https://bugs.gentoo.org/ unless you report exactly
which two packages install the same file(s). See
https://wiki.gentoo.org/wiki/Knowledge_Base:Blockers for tips on how
to solve the problem. And once again, please do NOT file a bug report
unless you have completely understood the above message.
 
Detected file collision(s):
 
   /bin/cpio
 
Searching all installed packages for file collisions...
 
Press Ctrl-C to Stop
 
WARN: preinst
None of the installed packages claim the file(s).
 
Package 'app-alternatives/cpio-0' merged despite file collisions. If
necessary, refer to your elog messages for the whole content of the
above message.
 

Not sure if that might have something to do with it.
No matter what i try (dracut or genkernel) it will always freeze if I try to load initramfs.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Tue Jun 18, 2024 5:32 pm    Post subject: Reply with quote

da_weed,

Code:
Package 'app-alternatives/cpio-0' merged despite file collisions. If
necessary, refer to your elog messages for the whole content of the
above message.


That's fine.
Your /bin/cpio is now a symbolic link to whatever provides /bin/cpio on your system.
You have a choice of several.

app-alternatives/* are a little like virtual/* except virtuals don't install any code at all and app-alternatives provide a way to track symbolic links.
Code:
$ equery f app-alternatives/cpio-0
 * Searching for cpio0 in app-alternatives ...
 * Contents of app-alternatives/cpio-0:
/bin
/bin/cpio -> gcpio
/usr
/usr/share
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/cpio.1

_________________
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
da_weed
n00b
n00b


Joined: 06 Dec 2011
Posts: 14

PostPosted: Tue Jun 18, 2024 6:00 pm    Post subject: Reply with quote

NeddySeagoon wrote:
da_weed,

Code:
Package 'app-alternatives/cpio-0' merged despite file collisions. If
necessary, refer to your elog messages for the whole content of the
above message.


That's fine.
Your /bin/cpio is now a symbolic link to whatever provides /bin/cpio on your system.
You have a choice of several.

app-alternatives/* are a little like virtual/* except virtuals don't install any code at all and app-alternatives provide a way to track symbolic links.
Code:
$ equery f app-alternatives/cpio-0
 * Searching for cpio0 in app-alternatives ...
 * Contents of app-alternatives/cpio-0:
/bin
/bin/cpio -> gcpio
/usr
/usr/share
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/cpio.1


Right. But original question why initramfs freezes my system still stands.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5109
Location: Bavaria

PostPosted: Tue Jun 18, 2024 11:03 pm    Post subject: Reply with quote

May I ask why you need an initramfs if you do your own kernel configuration ? (just enable every necessary module statically, so kernel is able to reach its root partition)

Maybe you want examine your initramfs-file; you can do this with:
Code:
cpio --extract --make-directories --format=newc --no-absolute-filenames < initramfs.cpio

(If it is compressed you must unzip it of course before; e.g. gunzip initramfs.cpio.gz)

There exist a great Wiki article for it:
https://wiki.gentoo.org/wiki/Custom_Initramfs
above commands are taken from this chapter:
https://wiki.gentoo.org/wiki/Custom_Initramfs#Extracting_the_cpio_archive ...

... but maybe read BEFORE this: https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Initramfs_Overview

Maybe try also these kernel command line parms:
https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Kernel_Commandline_Parameter#Parameter:_earlycon.3Defifb_and_others
to inspect your kernel startup.
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
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