You are not logged in.

#26 2018-11-18 23:45:14

loqs
Member
Registered: 2014-03-06
Posts: 17,195

Re: [SOLVED]Kernel panic. No init found.

after chrooting in

stat sbin
ldd /usr/lib/systemd/systemd
pacman -Qkk filesystem

Offline

#27 2018-11-20 00:40:12

entodoays
Member
From: Malta
Registered: 2014-10-25
Posts: 118

Re: [SOLVED]Kernel panic. No init found.

I booted Arch with the fallback grub entry and ran the three commands. These are the results: http://sprunge.us/AT5o9a.
Are there any counter-indications for using Arch with the fallback initramfs?

Offline

#28 2018-11-20 01:48:37

loqs
Member
Registered: 2014-03-06
Posts: 17,195

Re: [SOLVED]Kernel panic. No init found.

I can see no issues from the outputs.

Offline

#29 2018-11-20 07:40:29

seth
Member
Registered: 2012-09-03
Posts: 49,981

Re: [SOLVED]Kernel panic. No init found.

To be sure: the fallback initramfs works?
In that case some crucial module doesn't make it into the initramfs.
Compare the initramfs (use lsinitcpio) to the loaded modules (lsmod). Encrypted FS? MMC?

Offline

#30 2018-11-20 18:17:33

entodoays
Member
From: Malta
Registered: 2014-10-25
Posts: 118

Re: [SOLVED]Kernel panic. No init found.

There is something wrong with init. Fallback is working, but the error message I get when I try to boot the normal Arch grub entry is "unable to mount root fs on unknown-block(0,0)."
Am I right in thinking that this is pointing to the first partition on the HDD? Arch is on /dev/sda8.
How do I correct this?

Offline

#31 2018-11-20 19:35:39

loqs
Member
Registered: 2014-03-06
Posts: 17,195

Re: [SOLVED]Kernel panic. No init found.

It is more likely seth is correct.  What modules are present only in the fallback initrd?
Edit:
This command from the chroot should list modules only present in the fallback initrd.

comm -23 <(lsinitcpio /boot/initramfs-linux-fallback.img | grep usr/lib/modules | sort) <(lsinitcpio /boot/initramfs-linux.img | grep usr/lib/modules | sort)

Last edited by loqs (2018-11-20 19:49:44)

Offline

#32 2018-11-22 20:22:57

entodoays
Member
From: Malta
Registered: 2014-10-25
Posts: 118

Re: [SOLVED]Kernel panic. No init found.

This is the result of lscpio for both the normal and fallback initramfs: http://sprunge.us/Rwz7mm
This the result of lsmod when running fallback: http://sprunge.us/zBZlRz
There are many more modules in the last list than in either of the other two.

Offline

#33 2018-11-22 21:09:44

loqs
Member
Registered: 2014-03-06
Posts: 17,195

Re: [SOLVED]Kernel panic. No init found.

List of modules only in fallback

