Hi, Adam here, long time lurker, first time poster.
The TL;DR
Setup: dCorePlus-bionic64.iso(MD5 verified) as VirtualBox(5.2.10_Ubuntu r121806) guest, Lubuntu 18.04 Host(Live Session).
Problem: At vm boot time, was throwing: "Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,1)"
Solved: By passing: root=sr0 , as a boot parameter.
----------------------------------------
I recently downloaded the ubuntu based 64bit version of dCore, link:
http://tinycorelinux.net/dCore/x86_64/release/dCore-bionic64/dCorePlus-bionic64.iso to check out the latest state of development.
Upon booting the .iso as a vm in VirtualBox, I kept getting a kernel panic, so first things first, I checked the md5 hash of the .iso file, exact match.
link:
http://tinycorelinux.net/dCore/x86_64/release/dCore-bionic64/dCorePlus-bionic64.iso.md5.txtSo then I did some basic searching for "Kernel panic - not syncing: VFS" and found this:
link:
https://askubuntu.com/questions/41930/kernel-panic-not-syncing-vfs-unable-to-mount-root-fs-on-unknown-block0-0 (scroll to the bottom, last answer)
While it did not have a direct answer, I noticed I was not getting as many boot messages as I was seeing in various search results,
and by chance I had mounted the .iso file and was looking at the isolinux.cfg boot stanza, and saw " loglevel=3 " set a default,
So then I booted the .iso in VirtualBox passing "dc loglevel=4" at the boot: prompt, woohoo! more kernel messages,
but not enough to see what I was looking for, namely, the root device the Kernel panic was telling me it could not find.(hint: the mounted .iso)
Setting "dc loglevel=5" did the trick, I was presented with this:
(See attached png)
I could see on line 2, that a root device of "(null)" just wasn't going to satisfy my needs(or the kernel),
and line 3 helpfully instructs to append a valid root device.
and near the bottom, a device named "sr0", which I knew was the root device(cdrom) the kernel was looking for and could not find.
So armed with the knowledge that I could append kernel parameters at the "boot:" prompt, I dutifully appended "root=sr0" at the "boot:" prompt
and 2 seconds later(I love TC) I was looking at a flwm desktop.
Now, I don't know if this is a special case of running as a vm in VirtualBox, or something else, but I see it as bug, or at the very least a mis-configuration.
Any Thoughts?