Load .dat file upon reboot

Post here if you are a new Porteus member and you're looking for some help.
Post Reply
azurtem
Ronin
Ronin
Posts: 2
Joined: 13 Apr 2016, 13:52
Distribution: 3
Location: Nice, France

Load .dat file upon reboot

Post#1 by azurtem » 13 Apr 2016, 13:57

Hi

I modified a few parameters and saved the session module, and then a porteussave.dat file

Now I 'd like to load this dat file every time we reboot into Always Fresh mode

I modified the porteus.cfg to be in Fresh mode, but I don't understand how to reload my settings file

thanks for your help

yann

User avatar
Ed_P
Contributor
Contributor
Posts: 3320
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 3.2.2 64-bit ISO
Location: Western NY, USA

Re: Load .dat file upon reboot

Post#2 by Ed_P » 13 Apr 2016, 14:31

I understand what you want but Always Fresh isn't the way to go. Always Fresh means no changes/save.dat and no mods. You want what I call My Safe Mode.

Copy your save.dat file to another file and name it save.dat.xzm. Then create a new boot menu option by copying the Graphic Mode entry and change the changes= option to extramod= pointing it to the save.dat.xzm file.

When you boot you will see your changes but no one will be able to change them or add to them. :good:
Ed

azurtem
Ronin
Ronin
Posts: 2
Joined: 13 Apr 2016, 13:52
Distribution: 3
Location: Nice, France

Re: Load .dat file upon reboot

Post#3 by azurtem » 13 Apr 2016, 17:32

cheers Ed_P

Bogomips
Full of knowledge
Full of knowledge
Posts: 2563
Joined: 25 Jun 2014, 15:21
Distribution: 3.2.2 Cinnamon & KDE5
Location: London

Re: Load .dat file upon reboot

Post#4 by Bogomips » 13 Apr 2016, 19:29

If Ed_P has resolved your issue, please mark post as solved, by editing subject of 1st post of thread. Thanks.
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB

User avatar
Ed_P
Contributor
Contributor
Posts: 3320
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 3.2.2 64-bit ISO
Location: Western NY, USA

Re: Load .dat file upon reboot

Post#5 by Ed_P » 13 Apr 2016, 19:51

azurtem, a secondary benefit of the .xzm file, if you use the .dat file to make updates to the config and they don't work or screw things up you can copy the .xzm file back to the .dat file. :good:

Bogomips, once a thread is marked solved you should consider locking it so no further postings can be added to it. And threads not solved could be marked Unsolved by the mods. :D
Ed

Post Reply