Tiny Core Linux

Tiny Core Base => TCB Tips & Tricks => Topic started by: kagashe on December 25, 2008, 06:24:26 AM

Title: HD install for special purpose.
Post by: kagashe on December 25, 2008, 06:24:26 AM
I am running TC on 256 MB RAM machine which can give only 640x480x16 resolution on default X, therefore, I have to use Xorg.

I installed OSS, minefield, Flashsupport, Leafpad and emelfm2 and happily using it.

Then I began compiling gtk applications for which I had to load other dev packages. Then I wanted to compile pygtk which required to load Python and python-devs as tce.

With so many packages pygtk was compiling as if it will take 4 hours or more.

Then I thought that I should go for hard disk install to reduce the use of memory. One user had posted a method for HD install of TC on Ubuntuforums. (http://ubuntuforums.org/showpost.php?p=6303965&postcount=9). I used this method.

Then I had to install all the .tce packages on this installation. With this method the memory requirement reduced to less than half and I could compile pygtk within a few minutes.

The HD install method is simple. I copied the contents of Tc iso to one partition and moved bzImage and tinycore.gz to / of the partition then extracted the / tree:
Quote
# gunzip tinycore.gz
# cpio -i <tinycore
# rm tinycore.gz

and added following to /boot/grub/menu.lst:
Quote
title Tinycore
root (hd0,X)
kernel /bzImage root=/dev/hdd(X+1)
boot

kagashe

NB: There is one more advantage. I don't have to load the required devs for compiling since they are already installed on hard disk.
Title: Re: HD install.
Post by: curaga on December 26, 2008, 08:05:00 AM
Thanks for sharing.

Please note that this type of installation is not officially supported though, so every user creating a permanent HD install is on their own for making it work :)
Title: Re: HD install.
Post by: roberts on December 26, 2008, 08:22:51 AM
This is my personal opinion and not to be construed negatively.

I didn't write about this or even include it as a mode of operation, as one loses the benefits of Tiny Core.
That being a safe pristine boot as I wrote about in the Getting Started document, even the hybrid PPI will suffer from system rot, caused by user error, system bug, hardware glitch, solar flare, or space invaders. (just kidding). I once penned a article entitled "Not your Father's Operating System" in which I wrote why I feel it is no longer the best environment to do traditional hard drive installations. It has always been my design philosophy to offer an alternative But as with any free open source distribution, you can do what you want. If that is what I wanted, I would opt for one of hundreds of Linux operating systems that do that sort of thing better.
Title: Re: HD install.
Post by: kagashe on December 26, 2008, 09:14:10 AM
I know that there is my good old (I mean as old as my Linux experience) buntu for traditional HD install or Debian or Arch if I want lighter. TC is not designed for HD install and not supposed to be used like that.

Frankly I applied HD install as a solution to the problem I was facing for compiling on low resource machine.

There is one more bug in me, I don't burn CDs (or avoid burning them), therefore, there is a partition required for any new Linux and one was already there for TC.

Let me make it clear I am not supporting this type of HD install of TC and changing the title of this thread.
Title: Re: HD install for special purpose.
Post by: mikshaw on December 26, 2008, 07:00:22 PM
Quote
I would opt for one of hundreds of Linux operating systems that do that sort of thing better.
I'd disagree.  From my experience there much less than hundreds that do that sort of thing better.  Most distributions today are useless on older hardware.  Many will install piles of useless software.  There are some (perhaps many?) that are no different than TC in that the installation consists of nothing more than extracting a compressed file system onto the harddrive.

I have a 400mhz/128mb machine stored away, with which I'll probably try this very simple HD install.  I wouldn't be surprised if it could be kept fairly stable by simply installing additional software to /usr/local.  In that case, upgrading or repairing the base system should be nearly as easy as upgrading any TC system.
Title: Re: HD install for special purpose.
Post by: tobiaus on December 26, 2008, 09:57:36 PM
there seems to be some room for an easy solution here. knoppix begat feather and dsl which begat tinycore, and knoppix and/or feather had an "hd install (experimental)" option from the menu.

