WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Does TC run 100% in RAM?  (Read 7460 times)

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline Paulo

  • Full Member
  • ***
  • Posts: 139
Re: Does TC run 100% in RAM?
« Reply #16 on: March 28, 2013, 04:53:57 PM »
Hi gerald_clark

Quote
Do NOT use the ro boot option.
I did try it and TC was not very happy with it so I took it out again.

Quote
Core uses a RAM based root file system.
But the boot drive is still mounted as 'rw' and although I do no writes back to the boot drive, according
to curaga, one can still have data corruption to a 'rw' mounted drive if subject to power interruptions.


Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Does TC run 100% in RAM?
« Reply #17 on: March 28, 2013, 04:56:46 PM »
The boot drive is never mounted.
Your tce or opt or home drive is mounted.

Offline Paulo

  • Full Member
  • ***
  • Posts: 139
Re: Does TC run 100% in RAM?
« Reply #18 on: March 28, 2013, 05:04:45 PM »
Hi gerald_clark

Quote
The boot drive is never mounted.
Your tce or opt or home drive is mounted.

What am I missing as issuing a 'mount' command shows that /dev/sdb1 (my boot drive) is mounted as 'rw'
and running MountTool confirms this with sdb1 shown in green.

Offline Paulo

  • Full Member
  • ***
  • Posts: 139
Re: Does TC run 100% in RAM?
« Reply #19 on: March 28, 2013, 05:13:58 PM »
Hi tinypoodle

Quote
http://forum.tinycorelinux.net/index.php/topic,15014.msg85869.html#msg85869

Wow, that is seriously over my head  :(
At the risk of sounding facetious, which is not my intent, surely there must be a simpler way?

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11502
Re: Does TC run 100% in RAM?
« Reply #20 on: March 28, 2013, 05:18:49 PM »
Hi Paulo
Quote
once it loads the desktop is there but wbar only has 1 entry which is the one I made for my Ethernet Monitor script.
Hit  Ctrl-Alt-F1  and then enter
Code: [Select]
freeDoes it show you are low on free RAM?
Try removing any modifications you made that alter wbar and menu (Ethernet Monitor script, etc.) and see if the
desktop is then correct.
« Last Edit: March 28, 2013, 08:23:45 PM by Rich »

Offline Paulo

  • Full Member
  • ***
  • Posts: 139
Re: Does TC run 100% in RAM?
« Reply #21 on: March 28, 2013, 05:34:11 PM »
Hi Rich

OK I think you mean CNTRL+ALT+F1

Results for 'free' as follows:

Without copy2fs.flg in /tce:

Total: 502852  Used: 202932  Free: 299920  Shared: 0  Buffers: 16768

With copy2fs.flg in /tce

Total: 502852  Used: 301800  Free: 201052  Shared: 0  Buffers: 196

As regards taking out any mods to wbar, same thing.

EDIT:

Remounting does work though:

Code: [Select]
sudo mount -no remount,ro /dev/sdb1
Confirmed with a 'mount' command:

Code: [Select]
/dev/sdb1 on /mnt/sdb1 type vfat (ro,relatime, .......)
« Last Edit: March 28, 2013, 05:46:37 PM by Paulo »

Offline Paulo

  • Full Member
  • ***
  • Posts: 139
Re: Does TC run 100% in RAM?
« Reply #22 on: March 28, 2013, 06:04:38 PM »
Giving this wbar problem more thought and it's not really a problem as all the "appliances" or stand alone units I intend making
will not make use of the wbar anyway.

It will either be a server in which case X is not even required or then if I do use X for some "eye candy", there will still be no need for wbar
as it will run only one app for dedicated use which will be automatically loaded by putting a script in .X.d

In either case, there won't be any keyboard or mouse for user input.
If user input is required, it will be via dedicated buttons which will be connected to the serial port, lpt port or even using a usb joystick.
The idea being that the user should have no access to the system but only to functions relating to the sole app running, if applicable.
« Last Edit: March 28, 2013, 06:17:12 PM by Paulo »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11502
Re: Does TC run 100% in RAM?
« Reply #23 on: March 28, 2013, 08:23:10 PM »
Hi Paulo
Quote
OK I think you mean CNTRL+ALT+F1
You think correctly, post fixed.
It seems kind of odd that adding the  copy2fs.flg  file would cause the desktop to get messed up.

Offline Paulo

  • Full Member
  • ***
  • Posts: 139
Re: Does TC run 100% in RAM?
« Reply #24 on: March 29, 2013, 03:26:28 AM »
Problem with wbar solved.
I am writing this with my dunce cap on. :-[

I had forgotten that I had added the directories /usr/local/share/applications and usr/local/share/pixmaps
to .filetool.lst to make them persistent as I put my EthernetMonitor script and associated icon in them.
I should have instead added only the actual .desktop and icon files to .filetool.lst.

Sorry about that.
On the plus side, since I don't need wbar for my appliances, I'll put back the mistake as it seems to be a simple way
to deactivate wbar.


Offline Paulo

  • Full Member
  • ***
  • Posts: 139
Re: Does TC run 100% in RAM?
« Reply #25 on: March 29, 2013, 05:47:07 AM »
Remounting the drive to 'ro' now also works perfectly.
Thank you to all those that helped out.