Tiny Core Linux

Tiny Core Base => Corepure64 => Topic started by: tinycorelinux on November 20, 2020, 06:40:54 AM

Title: File storage problem for TCL64
Post by: tinycorelinux on November 20, 2020, 06:40:54 AM
I would like to know how the data in all folders under the root directory is deleted after every system shutdown. How does this work? Using scripts? Change mount mode? Modifying kernel code? Now we need to customize our own operating system based on TCL, so we really want to know this, and This is the only question I can ask you, because these operating systems were developed by you, you know them better than others, thank you.
Title: Re: File storage problem for TCL64
Post by: Juanito on November 20, 2020, 06:47:05 AM
It’s not deleted - either it’s in ram and lost on shutdown or loop mounted and unmounted on shutdown.
Title: Re: File storage problem for TCL64
Post by: tinycorelinux on November 20, 2020, 06:51:56 AM
in ram?How can we change this behavior?
I'm talking more about how do you get it to work the normal way like any other distribution?
Title: Re: File storage problem for TCL64
Post by: Juanito on November 20, 2020, 06:59:46 AM
Add the files you’d like to keep to your backup.
Title: Re: File storage problem for TCL64
Post by: tinycorelinux on November 20, 2020, 07:04:55 AM
I don't think it's wise to do that, it doesn't suit the needs of most users...
Is it in your interest that I ask this question?
Title: Re: File storage problem for TCL64
Post by: xor on November 20, 2020, 07:07:42 AM
My guess :)
The system starts up, assuming there is always a backup directory.
If the routing directory is not created, the system will reset itself.
As such, permanence either occurs or does not occur, depending on the desire!

in ram?How can we change this behavior?
I'm talking more about how do you get it to work the normal way like any other distribution?
Title: Re: File storage problem for TCL64
Post by: tinycorelinux on November 20, 2020, 07:16:52 AM
Your assumption is actually TCL's backup and restore principle, but that's not what I want to know.
Title: Re: File storage problem for TCL64
Post by: tinycorelinux on November 20, 2020, 07:22:17 AM
@All members of TinycoreLinux Team
If you think my question is going to touch your interests and your technology patents, Please tell me,I'll never ask it again.
Title: Re: File storage problem for TCL64
Post by: xor on November 20, 2020, 07:42:35 AM
for permanence
Code: [Select]
tce-setdrive
in ram?How can we change this behavior?
I'm talking more about how do you get it to work the normal way like any other distribution?
Title: Re: File storage problem for TCL64
Post by: Juanito on November 20, 2020, 07:53:48 AM
You can install tinycore in traditional “scatter” mode.
Title: Re: File storage problem for TCL64
Post by: Rich on November 20, 2020, 08:30:57 AM
Hi ONE
The root file system is RAM based.
It is provided by the  initrd  (core.gz).
It gets rebuilt from scratch every time you boot.
Here is a diagram of how it works:
http://distro.ibiblio.org/tinycorelinux/architecture.html
The only folders that can be permanent are  /home  and  /opt.
This is by design, and will not be changed.

in ram?How can we change this behavior?
I'm talking more about how do you get it to work the normal way like any other distribution?
By switching to any other distribution that works in the normal way.

You can install tinycore in traditional “scatter” mode.
If you go down this road, you are on your own.
We do not provide support for this mode of operation.
I don't know what other problems it will cause, but it will break the package manager.
Title: Re: File storage problem for TCL64
Post by: tinycorelinux on November 20, 2020, 08:57:02 AM
It’s not deleted - either it’s in ram and lost on shutdown or loop mounted and unmounted on shutdown.
"Scatter" mode?How I do?
Title: Re: File storage problem for TCL64
Post by: tinycorelinux on November 21, 2020, 08:44:00 AM
Following TCL's design philosophy, how do you solve the performance problem of creating a large number of file links? With the increasing amount of software installed on the machine, TCL needs to spend a lot of time to create a large number of links for all files in each mounted TCZ. Is there any way to solve this problem? I wonder if TCL Team has ever considered such a question?
Title: Re: File storage problem for TCL64
Post by: xor on November 21, 2020, 09:00:38 AM
compressing files is a matter of preference
as it is not as fast as a regular hdd or ssd ram
I do not detect any lag time in between.