if tinycore's developer believes tinycore is better without an hd install, and yet tinycore's users feel the option is important, it's as simple as adapting the script or process already provided, putting it in the menu, and entitling it either "hd install (experimental)," hd install (not recommended!)," something of that nature. the trick here is that earlier knoppix-related distros have already established the convention of unsupported hd installs. they don't need to become a big deal or anything more than semi-official. to really make it tinycore-esque, you could still add it to the menu with such a title, but you could actually create the script and menu addition as a .tce extension, and ensure that fewer people bother to try it.
Title: Re: HD install for special purpose.
Post by: softwaregurl on December 27, 2008, 11:12:21 PM
It seems to me that a hybrid of Tiny Core  HD install, persistent /usr/local/, persistent home and backup of anything else, burnt to CD, and even stripped of mods not used by the box it's dedicated to could be practical.  This would give the pristine state because the CD is not writable.  What slows me down on small distros is the processor usage to uncompress.  There was a theory about early disk compression that a slow drive and a fast processor would benefit from compression because less data had to be read from the disk.  Now I find the opposite true (financially).  It is a lot cheaper to grab a used "big" fast hard drive or fast CD-ROM then to get a faster processor and the board to support it.

I think I have seen that either tar or mkisofs can use lower compression ratios but I have not had the time to investigate further.  I am not so sure that the actual size of a distro is much more then a status symbol (other then saving bandwidth).

S.G.
Title: Re: HD install for special purpose.
Post by: tobiaus on December 28, 2008, 03:41:09 AM
I am not so sure that the actual size of a distro is much more then a status symbol (other then saving bandwidth).

must disagree there. it's a conclusion that's easy to reach, until you're booting with 256 ram (or less) and intend to use a livecd, and you want performance, too. then the size is one of the main factors in choosing, if not the first. and if you're customizing a distro, and want to strip out anything you're not using, a truly minimalist core like tc means you don't have to strip things out, simply don't add anything you don't want :) been looking for tc for a long time, it just didn't exist until recently. the closest to it was basiclinux. dsl was a good compromise that had better extensions and was easier to use.
Title: Re: HD install for special purpose.
Post by: roberts on December 28, 2008, 06:14:34 AM
In regards to compression and size...

First let me state that TC does not run from a compressed image, like KNOPPIX or DSL.
It was the kernel developers, who in v2.6 enhanced the initrd capabiliites of such with the new initramfs in which they, the kernel developers, decided on cpio and gzip. There decisions are documented.

So, TC boots from a gzipped cpio image into ram. TC runs extremely fast as it runs from ram uncompressed.

If size was paramount, I would use a much higher compression other than gzip, i.e., lzma. In fact, it appears that lzma will a supported option for such, as the build of the current system, using lzma would have meant using patches. Lzma patches was in fact not selected as the uncompress time was noticeable, i..e., slower booting than our current deployment.

The pristine boot that I have championed for five years during my involvement with DSL, is what I am still an ardent proponent. You don't need to be booting from cdrom to achieve it. Instead my recommended method to "install to hard drive" is frugal. That is copying two files bzImage and tinycore.gz to any partition of your hard drive and point your bootloader to it. I recommend using grub for easy editing of additional boot time options.

On my developement machine I have grub set to boot TC in all the various operating modes:

Code: [Select]
title Tiny Core on hda3 (tce=hda3/tcZ restore=hda3/tc_backup nolocal)
kernel (hd0,2)/tinycore/bzImage quiet restore=hda3/tc_backup tz=US/Pacific settime nolocal tce=hda3/tcZ
initrd (hd0,2)/tinycore/tinycore.gz

title Tiny Core on hda3 (tce=hda3/tcE restore=hda3/tc_backup nolocal)
kernel (hd0,2)/tinycore/bzImage quiet restore=hda3/tc_backup tz=US/Pacific settime nolocal tce=hda3/tcE
initrd (hd0,2)/tinycore/tinycore.gz

title Tiny Core on hda3 (tclocal=hda1 restore=hda1)
kernel (hd0,2)/tinycore/bzImage quiet  tclocal=hda1 restore=hda1 tz=US/Pacific settime
initrd (hd0,2)/tinycore/tinycore.gz

