WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Extensions not loading on boot in MC 4.0.2 (using ISO in VMware)  (Read 6356 times)

Offline nim108

  • Full Member
  • ***
  • Posts: 107
Extensions not loading on boot in MC 4.0.2 (using ISO in VMware)
« on: November 12, 2011, 08:10:13 AM »
So I am testing some methods of extension loading in TC and MC using VMware (I just point VMware to the ISO file to test it) and am running into interesting results. When I download the TC 4.0.2 ISO, add a /tce/optional directory with my extensions (with onboot.lst and copy2fs.flg in /tce), these extensions load up just fine in TC, as expected. With this same exact setup booting the MC 4.0.2 ISO, the extensions fail to load ... it just says OK but seems to skip them all. For now, I am stuck running TC in text mode, but would much prefer MC working as it should, since I have no need for X tools. Am I missing something here?

For the record, I've tried renaming /tce to /cde with no luck, and I've also tried booting MC with boot options such as waitusb or embed, but still no go. It's just interesting that the same exact folder structure I have loads the extensions in TC, but fails to in MC. Is MC looking for another folder name for extensions?
« Last Edit: November 13, 2011, 07:48:36 AM by nim108 »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11704
Re: Extensions not loading on boot in MC 4.0.2
« Reply #1 on: November 12, 2011, 08:40:41 AM »
Hi nim108
When you say MC are you referring to Microcore or Multicore?

Offline nim108

  • Full Member
  • ***
  • Posts: 107
Re: Extensions not loading on boot in MC 4.0.2
« Reply #2 on: November 12, 2011, 09:49:24 AM »
Hi nim108
When you say MC are you referring to Microcore or Multicore?
Err sorry Rich, I forgot there was Multicore too ... I'm referring to Microcore.

On a side note, I did get the ISO to finally work, but it was with /cde and /cde/optional directories and booting up with the cde boot option. Is this a bug or was Microcore made to boot this way? How come TC boots with the normal /tce and /tce/optional directories with nothing specified as boot parameters? I'm happy it works now, but I want to know why both distributions (TC and Microcore) seemingly work in different ways.
« Last Edit: November 12, 2011, 09:51:53 AM by nim108 »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11704
Re: Extensions not loading on boot in MC 4.0.2
« Reply #3 on: November 12, 2011, 10:13:25 AM »
Hi nim108
Not being a Microcore user myself I was unaware that it might not use /tce for extensions.
Maybe it was done so that when it searches for the extension directory it would not try to load
extensions from a Tinycore install which would require X to be running?

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11050
Re: Extensions not loading on boot in MC 4.0.2
« Reply #4 on: November 12, 2011, 10:30:45 AM »
There is no difference between TC and MC in this regard. I suspect a timing issue or something similar.
The only barriers that can stop you are the ones you create yourself.

Offline nim108

  • Full Member
  • ***
  • Posts: 107
Re: Extensions not loading on boot in MC 4.0.2
« Reply #5 on: November 12, 2011, 10:48:31 AM »
There is no difference between TC and MC in this regard. I suspect a timing issue or something similar.
curaga, that's what I thought as I did not see any difference in the init scripts. Do you have any other suggestions for me to try? I'd like to get Microcore working (in terms of loading extensions on boot) the way Tinycore is.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11050
Re: Extensions not loading on boot in MC 4.0.2
« Reply #6 on: November 12, 2011, 11:41:13 AM »
Now that I checked, as of 4.0.1 the cde dir & bootcode should be used, and a tce dir on the cd shouldn't work. That it did would be a bug, though not one we need to absolutely chase down.
The only barriers that can stop you are the ones you create yourself.

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: Extensions not loading on boot in MC 4.0.2
« Reply #7 on: November 12, 2011, 12:28:34 PM »
Your subject title is very mis-leading! Many of us use microcore and extensions load as expected.

Your particular situation is directly running from an iso, not a physical cdrom, but an emulated one in vmware.

Regardless an iso is read-only and therefore having a tce directory recognized therein would prevent normal use.
That is why a cde directory is used. That way extensions, albeit, "frozen" will load upon boot while allowing also allowing a normal writable tce directory.
10+ Years Contributing to Linux Open Source Projects.

Offline nim108

  • Full Member
  • ***
  • Posts: 107
Re: Extensions not loading on boot in MC 4.0.2
« Reply #8 on: November 13, 2011, 07:48:10 AM »
Your subject title is very mis-leading! Many of us use microcore and extensions load as expected.

Your particular situation is directly running from an iso, not a physical cdrom, but an emulated one in vmware.