3w-9xxx.ko
3w-sas.ko
3w-xxxx.ko
9p.ko
9pnet.ko
9pnet_virtio.ko
a100u2w.ko
aacraid.ko
adc-keys.ko
adp5520-keys.ko
adp5588-keys.ko
adp5589-keys.ko
advansys.ko
aesni-intel.ko
aes-x86_64.ko
affs.ko
agpgart.ko
aha152x_cs.ko
ahci_ceva.ko
ahci_platform.ko
ahci_qoriq.ko
aic79xx.ko
aic7xxx.ko
aic94xx.ko
altera_ps2.ko
am53c974.ko
aoe.ko
arc4.ko
arcmsr.ko
arc_ps2.ko
async_pq.ko
async_tx.ko
async_xor.ko
ata_generic.ko
ata_piix.ko
atp870u.ko
auth_rpcgss.ko
bcma-hcd.ko
bcma.ko
bcm-keypad.ko
be2iscsi.ko
befs.ko
bfa.ko
blocklayoutdriver.ko
bnx2fc.ko
bnx2i.ko
brd.ko
btrfs.ko
BusLogic.ko
cachefiles.ko
caif_virtio.ko
cap11xx.ko
cb710.ko
cb710-mmc.ko
ccm.ko
ceph.ko
ch.ko
cifs.ko
cmac.ko
cnic.ko
coda.ko
cramfs.ko
crc32_generic.ko
crc32-pclmul.ko
crc7.ko
crc8.ko
crc-itu-t.ko
cros_ec_keyb.ko
cryptd.ko
crypto_engine.ko
cryptoloop.ko
crypto_simd.ko
csiostor.ko
ct82c710.ko
cuse.ko
cxgb3i.ko
cxgb3.ko
cxgb4i.ko
cxgb4.ko
DAC960.ko
dc395x.ko
des_generic.ko
dlink-dir685-touchkeys.ko
dlm.ko
dmx3191d.ko
dns_resolver.ko
dpt_i2o.ko
drbd.ko
drm_kms_helper.ko
drm.ko
ecryptfs.ko
eeprom_93cx6.ko
ehci-platform.ko
enclosure.ko
encrypted-keys.ko
esas2r.ko
esp_scsi.ko
exofs.ko
f2fs.ko
failover.ko
fat.ko
fb_sys_fops.ko
fcoe.ko
ff-memless.ko
firewire-core.ko
firewire-net.ko
firewire-ohci.ko
firewire-sbp2.ko
floppy.ko
fnic.ko
fotg210-hcd.ko
fscache.ko
ftdi-elan.ko
fuse.ko
gdth.ko
gfs2.ko
glue_helper.ko
gpio_keys.ko
gpio_keys_polled.ko
grace.ko
hfs.ko
hfsplus.ko
hid-a4tech.ko
hid-accutouch.ko
hid-alps.ko
hid-appleir.ko
hid-apple.ko
hid-asus.ko
hid-aureal.ko
hid-axff.ko
hid-belkin.ko
hid-betopff.ko
hid-cherry.ko
hid-chicony.ko
hid-cmedia.ko
hid-corsair.ko
hid-cp2112.ko
hid-cypress.ko
hid-dr.ko
hid-elan.ko
hid-elecom.ko
hid-elo.ko
hid-emsff.ko
hid-ezkey.ko
hid-gaff.ko
hid-gembird.ko
hid-generic.ko
hid-gfrm.ko
hid-google-hammer.ko
hid-gt683r.ko
hid-gyration.ko
hid-holtekff.ko
hid-holtek-kbd.ko
hid-holtek-mouse.ko
hid-hyperv.ko
hid-icade.ko
hid-ite.ko
hid-jabra.ko
hid-kensington.ko
hid-keytouch.ko
hid-kye.ko
hid-lcpower.ko
hid-led.ko
hid-lenovo.ko
hid-logitech-dj.ko
hid-logitech-hidpp.ko
hid-logitech.ko
hid-magicmouse.ko
hid-mf.ko
hid-microsoft.ko
hid-monterey.ko
hid-multitouch.ko
hid-nti.ko
hid-ntrig.ko
hid-ortek.ko
hid-penmount.ko
hid-petalynx.ko
hid-picolcd.ko
hid-plantronics.ko
hid-pl.ko
hid-primax.ko
hid-prodikeys.ko
hid-redragon.ko
hid-retrode.ko
hid-rmi.ko
hid-roccat-arvo.ko
hid-roccat-common.ko
hid-roccat-isku.ko
hid-roccat.ko
hid-roccat-kone.ko
hid-roccat-koneplus.ko
hid-roccat-konepure.ko
hid-roccat-kovaplus.ko
hid-roccat-lua.ko
hid-roccat-pyra.ko
hid-roccat-ryos.ko
hid-roccat-savu.ko
hid-saitek.ko
hid-samsung.ko
hid-sensor-hub.ko
hid-sjoy.ko
hid-sony.ko
hid-speedlink.ko
hid-steam.ko
hid-steelseries.ko
hid-sunplus.ko
hid-tivo.ko
hid-tmff.ko
hid-topseed.ko
hid-twinhan.ko
hid-uclogic.ko
hid-udraw-ps3.ko
hid-waltop.ko
hid-wiimote.ko
hid-xinmo.ko
hid-zpff.ko
hid-zydacron.ko
hpsa.ko
hptiop.ko
hv_storvsc.ko
hv_vmbus.ko
hwa-hc.ko
hyperv-keyboard.ko
ib_cm.ko
ib_core.ko
imm.ko
industrialio.ko
initio.ko
input-polldev.ko
ipr.ko
ips.ko
isci.ko
iscsi_boot_sysfs.ko
iscsi_tcp.ko
isofs.ko
isp116x-hcd.ko
iw_cm.ko
jffs2.ko
jfs.ko
kafs.ko
lcd.ko
libahci_platform.ko
libceph.ko
libcrc32c.ko
libcxgbi.ko
libcxgb.ko
libfc.ko
libfcoe.ko
libiscsi.ko
libiscsi_tcp.ko
libore.ko
libosd.ko
libsas.ko
lkkbd.ko
lm8323.ko
lm8333.ko
lockd.ko
loop.ko
lpfc.ko
lru_cache.ko
matrix-keymap.ko
matrix_keypad.ko
max3421-hcd.ko
max7359_keypad.ko
mcryptd.ko
mcs_touchkey.ko
md4.ko
mdio.ko
media.ko
megaraid.ko
megaraid_mbox.ko
megaraid_mm.ko
megaraid_sas.ko
memstick.ko
minix.ko
mmc35240.ko
mmc_spi.ko
mmc_test.ko
mpr121_touchkey.ko
mpt3sas.ko
mptbase.ko
mptctl.ko
mptfc.ko
mptlan.ko
mptsas.ko
mptscsih.ko
mptspi.ko
msdos.ko
mtd.ko
mtip32xx.ko
mtk-pmic-keys.ko
mtk-sd.ko
mvsas.ko
mvumi.ko
nbd.ko
net_failover.ko
newtonkbd.ko
nfs_acl.ko
nfsd.ko
nfs.ko
nfs_layout_flexfiles.ko
nfs_layout_nfsv41_files.ko
nfsv2.ko
nfsv3.ko
nfsv4.ko
nilfs2.ko
nls_cp437.ko
nls_iso8859-1.ko
nosy.ko
ntfs.ko
nvme-fabrics.ko
nvme-fc.ko
nvme-fcloop.ko
nvme-loop.ko
nvme-rdma.ko
nvmet-fc.ko
nvmet.ko
nvmet-rdma.ko
ocfs2_dlmfs.ko
ocfs2_dlm.ko
ocfs2.ko
ocfs2_nodemanager.ko
ocfs2_stackglue.ko
ocfs2_stack_o2cb.ko
ocfs2_stack_user.ko
of_mmc_spi.ko
ohci-hcd.ko
ohci-pci.ko
ohci-platform.ko
omap4-keypad.ko
omfs.ko
opencores-kbd.ko
orangefs.ko
osd.ko
osst.ko
overlay.ko
oxu210hp-hcd.ko
padlock-aes.ko
parkbd.ko
parport.ko
pata_acpi.ko
pata_ali.ko
pata_amd.ko
pata_artop.ko
pata_atiixp.ko
pata_atp867x.ko
pata_cmd640.ko
pata_cmd64x.ko
pata_cypress.ko
pata_efar.ko
pata_hpt366.ko
pata_hpt37x.ko
pata_hpt3x2n.ko
pata_hpt3x3.ko
pata_it8213.ko
pata_it821x.ko
pata_jmicron.ko
pata_legacy.ko
pata_marvell.ko
pata_mpiix.ko
pata_netcell.ko
pata_ninja32.ko
pata_ns87410.ko
pata_ns87415.ko
pata_oldpiix.ko
pata_optidma.ko
pata_opti.ko
pata_pcmcia.ko
pata_pdc2027x.ko
pata_pdc202xx_old.ko
pata_piccolo.ko
pata_radisys.ko
pata_rdc.ko
pata_rz1000.ko
pata_sch.ko
pata_serverworks.ko
pata_sil680.ko
pata_sis.ko
pata_sl82c105.ko
pata_triflex.ko
pata_via.ko
pcips2.ko
pcmcia_core.ko
pcmcia.ko
pdc_adma.ko
pktcdvd.ko
pm80xx.ko
pmcraid.ko
ppa.ko
ps2-gpio.ko
ps2mult.ko
pwrseq_emmc.ko
pwrseq_sd8787.ko
pwrseq_simple.ko
qedf.ko
qedi.ko
qed.ko
qla1280.ko
qla2xxx.ko
qla4xxx.ko
qlogic_cs.ko
qlogicfas408.ko
qt1070.ko
qt2160.ko
quota_tree.ko
quota_v1.ko
quota_v2.ko
r8a66597-hcd.ko
raid6_pq.ko
raid_class.ko
rbd.ko
rc-core.ko
rdma_cm.ko
reiserfs.ko
rmi_core.ko
rng-core.ko
romfs.ko
rpmsg_core.ko
rsxx.ko
rtsx_pci.ko
rtsx_pci_sdmmc.ko
rtsx_usb.ko
rtsx_usb_sdmmc.ko
rxrpc.ko
samsung-keypad.ko
sata_dwc_460ex.ko
sata_inic162x.ko
sata_mv.ko
sata_nv.ko
sata_promise.ko
sata_qstor.ko
sata_sil24.ko
sata_sil.ko
sata_sis.ko
sata_svw.ko
sata_sx4.ko
sata_uli.ko
sata_via.ko
sata_vsc.ko
scsi_debug.ko
scsi_dh_alua.ko
scsi_dh_emc.ko
scsi_dh_hp_sw.ko
scsi_dh_rdac.ko
scsi_transport_fc.ko
scsi_transport_iscsi.ko
scsi_transport_sas.ko
scsi_transport_spi.ko
scsi_transport_srp.ko
sdhci-acpi.ko
sdhci-cadence.ko
sdhci_f_sdh30.ko
sdhci-of-arasan.ko
sdhci-of-at91.ko
sdhci-omap.ko
sdhci-pltfm.ko
sdhci-xenon-driver.ko
sdio_uart.ko
sdricoh_cs.ko
serport.ko
ses.ko
sg.ko
sha256-mb.ko
sha256-ssse3.ko
sha512_generic.ko
sha512-mb.ko
sha512-ssse3.ko
skd.ko
sl811-hcd.ko
smartpqi.ko
smsmdtv.ko
smssdio.ko
snd.ko
snd-rawmidi.ko
snd-seq-device.ko
snic.ko
soundcore.ko
squashfs.ko
ssb-hcd.ko
ssb.ko
stex.ko
st.ko
stmpe-keypad.ko
stowaway.ko
sunkbd.ko
sunrpc.ko
sx8.ko
sym53c500_cs.ko
sym53c8xx.ko
syscopyarea.ko
sysfillrect.ko
sysimgblt.ko
target_core_mod.ko
tc3589x-keypad.ko
tca6416-keypad.ko
tca8418_keypad.ko
tcm_qla2xxx.ko
tifm_7xx1.ko
tifm_core.ko
tifm_ms.ko
tifm_sd.ko
tm2-touchkey.ko
toshsd.ko
tpm.ko
trusted.ko
ttm.ko
twl4030_keypad.ko
u132-hcd.ko
uas.ko
ubifs.ko
ubi.ko
udf.ko
ufshcd-core.ko
ufshcd-pci.ko
ufshcd-pltfrm.ko
ufs.ko
uhci-hcd.ko
uio.ko
umc.ko
umem.ko
ums-alauda.ko
ums-cypress.ko
ums-datafab.ko
ums-eneub6250.ko
ums-freecom.ko
ums-isd200.ko
ums-jumpshot.ko
ums-karma.ko
ums-onetouch.ko
ums-realtek.ko
ums-sddr09.ko
ums-sddr55.ko
ums-usbat.ko
usdhi6rol0.ko
userio.ko
ushc.ko
uwb.ko
vfat.ko
via-sdmmc.ko
videobuf2-common.ko
videobuf2-memops.ko
videobuf2-v4l2.ko
videobuf2-vmalloc.ko
videodev.ko
virtio_balloon.ko
virtio_blk.ko
virtio_console.ko
virtio_crypto.ko
virtio-gpu.ko
virtio_input.ko
virtio.ko
virtio_mmio.ko
virtio_net.ko
virtio_pci.ko
virtio_ring.ko
virtio-rng.ko
virtio_rpmsg_bus.ko
virtio_scsi.ko
vmw_pvscsi.ko
vmw_vsock_virtio_transport_common.ko
vmw_vsock_virtio_transport.ko
vringh.ko
vsock.ko
vub300.ko
wbsd.ko
wd719x.ko
whci-hcd.ko
whci.ko
wusbcore.ko
wusb-wa.ko
xen-blkback.ko
xen-blkfront.ko
xen-scsifront.ko
xfs.ko
xhci-plat-hcd.ko
xor.ko
xtkbd.ko
xxhash.ko
zram.ko
zstd_compress.ko
zstd_decompress.ko