title Tiny Core on hda3 (base norestore nolocal xsetup)
kernel (hd0,2)/tinycore/bzImage quiet tz=US/Pacific base norestore nolocal xsetup
initrd (hd0,2)/tinycore/tinycore.gz
Title: Re: HD install for special purpose.
Post by: softwaregurl on December 28, 2008, 08:29:50 AM
I was going to reword that sentence this morning but apparently instead of taking offense it sparked a discussion.  I have noticed that uncompressing is the slowest  part of the boot on 200Mhz or slower machines (but still faster then even Win 3.1x and much more capable).  If it was just TCB that would be fine but adding a bunch of extensions and as backups grow over time the boot gets slow uncompressing them all thus the speed benefit of persistent /usr/local and /home.  Also accessing a mountable compressed file system is noticeably slower. 

as far as memory usage, with mountable file systems its not so much an issue unless one wants the speed of running entirely in ram.  But if I am spending a lot of time at 100% processor usage then I've lost that benefit.  And I am going to have to strip even TCB to get it to run on an old laptop with 32 megs but the video uses some and I get a kernel panic.  I use it as wireless ssh client.

I guess what I'm getting at is optimizing compression for the individual machine and the users preferences.  finding the best balance of resource usage.   An insermountable task for a developer, but attainable by the user.
Title: Re: HD install for special purpose.
Post by: roberts on December 28, 2008, 08:44:26 AM
Let me be clear that the development efforts for TC is not solely for older hardware.
TC has been mischaracterized on Distrowatch and now several posts by various members here.

Older hardware of said class( 200Mhz)  is not very capable in running much of any of the newer software.
There are existing distributions Deli and DSL that support older hardware very well.

While I am not discouraging TC's use on any target hardware, I am certainly not targeting such for TC development.

Many of the same "issues" that I faced while at DSL. Stretching the distribution to accommodate an ever wider spectrum of older and the newest hardware.
Title: Re: HD install for special purpose.
Post by: tobiaus on December 29, 2008, 08:53:49 AM
There are existing distributions Deli and DSL that support older hardware very well.

although deli is not available as a livecd, which means i am unable to use it, and unless john andrews changes his mind, (perhaps?) i believe dsl will not be the option for old hardware it used to be. though that remains to be seen. if i misunderstood the reasons for tc being so small, then i will try not to further the misunderstanding in the future- thanks for clarifying.
Title: Re: HD install for special purpose.
Post by: roberts on December 29, 2008, 10:10:42 AM
I think TC covers the hardware spectrum very well.
Booting TC and selecting only gtk1 apps is a viable option of older computers.

But the focus of TC is not to only support old hardware.

This discussion started by the posting of a traditional hard drive installation method not about boot from live cd.
.
TC does not offer full package management to support a traditional hard drive installation. hundreds of distribution offer that.

I suppose because of lack of documentation and the traditional conservative mindset, confusion abounds. But then we have just begun.

I don't want to see my efforts be made the focus of only supporting old hardware. If that were the case I would not have begun. I find the arguments interesting. Old hardware is old. That is it is not changing and typically unable to run newer software, hence, our offering of gtk1 apps. But back to my point if you have old hardware and wish to run the programs of its era, then why wouldn't a polished older 2.4 distribution be your solution? Trying to run the newest program on old hardware does not make sense to me. You can only put some many potatoes in a 10 lb sack.

TC is about a new concept, not about targeting a particular era of hardware.

Now I feel like I am repeating myself, oh well, might as well
Quote
While I am not discouraging TC's use on any target hardware, I am certainly not targeting such for TC development.

Title: Re: HD install for special purpose.
Post by: tobiaus on December 29, 2008, 12:17:14 PM
i get what you're saying. i've said it before and i'll say it again, and without any disrespect to other parties intended, i think the best thing that ever happened to dsl is that you joined the project. and, i think the other best thing that ever happened to dsl is that you left and created tc.

i believe tc is much closer to what i wanted of dsl than even dsl was, but, dsl was my favorite distro at the time you were working on it. naturally, there is part of my thinking that thinks "dsl" whenever i try to guess what you're doing, and i'm not the only person that's going to repeatedly make that mistake.

