mmatuska / mfsbsd

mfsBSD
http://mfsbsd.vx.sk
BSD 2-Clause "Simplified" License
494 stars 137 forks source link

Boot problem with mfsbsd-14.1-RELEASE-amd64.img: `exec /sbin/init: error 5` #148

Open tomhukins opened 5 months ago

tomhukins commented 5 months ago

I downloaded the 14.1-RELEASE of mfsbsd from https://mfsbsd.vx.sk/files/images/14/amd64/mfsbsd-14.1-RELEASE-amd64.img and copied it to the disk of a Linux virtual machine by running dd if=mfsbsd-14.1-RELEASE-amd64.img of=/dev/vda bs=1M.

I do not have access to the VM host, but have console access to the guest which showed the following during a normal boot:

Screenshot_2024-06-04_22-04-38

I have transcribed this (may contain errors, although I've checked):

cd0: <QEMU QEMU DVD-ROM 2.1.> Removable CD-ROM SCSI device
cd0: Serial Number QM00001
cd0: 16.700MB/s transfers (HDMA2, ATAPI 12bytes, PIO 65534bytes)
cd0: 0MB (184 2048 byte sectors)
GEOM: vtbd0: the secondary GPT header is not in the last LBA.
random: unblocking device.
Dual Console: Video Primary, Serial Secondary
g_vfs_done(): md8[READ (offset=83197952, length=32768) Jerror = 5
exec /sbin/init: error 5
init: not found in path /sbin/init:/sbin/oinit:/sbin/init.bak: /rescue/init
panic: no init
cpuid = 0
time = 1717535009
KDB: stack backtrace:
#0 0xffffffff80b7fbfd at kdb_backtrace+0x5d
#1 0xffffffff80b32961 at vpanic+0x131
#2 0xffffffff80b32823 at panic+0x43
#3 0xffffffff80abc8f5 at start_init+0x265
#4 0xffffffff80aecd1f at fork_exit+0x7f
#5 0xffffffff80fd7aae at fork_trampoline+0xe
Uptime: 1s
Automatic reboot in 15 seconds
-
press a key on the console to abort
Press a key on the console to reboot, -> or switch off the system now.

Please let me know if you would like me to provide any more information or if this is an upstream bug in FreeBSD that I should report.