View previous topic :: View next topic |
Author |
Message |
da_weed n00b
Joined: 06 Dec 2011 Posts: 14
|
Posted: Sun Jun 16, 2024 6:57 pm Post subject: Stuck at "Loading initial ramdisk" |
|
|
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 |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5109 Location: Bavaria
|
|
Back to top |
|
|
da_weed n00b
Joined: 06 Dec 2011 Posts: 14
|
Posted: Tue Jun 18, 2024 11:48 am Post subject: |
|
|
Hello. Thx for reply
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54578 Location: 56N 3W
|
Posted: Tue Jun 18, 2024 2:25 pm Post subject: |
|
|
[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 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 |
|
|
da_weed n00b
Joined: 06 Dec 2011 Posts: 14
|
Posted: Tue Jun 18, 2024 3:00 pm Post subject: |
|
|
NeddySeagoon wrote: | [da_weed,
Your initrd must be gzip or bzip2 compressed is your kernel cannot read it.
What does 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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54578 Location: 56N 3W
|
Posted: Tue Jun 18, 2024 5:32 pm Post subject: |
|
|
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 |
|
|
da_weed n00b
Joined: 06 Dec 2011 Posts: 14
|
Posted: Tue Jun 18, 2024 6:00 pm Post subject: |
|
|
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 |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5109 Location: Bavaria
|
|
Back to top |
|
|
|