tc is not dsl, but it is reminiscent enough that someday it might be worth explaining the differences. but since as you said, it's only just begun, we might all figure out more as we see more of tc. because of its size, upgrading by blanking the cdrw and writing the new iso is incredibly quick and easy.

as for older hardware, there is one very obvious and deliberate way that (much) "older hardware" will never be as supported as it was. the 2.6 kernel will never support as much "old hardware" as 2.6 will. in the past i've been against 2.6, but mostly because of an issue that has not presented a problem in tc, or in the larger more "conventional" distros. other than that issue, i like 2.6, a lot.
Title: Re: HD install for special purpose.
Post by: JohnJS on December 31, 2008, 01:02:22 PM
Tried the codes below exactly as written but get error 15 no such file ....
(am trying to dual boot with dsl4.4.10)
What am I doing incorrectly?. The two files are in my hda3 partition.

The pristine boot that I have championed for five years during my involvement with DSL, is what I am still an ardent proponent. You don't need to be booting from cdrom to achieve it. Instead my recommended method to "install to hard drive" is frugal. That is copying two files bzImage and tinycore.gz to any partition of your hard drive and point your bootloader to it. I recommend using grub for easy editing of additional boot time options.

On my developement machine I have grub set to boot TC in all the various operating modes:

Code: [Select]
title Tiny Core on hda3 (tce=hda3/tcZ restore=hda3/tc_backup nolocal)
kernel (hd0,2)/tinycore/bzImage quiet restore=hda3/tc_backup tz=US/Pacific settime nolocal tce=hda3/tcZ
initrd (hd0,2)/tinycore/tinycore.gz

title Tiny Core on hda3 (tce=hda3/tcE restore=hda3/tc_backup nolocal)
kernel (hd0,2)/tinycore/bzImage quiet restore=hda3/tc_backup tz=US/Pacific settime nolocal tce=hda3/tcE
initrd (hd0,2)/tinycore/tinycore.gz

title Tiny Core on hda3 (tclocal=hda1 restore=hda1)
kernel (hd0,2)/tinycore/bzImage quiet  tclocal=hda1 restore=hda1 tz=US/Pacific settime
initrd (hd0,2)/tinycore/tinycore.gz

title Tiny Core on hda3 (base norestore nolocal xsetup)
kernel (hd0,2)/tinycore/bzImage quiet tz=US/Pacific base norestore nolocal xsetup
initrd (hd0,2)/tinycore/tinycore.gz

[^thehatsrule^: fixed post]
Title: Re: HD install for special purpose.
Post by: roberts on December 31, 2008, 01:37:21 PM
If you are using the grub from DSL, it is too old.
You can grab the grub floppy from our download site and copy over newer grub files.
Title: Re: HD install for special purpose.
Post by: JohnJS on December 31, 2008, 02:46:14 PM
Thanks roberts,
Happy New Year.
Title: Re: HD install for special purpose.
Post by: josephg on January 10, 2009, 06:01:41 PM
I don't wish to rake it up again. But since this discussion has already started, I just wanted to put my £0.02 in.

I second tobiaus in what he says below. roberts, we all acknowledge the stellar role that you are playing and have played. I have been a long time dsl user, but tcl is closer to my heart in philosophy. I use my own specific apps, including window manager ratpoison and screen and some other minimalist apps. As such, no bloatware is good enough for me. I recently wiped DSL and put Debian etch on my old laptop - 64M memory and 640MHz processer - shameful. But, it is flying faster than my shiny M$ laptop. It has a 2.6 kernel, and I've got opera, flash, mplayer, transmission, audacity, skype, all with the latest libs. i.e. not older expired versions. I just want to say that older hardware need not go to the landfill, just because some people like to keep buying newer hardware every year or so.

I used to carry DSL on my usb stick, and hope that tcl might be a worthy replacement. I never migrated to DSL4, and I have no need for the latest versions of every app, as long as I can do what I need to. I might not be your ideal user, but I know many who think like me...

