Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't boot, stuck on loading initramfs
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
Dr_b_2
n00b
n00b


Joined: 17 May 2020
Posts: 2

PostPosted: Sun May 17, 2020 1:32 am    Post subject: Can't boot, stuck on loading initramfs Reply with quote

Clean install of gentoo failing to boot, on multiple machines, and vms

Since it just hangs, with no error, its rather difficult to debug whats happening.

Seen some threads discussing newer kernels failing, but older kernels working, without resolution

Tried 5.4, 5.6, with and without initramfs, ext4 partitions, btrfs partitions for root. tried genkernel, genkernel-next, and no initframfs.

tried configuring allmodular kernel, and different newer kernel versions

tried setting up fstab multiple ways, including /dev/sdx format, UUID format, PARTUUID format, all with different types of filesystems for root, like ext2, ext4, btrfs

Using grub EFI method, following handbook with install method and grub config method, have appropriate elements in /etc/defaults/grub configured for btrfs when it was used, systemd when it was used, or not when it wasn't

in between tests, tried 4 partition layout, with small partition as suggested by handbook first, 3 partition layout with just EFI, swap and rootfs

Going to try 4.19 kernel now, as really dont know what the problem is at this point. Any suggestions are greatly appreciated
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7686
Location: Saint Amant, Acadiana

PostPosted: Sun May 17, 2020 2:03 am    Post subject: Reply with quote

Welcome to Gentoo Dr_b_2,

you sure it is actually not booting with black screen? Use Gentoo wgetpaste utility and post the link to your kernel configuration.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun May 17, 2020 8:11 am    Post subject: Reply with quote

Dr_b_2,

Welcome to Gentoo.

Lets stop the guessing and do some analysis.

We will need the output of
Code:
lspci -nnk
and as Jaglover says, your .config on a pastebin.

Pastebin your grub.cfg too.

We also need to know where your root filesystem is (drive and partition) and what filesystem type it is.
_________________
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
Dr_b_2
n00b
n00b


Joined: 17 May 2020
Posts: 2

PostPosted: Sun May 17, 2020 1:05 pm    Post subject: Reply with quote

Hi thanks for the info:

here is my install drive and partition:

Code:
/dev/sda1: UUID="5F77-678C" BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="boot" PARTUUID="52357dcf-e616-4181-a1b2-231496a54951"
/dev/sda2: UUID="3ca8eb3e-1740-457d-bf97-96912a0f539c" TYPE="swap" PARTLABEL="swap" PARTUUID="60b77f7a-1e01-4e52-939f-4effd51fc664"
/dev/sda3: UUID="f49d2fdf-2599-4534-87a3-1e5a13d9d28d" UUID_SUB="7f88f13e-0b25-44b7-82d7-33b049e8056a" BLOCK_SIZE="4096" TYPE="btrfs" PARTLABEL="rootfs" PARTUUID="7c20ee64-e094-4cc4-b092-fa8073d88dcd"

Kernel .config

https://pastebin.com/6A3r0MX5


Grub.cfg

https://pastebin.com/9rs7dr4u


/etc/fstab

Code:
PARTUUID=52357dcf-e616-4181-a1b2-231496a54951   /boot           vfat            noauto,noatime          0 2
PARTUUID=7c20ee64-e094-4cc4-b092-fa8073d88dcd   /               btrfs           noatime,compress=lzo    0 0
PARTUUID=60b77f7a-1e01-4e52-939f-4effd51fc664   none            swap            sw,pri=1                0 0

lspci -nnk

https://pastebin.com/AksA0ypH

[Moderator edit: added [code] tags to preserve output layout. -Hu]
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun May 17, 2020 1:53 pm    Post subject: Reply with quote

Dr_b_2,

Your grub.cfg requires the use of an initrd because it uses root=UUID=...
That mandates the use of the userspace mount command.

Without your
Code:
lspci -nnk
to be able to check your kernel against your hardware, the only change I would recommend is to turn on
Code:
# CONFIG_FB_SIMPLE is not set
in an attempt to get debug information.

I'm not a btrfs user. Gentoo offers enough excitement without playing with experimental filesystems, but I recall brrfs users using a subvolume for root.
That requires more on the kernel command line than your
Code:
linux   /vmlinuz-5.6.13-gentoo root=UUID=f49d2fdf-2599-4534-87a3-1e5a13d9d28d ro init=/usr/lib/systemd/systemd dobtrfs

_________________
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
superjaded
l33t
l33t


Joined: 05 Jul 2002
Posts: 788

PostPosted: Sun May 17, 2020 2:23 pm    Post subject: Reply with quote

subvolumes in btrfs are optional (or at least if no subvolumes are specified or created, a subvol of / is used), and grub should be able to pick up any subvolume settings when grub-mkconfig is called.

I'm using subvolumes for example and this is what my grub command line looks like (note the rootflags=subvol=gentoo which the subvolume I'm using for /):

Code:
linux   /vmlinuz-5.6.13-gentoo root=/dev/mapper/vghaibane-btrfs_root ro rootflags=subvol=gentoo dolvm rd.luks.uuid=luks-6116854e-6119-4425-aa94-97042a8fabd0 splash scsi_mod.use_blk_mq=Y quiet


But this is all I have in /etc/default/grub:

Code:

GRUB_CMDLINE_LINUX="dolvm rd.luks.uuid=luks-6116854e-6119-4425-aa94-97042a8fabd0 splash scsi_mod.use_blk_mq=Y quiet"


Dr_b_2,

Based on your lspci output, it looks like you are running Gentoo as a guest in VMware? If so, did you already reference this VMware article in the wiki? Included in that article are some kernel options that you'll likely want to ensure are enabled.