Regardless an iso is read-only and therefore having a tce directory recognized therein would prevent normal use.
That is why a cde directory is used. That way extensions, albeit, "frozen" will load upon boot while allowing also allowing a normal writable tce directory.
Thanks robert! I did not intend to mislead anyone, I apologize for the vague title. This makes sense though. It is quite odd though, that TC will only work with /tce and MC will only work with /cde with cde as a bootcode (again, this may just be due to the weird nature of loading the ISO up in VMware and odd timing that curaga was referring to).

I am assuming that this strange behavior is why MC nor TC cannot restore the mydata.tgz file I have in /tce (or in /cde, as I've tested both)? It never catches it. Any ideas for that? Obviously this situation is not ideal, I agree, but this is the best way I've found to test it before I am ready to pxe boot these images.

Edited my title to make it more transparent in case anyone else was having the same issue.
« Last Edit: November 13, 2011, 07:53:56 AM by nim108 »

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11050
Re: Extensions not loading on boot in MC 4.0.2 (using ISO in VMware)
« Reply #9 on: November 13, 2011, 08:26:11 AM »
Right, the cde code does not check for backups currently. You may be able to force it via restore=sr0 and having mydata.tgz in the root of the iso.

Having a read-only backup device isn't an end-user-friendly situation either though.
The only barriers that can stop you are the ones you create yourself.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11704
Re: Extensions not loading on boot in MC 4.0.2 (using ISO in VMware)
« Reply #10 on: November 13, 2011, 09:38:18 AM »
Hi nim108
Since you are virtualizing this anyway, why don't you just put Microcore on a small virtual hard drive?
Then your /tce directory will be writable.

Offline ixbrian

  • Retired Admins
  • Sr. Member
  • *****
  • Posts: 436
Re: Extensions not loading on boot in MC 4.0.2
« Reply #11 on: November 13, 2011, 09:59:38 AM »
Your subject title is very mis-leading! Many of us use microcore and extensions load as expected.

Your particular situation is directly running from an iso, not a physical cdrom, but an emulated one in vmware.

Regardless an iso is read-only and therefore having a tce directory recognized therein would prevent normal use.
That is why a cde directory is used. That way extensions, albeit, "frozen" will load upon boot while allowing also allowing a normal writable tce directory.
Thanks robert! I did not intend to mislead anyone, I apologize for the vague title. This makes sense though. It is quite odd though, that TC will only work with /tce and MC will only work with /cde with cde as a bootcode (again, this may just be due to the weird nature of loading the ISO up in VMware and odd timing that curaga was referring to).

I am assuming that this strange behavior is why MC nor TC cannot restore the mydata.tgz file I have in /tce (or in /cde, as I've tested both)? It never catches it. Any ideas for that? Obviously this situation is not ideal, I agree, but this is the best way I've found to test it before I am ready to pxe boot these images.

Edited my title to make it more transparent in case anyone else was having the same issue.

In case it helps, you can use ezremaster (available in the repository or in MultiCore) to easily create a remaster that will have your mydata.tgz file integrated directly in to the tinycore.gz (initrd).   You can use this custom tinycore.gz for netbooting as well.   Depending on how many extensions you need you can also use ezremaster to integrate extensions into the initrd (the more extensions added there, the more memory needed.)

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: Extensions not loading on boot in MC 4.0.2 (using ISO in VMware)
« Reply #12 on: November 13, 2011, 11:04:01 AM »
Both tce directory and mydata.tgz need to be located on a writable storgage device and not in a read-only iso. Having either one or both will cause much grief as normal expected operations will fail. As they should.

Either use Rich's suggestion of an emulated disk, or ixbrian's suggestion of using ezremaster and place your needed extensions into initrd as well as any needed initial data files, (the mydata.tgz) that you referenced.
10+ Years Contributing to Linux Open Source Projects.

Offline nim108

  • Full Member
  • ***
  • Posts: 107
Re: Extensions not loading on boot in MC 4.0.2 (using ISO in VMware)
« Reply #13 on: November 13, 2011, 11:07:45 AM »
Thanks all, will consider the suggestions posted, appreciate the prompt responses. I love how you can keep the main initrd (tinycore.gz or microcore.gz) untouched, and chainload the extensions and initial data files as a separate initrd ... genius architectural design. I will certainly make use of this when it's time to pxe boot. It makes sense that testing ISOs in VMware is not an ideal situation so instead, I will use an emulated disk in the future as Rich suggested.
« Last Edit: November 13, 2011, 11:11:12 AM by nim108 »