i get what you're saying. i've said it before and i'll say it again, and without any disrespect to other parties intended, i think the best thing that ever happened to dsl is that you joined the project. and, i think the other best thing that ever happened to dsl is that you left and created tc.

i believe tc is much closer to what i wanted of dsl than even dsl was, but, dsl was my favorite distro at the time you were working on it. naturally, there is part of my thinking that thinks "dsl" whenever i try to guess what you're doing, and i'm not the only person that's going to repeatedly make that mistake.

tc is not dsl, but it is reminiscent enough that someday it might be worth explaining the differences. but since as you said, it's only just begun, we might all figure out more as we see more of tc. because of its size, upgrading by blanking the cdrw and writing the new iso is incredibly quick and easy.

as for older hardware, there is one very obvious and deliberate way that (much) "older hardware" will never be as supported as it was. the 2.6 kernel will never support as much "old hardware" as 2.6 will. in the past i've been against 2.6, but mostly because of an issue that has not presented a problem in tc, or in the larger more "conventional" distros. other than that issue, i like 2.6, a lot.
Title: Re: HD install for special purpose.
Post by: Me on March 21, 2009, 01:05:03 AM
Sorry - I cannot agree that TCL should be liveCD only. There are dozens of reasons to ask Robert to provide a fully functional FULL, or even just FRUGAL, installation script. Apart from the millions of old desktops lurking under beds, there are also hundreds of redundant laptops with only floppy drive input, and/or extremely limited memory, and/or tiny, but adequate, hard discs. All these could be used for single-purpose tasks, perhaps even image-free browsing with Dillo. One thinks of email clients, ping testers, terminals, dumb or otherwise, amongst many others.
In developing this gem, Robert like Klaus before him, may have seriously underestimated the power and range of this infant. If I read correctly, it would be a trivial matter for Robert to develop and issue an installation routine, with caveats if he chooses, but this aspect of coding may be beyond the ability of many potential users.
Come in Robert, we love you.....
Title: Re: HD install for special purpose.
Post by: roberts on March 21, 2009, 01:37:31 PM
But TC is not CDROM only. Most use TC with a frugal grub install.
See the Installation section of the website for how to setup Grub and use with a Frugal install.

http://www.tinycorelinux.com/install.html

As far as a traditional Hard Install goes, I just don't promote it.
In fact I now call that the "Scatter Mode" install as compared to the Tiny & Tidy of Frugal!

Just because, I am not promoting Scatter Mode, does not mean that I am ignoring it.
In the last release v1.2 I fixed a bug that had to do with icons doubling when using Scatter Mode install.

Note grub is not included in the base, it is an extension. So there is no automatic script in the base of TC to peform installations. For existing grub based system it is simply to copy over two files, bzImage and tinycore.gz into your grub boot directory and make a grub menu.lst entry. If you don't have grub then follow the Installation Instructions noted above.

If you wish to do the traditional then its instructions are here in this thread.
Likely they will be placed in the FAQ.

Bugs reports on traditional  (Scatter Mode)  will be addressed and supported whenever possible.
Title: Re: HD install for special purpose.
Post by: tobiaus on March 21, 2009, 10:37:28 PM
I cannot agree that TCL should be liveCD only.

yeah it's never been livecd only, there's always been frugal. let me clear this up since there are things i said in this thread that are old news... i once felt that robert was simply being too critical of users that insist on using a "traditional" (or scatter mode) install.

i never insisted he support them as long as he let the rest of us make the attempt. he's gone way beyond any of my expectations, even helping people with it himself.

he was totally right that frugal is "better" though. for more than 90% of uses. and as a livecd, it's my favorite. i've never done a scatter install with frugal, i prefer using tcz packages over any other system, and a "frugal" install is the closest thing to an os install using tcz.
Title: Re: HD install for special purpose.
Post by: Me on March 23, 2009, 05:52:33 AM
Thanks, guys, appreciate your words of wisdom and guidance. A FAQ would be the icing on the cake for YT.
Title: Re: HD install for special purpose.
Post by: tobiaus on March 23, 2009, 02:07:18 PM
Thanks, guys, appreciate your words of wisdom and guidance. A FAQ would be the icing on the cake for YT.

