Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: oovy on May 27, 2019, 07:42:15 AM

Title: Cant boot tinycore 10.0 - Kernel Panic
Post by: oovy on May 27, 2019, 07:42:15 AM
Hi there!
I was tinkering with tinycore once more and tried to run it in a virtual machine. The thing is, I cant get it to boot due to a kernel panic.

Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)

(https://oovy.dev/img/kernel-panic.png)

I already had this issue once with a debian installation. This was a Grub error, where it couldn't handle the kernel. Is this the same thing? Has anybody experienced this or a solution for this?
I wasn't able to fix it, so I went back to an older version...

Thanks in advance.
Title: Re: Cant boot tinycore 10.0 - Kernel Panic
Post by: Rich on May 27, 2019, 07:58:34 AM
Hi oovy
Insufficient RAM allocated to your VM could cause that:
http://forum.tinycorelinux.net/index.php/topic,22268.msg139361.html#msg139361
http://forum.tinycorelinux.net/index.php/topic,22481.msg140876.html#msg140876
Title: Re: Cant boot tinycore 10.0 - Kernel Panic
Post by: oovy on May 27, 2019, 12:46:01 PM
Hi there Rich!

Sadly, this does seem not to be the problem. I'm still wondering if this isn't just a bootloader issue, but I'm not sure at all.

Could there be another reason?
Title: Re: Cant boot tinycore 10.0 - Kernel Panic
Post by: andyj on May 27, 2019, 03:51:22 PM
Maybe you could give us some details about the VM environment, like vmware, esxi, hyperv, virtualbox, xen, qemu?
Title: Re: Cant boot tinycore 10.0 - Kernel Panic
Post by: oovy on May 27, 2019, 11:40:15 PM
Hi!
Of course, here's some info about the VM:

- VMWare Workstation 15 Pro
- 1 CPU Core
- 2 GB RAM
- Running "Other 4.x Linux Kernel"
Title: Re: Cant boot tinycore 10.0 - Kernel Panic
Post by: curaga on May 28, 2019, 01:01:20 AM
Try adding "debug" to the boot args, to see more messages. Did you edit core.gz?
Title: Re: Cant boot tinycore 10.0 - Kernel Panic
Post by: oovy on May 28, 2019, 02:19:30 AM
Okay, i'll try that.
No, I didn't edit core.gz. Not that I know.

core.gz is the kernel modules stuff right?

Title: Re: Cant boot tinycore 10.0 - Kernel Panic
Post by: andyj on May 28, 2019, 03:46:51 AM
Is this booting from the ISO, or did you already install it to a virtual hard drive to boot from?
Title: Re: Cant boot tinycore 10.0 - Kernel Panic
Post by: oovy on May 28, 2019, 04:47:41 AM
It's installed on a virtual hard drive. Already tried it multiple times.
Title: Re: Cant boot tinycore 10.0 - Kernel Panic
Post by: Rich on May 28, 2019, 04:59:01 AM
Hi oovy
... core.gz is the kernel modules stuff right?
Not exactly.  core.gz  contains  rootfs.gz  +  modules.gz.
Title: Re: Cant boot tinycore 10.0 - Kernel Panic
Post by: andyj on May 28, 2019, 05:22:33 AM
Since the ISO booted and the kernel saw the hard drive at the time of installation it was working at some point. Which disk controller are you using? What bootloader are you using, and what does the configuration look like?
Title: Re: Cant boot tinycore 10.0 - Kernel Panic
Post by: oovy on May 28, 2019, 07:40:52 AM
Since the ISO booted and the kernel saw the hard drive at the time of installation it was working at some point. Which disk controller are you using? What bootloader are you using, and what does the configuration look like?

I am using a IDE controller, already tried SATA. It's the default TC bootloader (grub i guess). What do you mean by configuration?
Title: Re: Cant boot tinycore 10.0 - Kernel Panic
Post by: Rich on May 28, 2019, 07:52:56 AM
Hi oovy
...  What do you mean by configuration?
If you used the  tc-install  utility, you should have a  /boot/extlinux/  directory with a  extlinux.conf  file in it.
If you used a third party installation tool that can install any and all Linux distros, use the  tc-install  utility.
Title: Re: Cant boot tinycore 10.0 - Kernel Panic
Post by: oovy on May 28, 2019, 09:12:55 AM
Here's my extlinuxconfig

Code: [Select]
DEFAULT core
LABEL core
KERNEL /tce/boot/vmlinuz
INITRD /tce/boot/core.gz
APPEND quiet  waitusb=5 waitusb=5:UUID="7c01923d-d05d-454f-9738-7a1f88bb32a1" tce=UUID="7c01923d-d05d-454f-9738-7a1f88bb32a1"
Title: Re: Cant boot tinycore 10.0 - Kernel Panic
Post by: Rich on May 29, 2019, 04:58:28 AM
Hi oovy
Try adding "debug" to the boot args, to see more messages. ...
Change this:
Code: [Select]
APPEND quiet  waitusb=5 waitusb=5:UUID="7c01923d-d05d-454f-9738-7a1f88bb32a1" tce=UUID="7c01923d-d05d-454f-9738-7a1f88bb32a1"To this:
Code: [Select]
APPEND quiet  debug waitusb=5:UUID="7c01923d-d05d-454f-9738-7a1f88bb32a1" tce=UUID="7c01923d-d05d-454f-9738-7a1f88bb32a1"
Title: Re: Cant boot tinycore 10.0 - Kernel Panic
Post by: oovy on June 03, 2019, 04:48:14 AM
Hi!
Sorry for not replying, but it somehow fixed it self... Thanks to all of you for helping me!