Tiny Core Extensions > TCE Tips & Tricks
Beware Minefield
wiak:
Yes, I knew about the local=boot option, and it's an attractive one. However, as Core Concepts says, it suffers from the disadvantage of "system rot" over time. Using tcz doesn't (as far as I understand the concept used) and I wonder if what I suggested above is an alternative to using tcz?
If so, what I'm suggesting is potentially surely a "Fifth Mode of Operation" using PPR/TCE but where the uncompressed TCE can be kept (as an alternative) on permanent/persistent storage giving the RAM-saving-efficiency of a full-install (scatter) but without the system rot over time.
Jason W:
Unless the directory where your real files are is not writable, system rot will occur all the same even if there is a symlink being used in the system to point to the directory containing the files.
wiak:
Yes, but TCE's are reloaded fresh everytime. That's one of the advantages is it not? What I'm suggesting is the same: I'm suggesting that TCE's could also be uncompressed onto persistent storage, with that being done on each reboot (as an "alternative" to that happening into RAM as at present). The persistent storage location has to be writable, but it doesn't need to be backed up between boots - same as if the TCE was uncompressed in RAM. The advantage is the RAM saving (giving up loading speed for more free RAM). So in that scheme there is no system rot.
Jason W:
That is basically what happens if you use a tclocal mount and also keep your tce extensions in your tce folder to be loaded upon boot.
wiak:
I see what you mean; it is the same as tclocal really.
It's still a good "trick" though, if you have a PPR/TCE system and suddenly need more RAM without rebooting.
For example, I just did the following and freed up around 70 MB of RAM:
1. I'm still using TC version 1.2 and have firefox.tce installed in /tce and boot frugally via grub with kernel option tce=hda4/tc1.2/tce in a PPR/TCE based system (my tce store being on /dev/hda4 in folder tc1.2 with my downloaded optional tce's being in tc1.2/tce/optional).
[For variety of boot choices, I actually have various tce directories, all populated with symlinks pointing to my main optional tce store - as per a post made by softwaregurl at http://forum.tinycorelinux.net/index.php?topic=155.0]
2. Once booted into TC, I copied the whole of /usr/local/firefox-official to /mnt/hda4/tc1.2/persistentfirefox-official
3. Then I deleted /usr/local/firefox-official (which frees up the RAM) but doesn't remove the Firefox icon from wbar.
4. In a terminal (as root user) I then created a symlink to the persisent copy of the firefox folder:
--- Code: ---ln -s /mnt/hda4/tc1.2/persistentfirefox-official /usr/local/firefox-official
--- End code ---
Clicking on the Firefox link brings it all up as usual, same configuration (since still have /home/tc/.mozilla folder), but several tens of extra free RAM now available.
I wouldn't normally bother doing the above but might come in handy on occasion...
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version