http://tinycorelinux.com/faq.html ?
Title: Re: HD install for special purpose.
Post by: kihoma on April 28, 2009, 06:39:17 AM
I tested the 1.2 and 1.3 versions and I was very impressed with what I saw. But because I really think that a hard disk "classic" install is the best option for a desktop commom user, I put the Xvesa + Icewm + wbar (here, the influence of tinycore is more than obvious) onto Debian Lenny basic install (no graphical X). Then I installed the xbase-clients, xfonts-base, xserver-common, xfstt, pcmanfm (light file manager), epiphany (light web browser, even lighter than Opera last version) and wlassistant. This way I endded up with a system runnig on less than 30 MB of RAM usage. Actually, I got a 27MB of RAM usage, including an Icewm with a Windows Vista theme and a nice wallpaper. Here you can find a screenshot with some instructions on how to do it (it's in portuguese, sorry). I used the .xserverrc from tinycore. So I think that, instead of using tinycore to something it was not designed to (as the admins said), you could give Debian a try. There must be still some hacks to get memory usage even lower, but I tried nothing but a regular install (except kdrive). I must say that, runnig this with Xorg will take another 10MB of RAM. So, you may end up with a 35-40MB of RAM usage if you decide to go with Xorg instead of Kdrive (Xvesa).
I think this approach (perfect and beatiful  systems runnig on low ram requirements) is more than necessary in a world getting full of e-waste.
Title: Re: HD install for special purpose.
Post by: kihoma on April 28, 2009, 06:40:39 AM
Forgot the link to the portuguese howto + screenshot
http://www.vivaolinux.com.br/dica/Debian-Lenny-com-interface-grafica-e-consumindo-30-MB-de-RAM
Title: Re: HD install for special purpose.
Post by: tobiaus on April 28, 2009, 10:29:53 AM
I think that, instead of using tinycore to something it was not designed to (as the admins said), you could give Debian a try.

it certainly is a nice way to run debian / ubuntu, and i am doing basically the same thing. i'd rather use tc though, the main reason i'm using ubuntu is i haven't got wireless running in tc yet. i use tc on setups where it's reasonable to use wired eth.
Title: Re: HD install for special purpose.
Post by: San on June 24, 2013, 03:40:09 AM
Sorry for bringing this topic up.

I've been trying to install Core on USB Pendrive.
1. Boot Core CD
2. Create partition
3. Move / to new partition (without proc, sys, tmp, mnt...)
4. Manually create partitions
5. Copy grub directory, vmlinuz
6. Prepare menu.lst and install grub

On regular HDD it works well (in virtualbox), but i need to install it on USB Pendrive.
I made it all in VirtualBox, convert hdd image with 'VBoxManage internalcommands  converttoraw NewVirtualDisk1.vdi tc.raw'.
Rawwrite to pendrive 'dd if=tc.raw of=/dev/sdb'.

It boots while adding initrd (core.gz). After removing it - not. I tried to recompile kernel disabling modules (so it is monolithic 12MB kernel), but still can not get it.

Any help, please?
Title: Re: HD install for special purpose.
Post by: Lee on June 24, 2013, 08:40:50 AM
Wow... This thread was almost as long dead as "SCO vs. IBM".    :)

Much has changed with core since the previous posting in this thread... but not the general feeling about "scatter mode" installations.

There are users here, myself included, who regularly boot from a USB stick with a frugal installation in preference to booting from HD.

Can you tell us what you have in mind for this USB stick?  Is there a constraint that precludes using a regular Core installation?
Title: Re: HD install for special purpose.
Post by: theYinYeti on June 24, 2013, 10:52:50 AM
Hi San! I don’t know what it is that you want to do with your USB flash drive. You might be interested in this article I wrote:
http://yeti.selfip.net/cms/index.php/post/2013/05/08/Bootable-flash-drive-for-both-Linux-and-Windows%3A-part-1
Title: Re: HD install for special purpose.
Post by: tinypoodle on June 24, 2013, 01:05:28 PM
I tried to recompile kernel disabling modules (so it is monolithic 12MB kernel), but still can not get it.