Of course, you did say you tried installing on bare metal and VMs, but of course there are going to be different requirements to be able to get a VM to boot properly compared to a system on bare metal.
Back to top
View user's profile Send private message
Dr_b_
n00b
n00b


Joined: 18 Jan 2004
Posts: 27

PostPosted: Sun May 17, 2020 2:33 pm    Post subject: Reply with quote

Hi,

thanks for the suggestions, i believe this is a kernel config problem, when i configured a 4.19.123 kernel, it was able to boot, at least getting past where it got stuck. I will focus my troubleshooting efforts now on differences between 4.19 and 5.x kernels that are failing.


on BTRFS, i use this exclusively now, and it is quite stable and reliable. On some systems i even have my boot partition configured with it, but without subvols. Also, this boot stuck issue appeared even when i tried multiple different filesystem types, with and without initramfs, for example, it didnt seem to matter if i was using btrfs or ext4, or ext3. Im doing something stupid, just need to go through the kernel config very thoroughly, but i am following the handbook to the letter. This also happens on bare metal systems and vms. The post regarding the Kernel no boots indicates to me im not the only one having this issue and was the key to isolating this to something with the newer kernels


RAID 1
Code:
Label: 'rootfs'  uuid: f6dfe261-cd49-45b6-aab2-5457728ba32f
        Total devices 2 FS bytes used 55.36GiB
        devid    1 size 475.69GiB used 58.03GiB path /dev/sda4
        devid    2 size 475.69GiB used 58.03GiB path /dev/sdb4

Label: 'boot'  uuid: 6fee9529-c09b-48eb-9e9c-18d9cf85179e
        Total devices 2 FS bytes used 122.29MiB
        devid    1 size 256.00MiB used 192.00MiB path /dev/sda2
        devid    2 size 256.00MiB used 128.00MiB path /dev/sdb2


[Moderator edit: added [code] tags to preserve output layout. -Hu]
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun May 17, 2020 3:02 pm    Post subject: Reply with quote

Dr_b_,

Code:
00:10.0 SCSI storage controller [0100]: Broadcom / LSI 53c1030 PCI-X Fusion-MPT Dual Ultra320 SCSI [1000:0030] (rev 01)
        Subsystem: VMware LSI Logic Parallel SCSI Controller [15ad:1976]
        Kernel driver in use: mptspi

is on its own menu in the kernel and is usually off, as it is in your kernel.
Code:
# CONFIG_FUSION is not set


If your root is on
Code:
02:01.0 SATA controller [0106]: VMware SATA AHCI controller [15ad:07e0]
        Subsystem: VMware SATA AHCI controller [15ad:07e0]
        Kernel driver in use: ahci
the you are good
Code:
CONFIG_SATA_AHCI=y


From the beginning
Code:
CONFIG_MSDOS_PARTITION=y
CONFIG_EFI_PARTITION=y
thats tho most likely partition tables you will meet on a PC.

Code:
# CONFIG_IDE is not set
CONFIG_SCSI=y
CONFIG_BLK_DEV_SD=y
CONFIG_BLK_DEV_SR=y
CONFIG_CHR_DEV_SG=y
All good.

Code:
CONFIG_VMWARE_PVSCSI=y
Thats interesting, are you intending to use the paravirtualised interface or the emulated hardware.
/dev/sda and friends are on emulated hardware.

Code:
CONFIG_SATA_AHCI=y
good.

Code:
CONFIG_BTRFS_FS=y
CONFIG_FAT_FS=y
CONFIG_MSDOS_FS=y
CONFIG_VFAT_FS=y
...
CONFIG_PROC_FS=y
CONFIG_SYSFS=y
CONFIG_TMPFS=y
CONFIG_TMPFS_XATTR=y
That will get you booted as long as root is on the right bit of emulated hardware.

Now to check your console
Code:
00:0f.0 VGA compatible controller [0300]: VMware SVGA II Adapter [15ad:0405]
        Subsystem: VMware SVGA II Adapter [15ad:0405]


Well, you don't have a
Code:
CONFIG_DRM_I915=y


# CONFIG_DRM_VMWGFX is not set looks like a problem.
The prompt is
Code:
DRM driver for VMware Virtual GPU


Rebuild your kernel with Simple Framebuffer and DRM_VMWGFX both enabled.
With your .config as posted, it will boot without an initrd provided you do not use root=UUID= in grub.cfg
_________________
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
Dr_b_
n00b
n00b


Joined: 18 Jan 2004
Posts: 27

PostPosted: Sun May 17, 2020 10:27 pm    Post subject: Reply with quote

had several issues with the kernel config that you pointed out, (graphics driver)

started out with clean kernel config with 4.19.123, then upgraded to 5.6.13, and it now works, put in the gfx elements that you recommended, and fixed the vm with respect to the pvscsi

Thanks!
Back to top
View user's profile Send private message
desultory
Administrator
Administrator


Joined: 04 Nov 2005
Posts: 9376

PostPosted: Tue May 19, 2020 3:12 am    Post subject: Reply with quote

NeddySeagoon wrote:
I'm not a btrfs user. Gentoo offers enough excitement without playing with experimental filesystems, but I recall brrfs users using a subvolume for root.
Just a couple of notes regarding btrfs: it has not been a particular source of excitement for a while, give it a shot some time, you might well be surprised to find it to be a welcome source of boredom; also it is not actually necessary to use subvolumes, they have their uses to be sure but you can treat btrfs like you would treat ext{2,3,4} and it remains polite enough to keep any snickering to itself while collecting and handing out your data without complaint.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Tue May 19, 2020 10:19 am    Post subject: Reply with quote

desultory,

Thanks for that info. I'll remind all our readers that
fortune-mod-all wrote:
You can't teach superannuated canines novel manoeuvrers
:)
_________________
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