Save.dat container (SOLVED)

Post here if you are a new Porteus member and you're looking for some help.
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.dat container

Post#61 by fanthom » 18 Dec 2013, 09:35

'load=' cheatcode works only for modules placed in /porteus/optional folder. also 'load=' requires a name not a path so please remove '/' so it looks like:

Code: Select all

load=changes-131216.xzm
Please add [Solved] to your thread title if the solution was found.

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

Re: Save.dat container

Post#62 by Ed_P » 18 Dec 2013, 15:22

I did try without the / originally and got the same results.

I use the / when I use the changes=EXIT: cheatcode and it works.

Code: Select all

kernel /boot/syslinux/vmlinuz    from=/ISOs/Porteus-RazorQT-v2.1-x86_64.iso changes=EXIT:/porteussave.dat 
initrd /boot/syslinux/initrd.xz
All the files are in the same folder, porteussave.dat, porteussave.xzm, changes-131216.xzm.

I suspect load= doesn't like NTFS formatted partitions?
Ed

User avatar
brokenman
Site Admin
Site Admin
Posts: 5455
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: Save.dat container

Post#63 by brokenman » 18 Dec 2013, 16:53

Actually I think I can
Ok, whatever floats your boat. I wrote the software so that it was impossible to save into the aufs file system by design. Why? Trying to create a save file into the very place that you saving will result in a never ending loop, like trying to save a sinking boat and you are bailing water back into the boat. Try it (not the boat analogy).

also 'load=' requires a name not a path so please remove '/' so it looks like: load=changes-131216.xzm
Seriously, i would listen.
How do i become super user?
Wear your underpants on the outside and put on a cape.

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

Re: Save.dat container

Post#64 by Ed_P » 18 Dec 2013, 17:29

brokenman wrote:Actually I think I can
Ok, whatever floats your boat. I wrote the software so that it was impossible to save into the aufs file system by design. Why? Trying to create a save file into the very place that you saving will result in a never ending loop, like trying to save a sinking boat and you are bailing water back into the boat. Try it (not the boat analogy).
No, no, no. I didn't try to save a file to a aufs system I saved a module to a NTFS system. I thought you had said I couldn't save a module to an NTFS system that I could only save a file to it.
also 'load=' requires a name not a path so please remove '/' so it looks like: load=changes-131216.xzm
Seriously, i would listen.
See the posting immediately above yours. Seriously, read. :)
Ed

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.dat container

Post#65 by fanthom » 18 Dec 2013, 17:36

All the files are in the same folder, porteussave.dat, porteussave.xzm, changes-131216.xzm.
so where do you have them? i wrote clearly in my previous post:
'load=' cheatcode works only for modules placed in /porteus/optional folder.
so please move your changes-131216.xzm to /porteus/optional and use 'load=changes-131216.xzm' cheatcode.
after boot please run 'ls /mnt/live/memory/images | grep changes' command to confirm that changes-131216.xzm was loaded during boot.

if you want to load modules from different folder than /porteus/optional then please use 'extramod=' cheatcode. last thing - please read cheatcodes.txt carefully and get familiarized with all of them as they come handy.
Please add [Solved] to your thread title if the solution was found.

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

Re: Save.dat container

Post#66 by Ed_P » 18 Dec 2013, 22:24