Congratulations, you managed to build a kernel which is 60% larger than the base OS :D
Title: Re: HD install for special purpose.
Post by: tinypoodle on June 24, 2013, 01:06:36 PM
Wow... This thread was almost as long dead as "SCO vs. IBM".    :)

Nice reference! :)
Title: Re: HD install for special purpose.
Post by: coreplayer2 on June 24, 2013, 01:19:52 PM
i need to install it on USB Pendrive.

Any help, please?

Sure, simply use the extension "tc-install.tcz"  I choose USB-HDD option for a USB frugal install 

then be sure to copy over files needed for persistence (if needed) and add the required bootcodes to the boot conf file


Hope that helps
Title: Re: HD install for special purpose.
Post by: San on June 24, 2013, 03:23:56 PM
@Lee
I would like to install it as regular unix on filesystem of real USB flash.

Maybe i can not get it to work but, by installing it by copy of vmlinuz and core.gz to usb cannot install modules (tce-load -wic pkg) to 'filesystem'.
And so, when I use on-boot load modules it uses allmost whole my 128mb of ram, and takes about 4 minutes to load.
If i extract cpio (core.gz) to filesystem and boot, it won't run without core.gz when installed on flash but works fine from HDD.

I have to get rid of loopback's and memory 'waste'.

edit.
Yes, friend, i have some problems with explanation. But, please, don't treat me like an idiot...

If there is anyone who wants to help...

offtopic:
@tinypoodle:
yay! i don't care! as long as it does not waste ram with tc modules.
making monolithic kernel was ONLY a TEST to check if there is a problem with kernel or core configuration.
sorry, i was trying to solve problems on my own...

"Nice reference" - nice ot...

@coreplayer2
yes, i did so. but it is STILL copy of vmlinuz and core.gz (plus persistent home, tce, optional)
and still - loopbacks - it is not what i want.
Title: Re: HD install for special purpose.
Post by: Lee on June 24, 2013, 06:57:11 PM
I didn't mean to sound like I thought you were an idiot... You're already far more adventurous than I have been, and so probably know more about it, with regard to uncompressing the kernel and unpacking the initrd (though I'm thinking maybe I'll have a crack at the initrd some time, just for kicks).

Quote
And so, when I use on-boot load modules it uses allmost whole my 128mb of ram, and takes about 4 minutes to load.
If i extract cpio (core.gz) to filesystem and boot, it won't run without core.gz when installed on flash but works fine from HDD.

For booting from USB, don't forget to use the waitusb boot code... even though the kernel and initrd may have loaded from the same USB stick, you may have to wait a few seconds before you can load extensions from it.  That might explain why it works from HD but not from USB stick.

I wonder if your load time issues could be alleviated with a custom kernel or remastered core.gz.  Remastering Core is fairly simple - so much so that you'll sometimes see people trying it before they've got familiar with the OS in the first place.

On a system with only 128 MB of memory, I also wonder if its an older system - maybe with USB 1.0?  That would account for the long load times.  Memory-wise, 128 MB might not be that bad, depending on the application - I have little box with 128 MB in it and it runs fine - a little bit of web server, some ftp and pinch of sshd - of course no graphics or sound at all.

Title: Re: HD install for special purpose.
Post by: San on June 24, 2013, 10:56:24 PM
I did not try to increase waitusb. Originally it was 5s.

The device is Wyse S10 (http://www.parkytowers.me.uk/thin/wyse/s10/index.shtml). And it schould have usb2.0.
I'm going to replace memory with 256mb, but have to find some.

Quote
I wonder if your load time issues could be alleviated with a custom kernel or remastered core.gz[\quote]
so am i ;). and that's why i tried to recompile kernel, but maybe it was not a good idea.
Title: Re: HD install for special purpose.
Post by: ctor on November 26, 2014, 04:10:43 PM
LPP
Title: Re: HD install for special purpose.
Post by: core-user on November 27, 2014, 02:26:18 AM
Your problem may be related to the fact that TC boots into a initrd.gz (core.gz) & stays there, whilst a 'normal' distro switches root out of initrd.gz to the root of your hard drive, & runs there.