WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: unmount extensions, not sce - possible?  (Read 3712 times)

Offline Zendrael

  • Sr. Member
  • ****
  • Posts: 363
    • Zendrael's home of projects
unmount extensions, not sce - possible?
« on: April 04, 2014, 07:45:48 PM »
Hello all!

Is it possible to unmount extensions (that are not sce)?

I know that sce extensions are no longer supported (I'm on Core 5.2) and don't want to use then, jusnt wanto to unmount the ones that I have on my onDemand - after used them, i want to unmount/remove from memory.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11705
Re: unmount extensions, not sce - possible?
« Reply #1 on: April 04, 2014, 08:46:11 PM »
Hi Zendrael
This has been ask before and the answer is it's not practical. Unless you are running in copy mode, it really makes no
difference since extensions reside on your drive and are loop mounted into the RAM file system.

Offline hiro

  • Hero Member
  • *****
  • Posts: 1229
Re: unmount extensions, not sce - possible?
« Reply #2 on: April 05, 2014, 04:18:45 AM »
I haven't done it in ages cause I upgraded from my 64MB PC to a 512MB embedded platform ;)
But there are other reasons besides memory that might want you to unmount an extension. and yes, it works, but there is no official support.

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: unmount extensions, not sce - possible?
« Reply #3 on: April 05, 2014, 08:31:30 AM »
Some extensions use start scripts that are contained in the extensions (/usr/local/tce.installed/TCZ-NAME) to create symlinks or create copies of some files. These files will be orphaned after unmounting the tcz.
For extensions that do not contain a start script, an empty file is created in  /usr/local/tce.installed .
Some unrelated scripts check for the existance of  /usr/local/tce.installed/TCZ-NAME  to check if a dependency is available (not sure if a dead symlink still returns 'true' if checked for by a script).

I guess unmounting can be safe for some, but not all extensions. Deleting the files which were created while the extension was loaded might be advisable, though. There is probably more.

--

Or, to 'get back' some memory:
Code: [Select]
sudo /usr/sbin/cache-clear
Not sure if it makes that much sense, though. As I get it, cached memory will be made available for other programs if needed.
« Last Edit: April 05, 2014, 08:38:15 AM by Misalf »
Download a copy and keep it handy: Core book ;)

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11705
Re: unmount extensions, not sce - possible?
« Reply #4 on: April 05, 2014, 11:25:27 AM »
Hi Misalf
Clearing the cache is generally not useful. See:
http://forum.tinycorelinux.net/index.php/topic,9769.msg53362.html#msg53362

Offline Zendrael

  • Sr. Member
  • ****
  • Posts: 363
    • Zendrael's home of projects
Re: unmount extensions, not sce - possible?
« Reply #5 on: April 18, 2014, 08:44:12 AM »
Thank you guys!

I just found unmount extensions related to the sce in the forum. The dependencies will really make a mess if we try to unmount the ones being used by other apps...

BUT... what if we could register somewhere the deps loaded and then, if we try to unmount some app it checks if the dep can or can not be unmounted? If it is being used by another mounted app, it stay; if not, we unmount.

Just thinking...  :)

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: unmount extensions, not sce - possible?
« Reply #6 on: April 18, 2014, 09:36:05 AM »
This has been discussed many times.  It doesn't need to be rehashed again.