fanthom wrote:[ i wrote clearly in my previous post:
'load=' cheatcode works only for modules placed in /porteus/optional folder.
!!! Oh crap. I misinterpreted your reference to Porteus/optional as a label verses an actually folder name. :oops: :sorry:
so please move your changes-131216.xzm to /porteus/optional and use 'load=changes-131216.xzm' cheatcode.
after boot please run 'ls /mnt/live/memory/images | grep changes' command to confirm that changes-131216.xzm was loaded during boot.
Yes, of course. Will do.
please read cheatcodes.txt carefully and get familiarized with all of them as they come handy.
:sorry: Yes sir.
Ed

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

Re: Save.dat container

Post#67 by Ed_P » 18 Dec 2013, 22:57

Code: Select all

kernel /boot/syslinux/vmlinuz    from=/ISOs/Porteus-RazorQT-v2.1-x86_64.iso load=changes-131216.xzm    
initrd /boot/syslinux/initrd.xz

Code: Select all

guest@porteus:~$ ls /mnt/live/memory/images | grep changes
guest@porteus:~$ su
Password: 
root@porteus:/home/guest# ls /mnt/live/memory/images | grep changes
root@porteus:/home/guest# ls /mnt/live/memory/images
000-kernel.xzm/  001-core.xzm/  002-xorg.xzm/  003-razor.xzm/  04-firefox.xzm/
root@porteus:/home/guest# 
root@porteus:/home/guest# ls /mnt/sda6/Porteus/Optional
changes-131216.xzm*  porteussave.xzm*
root@porteus:/home/guest# 
It was obvious to me that it didn't take since the WiFi password wasn't saved.

Code: Select all

kernel /boot/syslinux/vmlinuz    from=/ISOs/Porteus-RazorQT-v2.1-x86_64.iso load=porteussave.xzm    
initrd /boot/syslinux/initrd.xz

Code: Select all

guest@porteus:~$ ls /mnt/live/memory/images | grep changes
guest@porteus:~$ ls /mnt/live/memory/images
000-kernel.xzm/  001-core.xzm/  002-xorg.xzm/  003-razor.xzm/  04-firefox.xzm/
guest@porteus:~$ 
guest@porteus:~$ ls /mnt/sda6/Porteus/Optional
changes-131216.xzm*  porteussave.xzm*
guest@porteus:~$ 
Same thing with this option.

Renaming the folders from Porteus/Optional to porteus/optional didn't help.
Ed

User avatar
brokenman
Site Admin
Site Admin
Posts: 5455
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: Save.dat container

Post#68 by brokenman » 19 Dec 2013, 00:53

You havn't yet read, or perhaps not fully understood the cheatcodes.txt file. You are booting from an ISO file correct? The confusion here is that 'porteus/optional' folder that fanthom is talking about is contained WITHIN the iso file you are booting from. You have mistakenly created a superfluous folder of the same name on your hard drive that porteus will not know about. The cheatcode you need to read about is extramod=

Here is what cheatcodes.txt says about it:
extramod=/path/folder_with_modules
extramod=/path/folder_with_modules;/path2/folder_with_modules
'extramod=/mnt/sdb3/porteus-modules'
'extramod=/mnt/sdb3/porteus-modules;/mnt/sdc4/inkscape_modules'
'load=' or 'extramod=' cheatcodes.
'extramod=/mnt/sdb3/porteus/gimp rammod=001;002;gimp'
extramod=LABEL:YourLabelName/path/to_folder/with_modules
It looks to me like you have created a folder at /mnt/sda6/Porteus/Optional and are putting your modules there. Firstly i would create a folder just called: /mnt/sda6/mymodules then use the cheatcode

extramod=/mnt/sda6/mymodules
How do i become super user?
Wear your underpants on the outside and put on a cape.

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

Re: Save.dat container

Post#69 by Ed_P » 19 Dec 2013, 05:19

brokenman wrote:You havn't yet read, or perhaps not fully understood the cheatcodes.txt file.
No! What gave it away?
You are booting from an ISO file correct?
Yes.
The confusion here is that 'porteus/optional' folder that fanthom is talking about is contained WITHIN the iso file you are booting from.
Great. :(
You have mistakenly created a superfluous folder of the same name on your hard drive that porteus will not know about. The cheatcode you need to read about is extramod=

Here is what cheatcodes.txt says about it:
extramod=/path/folder_with_modules
extramod=/path/folder_with_modules;/path2/folder_with_modules
'extramod=/mnt/sdb3/porteus-modules'
'extramod=/mnt/sdb3/porteus-modules;/mnt/sdc4/inkscape_modules'
'load=' or 'extramod=' cheatcodes.
'extramod=/mnt/sdb3/porteus/gimp rammod=001;002;gimp'
extramod=LABEL:YourLabelName/path/to_folder/with_modules
Here is what the cheatcodes file in the RazorQT 2.1 64bit ISO says about it.

Code: Select all

extramod=/path/folder_with_modules
extramod=/path/folder_with_modules;/path2/folder_with_modules

   ... This cheatcode lets you load modules from one or more external
       folders that are located outside of the /porteus directory.
       Multiple folders can be specified, with full paths separated by
       a semicolon without any spaces.
       Examples:
       'extramod=/mnt/sdb3/porteus-modules'
       'extramod=/mnt/sdb3/porteus-modules;/mnt/sdc4/inkscape_modules'
Apparently each ISO has it's own set of cheatcodes??
It looks to me like you have created a folder at /mnt/sda6/Porteus/Optional and are putting your modules there. Firstly i would create a folder just called: /mnt/sda6/mymodules then use the cheatcode

extramod=/mnt/sda6/mymodules
Are you sure my cheatcode shouldn't be

extramod=f:/mymodules

Not a major problem, I will try both and report back.

And thank you for trying to help a newbie.
Ed

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

Re: Save.dat container

Post#70 by Ed_P » 19 Dec 2013, 06:17

Ok.

extramod=f:/mymodules

Doesn't work, surprise.

I moved my porteussave.xzm file to the /mnt/sda6/porteus folder and used

extramod=/mnt/sda6/porteus

And it didn't work either.

I am noticing many msgs on the terminal screen when I reboot. They appear to be error msgs is there a way to view this log/msgs/screen without rebooting? And be able to capture it?
Ed

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.dat container

Post#71 by fanthom » 19 Dec 2013, 07:49

@brokenman
You are booting from an ISO file correct? The confusion here is that 'porteus/optional' folder that fanthom is talking about is contained WITHIN the iso file you are booting from.
thanks - it would probably take me ages to figure this out.

@Ed_P
extramod=f:/mymodules
Doesn't work, surprise.
this is not Windows
moved my porteussave.xzm file to the /mnt/sda6/porteus folder and used
extramod=/mnt/sda6/porteus
And it didn't work either.
it's better to give this folder some unique name like porteus-xzm but it should work regardless as you are providing full path (/mnt/sda6). please show me output of following commands:

Code: Select all

cat /proc/cmdline
ls /mnt/sda6/porteus
ls /mnt/live/memory/images
thanks
Please add [Solved] to your thread title if the solution was found.

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

Re: Save.dat container

Post#72 by Ed_P » 19 Dec 2013, 21:05

fanthom wrote:
moved my porteussave.xzm file to the /mnt/sda6/porteus folder and used
extramod=/mnt/sda6/porteus
And it didn't work either.
it's better to give this folder some unique name like porteus-xzm but it should work regardless as you are providing full path (/mnt/sda6). please show me output of following commands:

Code: Select all

cat /proc/cmdline
ls /mnt/sda6/porteus
ls /mnt/live/memory/images
thanks
My latest attempt hung the pc and I had to power off to reboot. What I did was;
start Porteus using the change= cheatcode to pick up my porteussave.dat changes,
used Porteus Settings Center to create a save session file named porteussession.dat on my NTFS partition,
renamed my porteus folder to porteussessions,
copied my porteussession.dat file to the porteussessions folder and renamed it porteussession.dat.xzm,
changed my extramod= cheatcode to point to /mnt/sda6/porteussessions

I may try using my porteussave.dat file instead next time.

--------

Update

Using porteussave.dat.xzm helped, in that the system isn't hung but it's the same as Fresh mode.

Code: Select all

guest@porteus:~$ cat /proc/cmdline
quiet from=/ISOs/Porteus-RazorQT-v2.1-x86_64.iso extramod==/mnt/sda6/porteussessions
guest@porteus:~$ ls /mnt/sda6/porteussessions
porteussave.dat.xzm*
guest@porteus:~$ ls /mnt/live/memory/images
000-kernel.xzm/  001-core.xzm/  002-xorg.xzm/  003-razor.xzm/  04-firefox.xzm/
guest@porteus:~$ 

-----

Update

This works though. :Yahoo!:

Code: Select all

guest@porteus:~$ cat /proc/cmdline
quiet from=/ISOs/Porteus-RazorQT-v2.1-x86_64.iso extramod=/mnt/sda6/porteussessions
guest@porteus:~$ ls /mnt/sda6/porteussessions
porteussave.dat.xzm*
guest@porteus:~$ ls /mnt/live/memory/images
000-kernel.xzm/  001-core.xzm/  002-xorg.xzm/  003-razor.xzm/  04-firefox.xzm/  porteussave.dat.xzm/
guest@porteus:~$ 
Anyone see the error before?

Thank you @fanthom and @brokenman. :beer:
Ed

tome
Contributor
Contributor
Posts: 562
Joined: 26 Jun 2013, 14:03
Distribution: x64 Openbox
Location: Poland
Contact:

Re: Save.dat container

Post#73 by tome » 20 Dec 2013, 05:19

your error:
extramod== vs extramod=

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

Re: Save.dat container

Post#74 by Ed_P » 20 Dec 2013, 05:24

tome wrote:your error:
extramod== vs extramod=
Yup. You have good eyes @tome. :beer:
Ed

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

Re: Save.dat container

Post#75 by Ed_P » 21 Dec 2013, 19:50

Can an Admin add "[Solved :-) ]" to the title of this topic? I can't, since I didn't start it.
Ed

Locked