list of loaded modules from fallback

ac
aesni_intel
aes_x86_64
agpgart
ahci
arc4
ath
ath3k
ath9k
ath9k_common
ath9k_hw
atkbd
battery
bluetooth
bnep
btbcm
btintel
btrtl
btusb
cdrom
cfg80211
coretemp
cqhci
crc16
crc32c_generic
crc32c_intel
crc32_pclmul
crct10dif_pclmul
cryptd
crypto_simd
crypto_user
drm
drm_kms_helper
e1000e
ecdh_generic
ehci_hcd
ehci_pci
evdev
ext4
fb_sys_fops
fscrypto
fuse
ghash_clmulni_intel
glue_helper
gpio_ich
i2c_algo_bit
i8042
i915
industrialio
input_leds
intel_cstate
intel_gtt
intel_powerclamp
intel_rapl
intel_rapl_perf
intel_uncore
ip_tables
irqbypass
iTCO_vendor_support
iTCO_wdt
jbd2
joydev
kvm
kvm_intel
led_class
libahci
libata
libps2
lpc_ich
mac80211
mac_hid
mbcache
media
mei
mei_me
mmc_core
mousedev
pcc_cpufreq
pcspkr
psmouse
rfcomm
rfkill
rtc_cmos
scsi_mod
sdhci
sdhci_pci
sd_mod
serio
serio_raw
snd
snd_hda_codec
snd_hda_codec_generic
snd_hda_codec_hdmi
snd_hda_codec_realtek
snd_hda_core
snd_hda_intel
snd_hwdep
snd_pcm
snd_timer
soundcore
sparse_keymap
sr_mod
syscopyarea
sysfillrect
sysimgblt
toshiba_acpi
toshiba_bluetooth
toshiba_haps
usb_common
usbcore
uvcvideo
videobuf2_common
videobuf2_memops
videobuf2_v4l2
videobuf2_vmalloc
videodev
wmi
x86_pkg_temp_thermal
xhci_hcd
xhci_pci
x_tables

