Author |
Message |
nic007

Joined: 13 Nov 2011 Posts: 3444 Location: Cradle of Humankind
|
Posted: Sun 03 Nov 2019, 11:26 Post subject:
nicOS-Save2SFS - Saves system changes |
|
See: http://www.murga-linux.com/puppy/viewtopic.php?t=118382
Last edited by nic007 on Tue 31 Mar 2020, 07:53; edited 9 times in total
|
Back to top
|
|
 |
nic007

Joined: 13 Nov 2011 Posts: 3444 Location: Cradle of Humankind
|
Posted: Sun 03 Nov 2019, 16:12 Post subject:
|
|
Note that you should delete unnecessary stuff that may reside in your savefile (like contents of browser caches, normally in /root) before saving to ydrv/adrv because the ydrv/adrv is read-only and you can't just delete stuff from it. You will need to edit and repack it if you want to remove something from it later on.
Last edited by nic007 on Wed 06 Nov 2019, 20:39; edited 2 times in total
|
Back to top
|
|
 |
mikeslr

Joined: 16 Jun 2008 Posts: 3913 Location: 500 seconds from Sol
|
Posted: Sun 03 Nov 2019, 16:14 Post subject:
|
|
Thanks, nic.
|
Back to top
|
|
 |
nic007

Joined: 13 Nov 2011 Posts: 3444 Location: Cradle of Humankind
|
Posted: Mon 04 Nov 2019, 10:55 Post subject:
|
|
I've decided to also implement the ydrv in the process. See first post for details and attached zip file.
|
Back to top
|
|
 |
nic007

Joined: 13 Nov 2011 Posts: 3444 Location: Cradle of Humankind
|
Posted: Wed 06 Nov 2019, 07:10 Post subject:
|
|
Cleaned up some code and made a few adjustments. This should be the final product and replaces the previous. Added to first post.
|
Back to top
|
|
 |
jplt3

Joined: 08 Apr 2019 Posts: 118 Location: Planet Earth
|
Posted: Fri 08 Nov 2019, 02:14 Post subject:
|
|
Hello,
i tested the script under bionicpup64.8.0 and it work like a charm , great thanks.
Maybe the script should rename the savefile after it create the adrv/zdrv ?
|
Back to top
|
|
 |
nic007

Joined: 13 Nov 2011 Posts: 3444 Location: Cradle of Humankind
|
Posted: Fri 08 Nov 2019, 03:38 Post subject:
|
|
The new ydrv/adrv replaces the savefile which should be deleted. The suggestion to rename the old savefile is merely a temporarily and safety measure. Renaming it wil ensure that it is not loaded with the new ydrv/adrv and you delete it after you are happy with the new ydrv/adrv. Same method is suggested with regards to replacing old ydrv/adrv's.
|
Back to top
|
|
 |
nic007

Joined: 13 Nov 2011 Posts: 3444 Location: Cradle of Humankind
|
Posted: Fri 08 Nov 2019, 23:23 Post subject:
|
|
Changed the selection process. You choose from a dropdown box to make either a ydrv or adrv, instead of making a selection with the Yes or No buttons as previously. This makes more sense and is less confusing. There's also a Cancel button now. Uploaded to opening post, replacing the previous.
|
Back to top
|
|
 |
jplt3

Joined: 08 Apr 2019 Posts: 118 Location: Planet Earth
|
Posted: Sat 09 Nov 2019, 02:43 Post subject:
|
|
Maybe i'am out of the topic here , but i'am little lost with how sfs works !
Now with your script it's awesome to be able to create my adrv on the fly with all my modifications .
Now i want to load multiple sfs files at boot ? i really don't know how to do ?
|
Back to top
|
|
 |
nic007

Joined: 13 Nov 2011 Posts: 3444 Location: Cradle of Humankind
|
Posted: Sat 09 Nov 2019, 03:59 Post subject:
|
|
jplt3 wrote: | Maybe i'am out of the topic here , but i'am little lost with how sfs works !
Now with your script it's awesome to be able to create my adrv on the fly with all my modifications .
Now i want to load multiple sfs files at boot ? i really don't know how to do ? |
There are two "groups" of sfs files. The one group includes the adrv, ydrv, base sfs and zdrv which are all loaded automatically at bootup without user input (they must all be located in the same place as the base sfs).
Any other sfs files are called extra sfs files and they can be loaded as follows:
1. If you have a savefile you can specify which of them should be booted automatically at bootup: From Menu select > System > Boot Manager. They must all be located in the root directory or folder where your base sfs resides.
2. You can load them during a session using the SFS-load utility, just click on an extra sfs file for further options. In this case it does not matter where they are located.
|
Back to top
|
|
 |
jplt3

Joined: 08 Apr 2019 Posts: 118 Location: Planet Earth
|
Posted: Sat 09 Nov 2019, 11:06 Post subject:
|
|
There is an error at line 76 : Code: | line 76: w: command not found
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
|
|
Back to top
|
|
 |
jplt3

Joined: 08 Apr 2019 Posts: 118 Location: Planet Earth
|
Posted: Sat 09 Nov 2019, 11:08 Post subject:
|
|
Fortunatetly i make backups !
I was playing with the script and bouuum it wipe all the partittion where to save the adrv/zdrv ????!!!!!!!!!
It's quiet strange !
Not able to duplciate this strange behaviour !
|
Back to top
|
|
 |
nic007

Joined: 13 Nov 2011 Posts: 3444 Location: Cradle of Humankind
|
Posted: Sat 09 Nov 2019, 11:47 Post subject:
|
|
jplt3 wrote: | Fortunatetly i make backups !
I was playing with the script and bouuum it wipe all the partittion where to save the adrv/zdrv ????!!!!!!!!!
It's quiet strange !
Not able to duplciate this strange behaviour ! |
You probably selected a destination which does not have enough free space/your savefile did not have enough free space for the operation. Select a partition which does have enough space.
|
Back to top
|
|
 |
bigpup

Joined: 11 Oct 2009 Posts: 13981 Location: S.C. USA
|
Posted: Sat 09 Nov 2019, 13:54 Post subject:
|
|
What affect on RAM usage does this setup have?
If everything is going to be in adrv, ydrv, zdrv, etc......
Those all get loaded into RAM.
A normal save file/folder just gets loaded into the working file system.
Becomes the location to read and write changes.
_________________ The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected
YaPI(any iso installer)
|
Back to top
|
|
 |
zagreb999
Joined: 11 Apr 2014 Posts: 573 Location: Yugoslavija
|
Posted: Sat 09 Nov 2019, 15:44 Post subject:
|
|
regards to mr. nic
i used suite of mr. nic
with slacko, and it worked
perfectly....
one word: the best...
thanks!
|
Back to top
|
|
 |
|