save session [Solved]

Post here if you are a new Porteus member and you're looking for some help.
rych
Warlord
Warlord
Posts: 733
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 5.0 x64 OpenBox
Location: NZ
Contact:

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.

rych
Warlord
Warlord
Posts: 733
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 5.0 x64 OpenBox
Location: NZ
Contact:

Re: save session

Post#2 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

rych
Warlord
Warlord
Posts: 733
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 5.0 x64 OpenBox
Location: NZ
Contact:

Re: save session

Post#3 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
Moderator Team
Moderator Team
Posts: 5667
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Re: save session

Post#4 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
francois
Contributor
Contributor
Posts: 6445
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: save session

Post#5 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. :)
Prendre son temps, profiter de celui qui passe.

rych
Warlord
Warlord
Posts: 733
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 5.0 x64 OpenBox
Location: NZ
Contact:

Re: save session

Post#6 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

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

Re: save session [Solved]

Post#7 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
Moderator Team
Moderator Team
Posts: 5667
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Re: save session [Solved]

Post#8 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