Common overlap

agpgart
arc4
cryptd
crypto_simd
drm
drm_kms_helper
fb_sys_fops
fuse
glue_helper
industrialio
media
snd
soundcore
syscopyarea
sysfillrect
sysimgblt
videodev

If you add the above to modules in mkinicpio.conf and regenerate the initrd does that work?

Offline

#34 2018-11-23 18:25:37

entodoays
Member
From: Malta
Registered: 2014-10-25
Posts: 118

Re: [SOLVED]Kernel panic. No init found.

So I've done some experiments. I installed linux-lts, booted Ubuntu (where grub is installed), updated grub and rebooted, but there was no lts entry in grub. It seems that grub updater looks for information in the grub.cfg in the boot folder in the Arch partition.

So, I renamed the grub folder in /boot in Arch and in Ubuntu updated grub. I got two entries for Arch, one for each kernel without the fallback entries and both worked. I got an error on boot about root being mounted as read-only but this is not a major issue. This seems to suggest it's not a problem with initramfs.

Thirdly, I tried in Arch to uninstall grub with pacman -Rn grub to get rid of configuration files, reinstalled it, regenerated grub.cfg in Arch with grub-mkconfig, rebooted in Ubuntu to update Ubuntu's grub and rebooted.
Got four entries for Arch (Linux + fallback, Linux-lts + fallback), but only the fallback entries work.
When I've time, I'll check the differences in grub entries.

Offline

#35 2018-11-24 20:13:03

entodoays
Member
From: Malta
Registered: 2014-10-25
Posts: 118

Re: [SOLVED]Kernel panic. No init found.

I identified what the problem was. Ubuntu's grub was copying the grub entries from the /boot/grub/grub.cfg in the Arch partition but the initrd line was pointing only to the intel-ucode.img and not to the initramfs.
I modified manually Ubuntu's grub.cfg and I'm booting Arch normally.
Funny grub-mkconfig behaviour.

Offline

#36 2018-11-24 20:35:50

loqs
Member
Registered: 2014-03-06
Posts: 17,195

Re: [SOLVED]Kernel panic. No init found.

If the issue has been resolved please mark the thread as solved by editing the first post and prepending [SOLVED] to the title.

Offline

Board footer

Powered by FluxBB