The system only reads the system files required at boot.
reads files on optional applications.
An optional auto save is created after the application or system shutdown request.

In summary, if we study the system; Applications that are subject to the literacy process of perhaps 1 million times,
How quickly you forget that system storage space is shortening its useful life! :)


Following TCL's design philosophy, how do you solve the performance problem of creating a large number of file links? With the increasing amount of software installed on the machine, TCL needs to spend a lot of time to create a large number of links for all files in each mounted TCZ. Is there any way to solve this problem? I wonder if TCL Team has ever considered such a question?
Title: Re: File storage problem for TCL64
Post by: tinycorelinux on November 21, 2020, 10:02:51 AM
The system only reads the system files required at boot.
reads files on optional applications.
However, the system needs to create links for all files in each mounted TCZ every time, so the startup speed is slow
Title: Re: File storage problem for TCL64
Post by: tinycorelinux on November 21, 2020, 10:10:23 AM
In a sense, the links created for all the files in the loaded TCZ are repeated every boot, because the location and rules of the TCZ mount will not change, so the file links will not change. I suggest that the TCL team should pay attention to this problem and try to improve it. I think the performance will be improved a lot.
It is recommended that links be re created for all files in TCZ only if necessary.
Title: Re: File storage problem for TCL64
Post by: Juanito on November 21, 2020, 11:07:24 AM
From your comments, I assume you've given up on a traditional (scatter) install, which is not recommended on tinycore.

Many users make the mistake of downloading all their extensions to load "onboot". If you only set a few extensions "onboot" and set the ones you use occasionally "ondemand", tinycore will boot a lot quicker.

In tinycore's early days some time was spent to optimise the creation of extension symlinks, but any patch suggestions that make things quicker would be gratefully received.
Title: Re: File storage problem for TCL64
Post by: xor on November 21, 2020, 12:26:21 PM
instantaneous loss is minimal; but the overall gain is high.

The loss rate you think is too small to think !!! :)

The system only reads the system files required at boot.
reads files on optional applications.
However, the system needs to create links for all files in each mounted TCZ every time, so the startup speed is slow
Title: Re: File storage problem for TCL64
Post by: tinycorelinux on November 21, 2020, 07:46:55 PM
...tinycore will boot a lot quicker.
It's not just the boot speed that matters. Tinycore is one of the fastest in the world.

if all TCZ is manually loaded, but it will slow down the extension startup software because TCZ has to be loaded and symbolic links are created for all the files in the extension before it can be started.

Don't forget that TCZ also needs to do the same thing above for all its unloaded dependencies, not just the software you're using.

Quote
In tinycore's early days some time was spent to optimise.
I don't know. "local" whether the bootcode is for that purpose, I'm also curious about what it does, but I don't seem to understand what wikipedia says.

Quote
but any patch suggestions that make things quicker would be gratefully received.
Ok, I'll have a try.
Title: Re: File storage problem for TCL64
Post by: polikuo on November 22, 2020, 10:04:25 AM
I don't know. "local" whether the bootcode is for that purpose, I'm also curious about what it does, but I don't seem to understand what wikipedia says.

I'm pretty sure the boot code [local] is obsolete.
Title: Re: File storage problem for TCL64
Post by: tinycorelinux on November 22, 2020, 11:40:17 AM
Quote from: polikuo
I'm pretty sure the boot code [local
is obsolete.
Thanks for the warning. I guess I'm on my own.
Title: Re: File storage problem for TCL64
Post by: xor on November 26, 2020, 01:18:03 AM
http://forum.tinycorelinux.net/index.php/topic,24514.0.html

In tinycore's early days some time was spent to optimise the creation of extension symlinks, but any patch suggestions that make things quicker would be gratefully received.
Title: Re: File storage problem for TCL64
Post by: Sashank999 on November 27, 2020, 11:07:55 PM
Hi !

I'm just too lazy to read all of this thread but I did read some of it and am answering this. TinyCore is always loaded into RAM and RAM works as a temporary storage. After a shutdown, RAM loses power and just forgets all of its data unlike an HDD or SSD where data is written on the drive. Hence, data on TCL is just gone after you shut it down.

The best thing you can do to actually get the files stored on HDD or SSD without the backup is using "home and opt" bootcodes.
 See FAQ for more info. home and opt bootcodes allow the files to be written directly to SDD unlike traditional backup method.