save session [Solved]

Post here if you are a new Porteus member and you're looking for some help.
Post Reply
rych
Black ninja
Black ninja
Posts: 52
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 2.1 32-bit
Location: NZ

save session [Solved]

Post#1 by rych » 09 Jan 2014, 02:47

Does my session live completely in the RAM? How often are the changes saved to the persistent storage (/porteus/changes on my ext4 USB drive, I guess)? Can I force it? Can I change the frequency? Or is it saved on Logout only?
Thanks
Igor
Last edited by rych on 10 Jan 2014, 03:33, edited 1 time in total.

User avatar
phhpro
Full of knowledge
Full of knowledge
Posts: 545
Joined: 10 Nov 2013, 20:35
Distribution: .

Re: save session

Post#2 by phhpro » 09 Jan 2014, 03:02

...
Last edited by phhpro on 04 Feb 2016, 00:37, edited 1 time in total.

rych
Black ninja
Black ninja
Posts: 52
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 2.1 32-bit
Location: NZ

Re: save session

Post#3 by rych » 09 Jan 2014, 03:20

It says though, "Only required for saving changes on FATx or NTFS filesystem"
It is also asking me for existing savefile, I want an utility that already knows it. Indeed, I think I have not a file at the moment but a mounted USB folder porteus/changes

User avatar
phhpro
Full of knowledge
Full of knowledge
Posts: 545
Joined: 10 Nov 2013, 20:35
Distribution: .

Re: save session

Post#4 by phhpro » 09 Jan 2014, 03:34

...
Last edited by phhpro on 04 Feb 2016, 00:38, edited 1 time in total.

rych
Black ninja
Black ninja
Posts: 52
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 2.1 32-bit
Location: NZ

Re: save session

Post#5 by rych » 09 Jan 2014, 06:05

I don't know how to attach a picture to convince you.
And I don't have save.dat
So all my original questions stand.

User avatar
fanthom
Site Admin
Site Admin
Posts: 4565
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

Re: save session

Post#6 by fanthom » 09 Jan 2014, 14:24

Does my session live completely in the RAM?
yes unless you use 'changes=' cheatcode

How often are the changes saved to the persistent storage (/porteus/changes on my ext4 USB drive, I guess)?
changes are saved in real time unless you use 'changes=EXIT:' cheatcode. if you do then changes are saved on reboot/shutdown only.

Can I change the frequency?
not directly but you can use 'changes=EXIT:' cheatcode + 'dump-session' script to save session on demand. cron job will let you set the frequency.

It is also asking me for existing savefile
nope. it's asking you where you want to create the save file.

in case of other questions please read our documentation linked in the forum header.
thanks
Please add [Solved] to your thread title if the solution was found.

User avatar
phhpro
Full of knowledge
Full of knowledge
Posts: 545
Joined: 10 Nov 2013, 20:35
Distribution: .

Re: save session

Post#7 by phhpro » 09 Jan 2014, 20:12

...
Last edited by phhpro on 04 Feb 2016, 00:38, edited 1 time in total.

User avatar
francois
Contributor
Contributor
Posts: 4937
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Re: save session

Post#8 by francois » 09 Jan 2014, 22:03

Talking about save.dat container needed for win =@ filesystem:
http://www.porteus.org/component/conten ... d-one.html

Save.dat are not needed for linux filesystem. :)
Voltaire: Le mieux est l'ennemi du bien.

User avatar
phhpro
Full of knowledge
Full of knowledge
Posts: 545
Joined: 10 Nov 2013, 20:35
Distribution: .

Re: save session

Post#9 by phhpro » 10 Jan 2014, 01:28

...
Last edited by phhpro on 04 Feb 2016, 00:39, edited 1 time in total.

rych
Black ninja
Black ninja
Posts: 52
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 2.1 32-bit
Location: NZ

Re: save session

Post#10 by rych » 10 Jan 2014, 03:28

Thank you for all the answers and comments. Indeed I had guessed after posting it would be simply writing porteus/changes on the USB connected disk. That's why changing Cache folder location in Firefox to be on a different drive (host's computer HDD) made quite a difference in performance. I'll be watching my USB flash light and trying to make steps to minimize applications writing to it too much/often, so it won't be worn out too soon.

Porteus is better in this regard I think that the other live Linux distros where the persistence lives inside the file, casper-rw, is it not? Potentially porteus/changes can grow as large as needed up to the capacity of the USB disk; making Porteus indeed a full portable Linux.

Finally, a snapshot @phhpro, http://www.tiikoni.com/tis/view/?id=0ca8078

Thank you again for helping me make my portable LaTeX environment a reality,
Igor

User avatar
phhpro
Full of knowledge
Full of knowledge
Posts: 545
Joined: 10 Nov 2013, 20:35
Distribution: .

Re: save session [Solved]

Post#11 by phhpro » 11 Jan 2014, 02:09

...
Last edited by phhpro on 03 Feb 2016, 23:43, edited 1 time in total.

jimwg
Shogun
Shogun
Posts: 322
Joined: 09 Oct 2013, 18:15
Distribution: porteus
Location: NYC

Re: save session [Solved]

Post#12 by jimwg » 24 Feb 2014, 13:46

Good job Fanthom!

A few home school questions that I can't can find here:

One is is asked to define the size of a savefile.dat in the Save File Manager; how does one know whether it's large enough or too excessively large just to save what you need?

Can you "undersize" a savefile.dat and unwittingly omit files you hope to save?

On log-off or mid-session we wish to simultaneously create or update a savefile.dat file as a off HD backup while also still having the identical date saved as "normal" Porteus Changes files. Is there any script that permits this?

Thanks for any tips!

Jim in NYC

User avatar
fanthom
Site Admin
Site Admin
Posts: 4565
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

Re: save session [Solved]

Post#13 by fanthom » 25 Feb 2014, 07:48

how does one know whether it's large enough or too excessively large just to save what you need?
depends what you use Porteus for (downloading many youtube videos?). system itself should take about 50MB but mind that firefox files/kde thumbnail caches/etc will grow quickly so i would go with 1GB on start.

Can you "undersize" a savefile.dat and unwittingly omit files you hope to save?
save.dat manager offers an option to resize container so it should be possible to make it smaller. run 'df -h' and check how much free space aufs has. if it's few hundreds MB then you could make it smaller but mind above - caches will be growing so probably would be wise to disable them. go to /mnt/live/memory/changes and identify which apps produces biggest files -> search on google how to disable this.

On log-off or mid-session we wish to simultaneously create or update a savefile.dat file as a off HD backup while also still having the identical date saved as "normal" Porteus Changes files. Is there any script that permits this?
nothing i know about
Please add [Solved] to your thread title if the solution was found.

Post Reply