Save.dat container (SOLVED)

Post here if you are a new Porteus member and you're looking for some help.
budchekov
White ninja
White ninja
Posts: 9
Joined: 27 Nov 2013, 04:07
Distribution: Xubuntu 12.10
Location: Los Angeles

Save.dat container (SOLVED)

Post#1 by budchekov » 27 Nov 2013, 04:42

Hi,
I just can't figure out how to save changes, have a 1g file installed and this is the only porteus.cfg file I can find. Not the same as in the tutorial, ?

Any help appreciated.

Code: Select all

PROMPT 0
TIMEOUT 90
UI vesamenu.c32
DEFAULT mate
MENU BACKGROUND porteus.png
MENU TITLE Porteus-2.1 32bit

MENU WIDTH 30
MENU MARGIN 2
MENU ROWS 10
MENU HELPMSGROW 17
MENU TIMEOUTROW 28
MENU TABMSGROW 15
MENU CMDLINEROW 22
MENU HSHIFT 4
MENU VSHIFT 5

    menu color screen       37;40      #00000000 #00000000 none
    menu color border       30;44      #00000000 #00000000 none
    menu color title        1;36;44    #ffA32F2F #30003f07 none
    menu color unsel        37;44      #ff111B78 #003f7fbf none
    menu color hotkey       1;37;44    #ff8037b7 #00000000 none
    menu color sel          7;37;40    #ffffffff #00000000 none
    menu color hotsel       1;7;37;40  #ffaf67f7 #003f7fbf none
    menu color scrollbar    30;44      #00000000 #00000000 none

    menu color tabmsg       31;40      #ffA32222 #00000000 none
    menu color cmdmark      1;36;40    #ffff0000 #00000000 none
    menu color cmdline      37;40      #ffffffff #ff000000 none
    menu color pwdborder    30;47      #ffff0000 #00000000 std
    menu color pwdheader    31;47      #ffff0000 #00000000 std
    menu color pwdentry     30;47      #ffff0000 #00000000 std
    menu color timeout_msg  37;40      #ff809aef #00000000 none
    menu color timeout      1;37;40    #ffb72f9f #00000000 none
    menu color help         37;40      #ff666C85 #00000000 none
    menu color msg07        37;40      #90ffffff #00000000 std


LABEL mate
MENU LABEL Graphics mode (mate)
KERNEL vmlinuz
APPEND initrd=initrd.xz changes=/porteus timezone=America/Los_Angeles
TEXT HELP
    Run Porteus the best way we can.
    Try to autoconfigure graphics
    card and use the maximum
    allowed resolution
ENDTEXT

LABEL fresh
MENU LABEL Always Fresh
KERNEL vmlinuz
APPEND initrd=initrd.xz nomagic base_only norootcopy timezone=America
Los_Angeles
TEXT HELP
    Normally Porteus saves all changes
    to the /porteus/changes/ directory
    on the boot media (if writable)
    and restores them next boot.
    Use this option to start a fresh
    system, changes are not read from
    or written to any device
ENDTEXT

LABEL copy2ram
MENU LABEL Copy To RAM
KERNEL vmlinuz
APPEND initrd=initrd.xz copy2ram timezone=America/Los_Angeles
TEXT HELP
    Run Porteus the same as above,
    but first copy all data to RAM
    to get a huge speed increase
    (needs >768MB)
ENDTEXT

LABEL text
MENU LABEL Text mode
KERNEL vmlinuz
APPEND initrd=initrd.xz 3 timezone=America/Los_Angeles
TEXT HELP
    Run Porteus in text mode and
    start the command prompt only
ENDTEXT

LABEL pxe-boot
MENU LABEL Porteus as PXE server
KERNEL vmlinuz
APPEND initrd=initrd.xz pxe timezone=America/Los_Angeles
TEXT HELP
    Run Porteus as usual, but also
    initialize a PXE server.
    This will allow you to boot Porteus
    on other computers over a network
ENDTEXT

MENU SEPARATOR

LABEL plop
MENU LABEL PLoP BootManager
KERNEL plpbt
TEXT HELP
    Run the plop boot manager.
    This utility provides handy
    boot-USB options for machines
    with vintage/defective BIOS
ENDTEXT

LABEL hd
MENU LABEL Boot from the first hd
COM32 chain.c32
APPEND hd0 1
TEXT HELP
    Don't start Porteus at all, but
    rather run any operating system
    installed on the first partition
    of the hard drive
ENDTEXT
Last edited by budchekov on 27 Dec 2013, 01:10, edited 2 times in total.

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

Re: Save.dat container

Post#2 by Ed_P » 27 Nov 2013, 04:49

According to the menu's options only the Graphics Mode (mate) option saves changes.

Code: Select all

APPEND initrd=initrd.xz changes=/porteus timezone=America/Los_Angeles
Ed

budchekov
White ninja
White ninja
Posts: 9
Joined: 27 Nov 2013, 04:07
Distribution: Xubuntu 12.10
Location: Los Angeles

Re: Save.dat container

Post#3 by budchekov » 27 Nov 2013, 05:08

Thanks Ed, which means what? Why aren't I seeing the same file as in the tutorial. what am I doing wrong, amending that line does nothing, I just want to get this done.

donald
Full of knowledge
Full of knowledge
Posts: 1243
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

Re: Save.dat container

Post#4 by donald » 27 Nov 2013, 05:16

@ budchekov
Look at:
viewtopic.php?f=81&t=2405#p16630
If this don't help, ask again.

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

Re: Save.dat container

Post#5 by Ed_P » 27 Nov 2013, 14:24

budchekov wrote:Thanks Ed, which means what?
It means when you boot Porteus you get a menu of the options shown and you need to select the 1st one.

However, your question implies that you aren't booting Porteus. Why not and what are you trying to do?
Why aren't I seeing the same file as in the tutorial.
Have no idea what tutorial you are referring to.
what am I doing wrong, amending that line does nothing, I just want to get this done.
The line doesn't need changing. What are you trying to do? Are you working with the downloaded ISO file? Have you burned it to a CD or a USB? Have you tried booting it yet?
Ed

donald
Full of knowledge
Full of knowledge
Posts: 1243
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

Re: Save.dat container

Post#6 by donald » 27 Nov 2013, 16:01

@ budchekov
To make it short:
changes=/path/filename.dat

budchekov
White ninja
White ninja
Posts: 9
Joined: 27 Nov 2013, 04:07
Distribution: Xubuntu 12.10
Location: Los Angeles

Re: Save.dat container

Post#7 by budchekov » 27 Nov 2013, 18:16

EdP wrote: However, your question implies that you aren't booting Porteus. Why not and what are you trying to do?
Er, no offense but you make no sense whatsoever, of course it's booted, from a Flash drive and the 'tutorial's' from Porteus

http://www.porteus.org/tutorials/57-gen ... d-one.html

I thought Porteus looked like a substitute for Slacko/Precise Puppy but this looks like a deal breaker, no save no point.

donald
Full of knowledge
Full of knowledge
Posts: 1243
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

Re: Save.dat container

Post#8 by donald » 27 Nov 2013, 19:41

@budchekov
..did you get it working now?...
If not, how often would you like to get the same answer?
If you use a save.dat file, you have to edit the changes= line with the path
to your save.dat file!!!
btw:knowing where the Tutorial is, doesn't help much if you don't read it.

budchekov
White ninja
White ninja
Posts: 9
Joined: 27 Nov 2013, 04:07
Distribution: Xubuntu 12.10
Location: Los Angeles

Re: Save.dat container

Post#9 by budchekov » 27 Nov 2013, 20:11

Of course I read it, followed instructions here and there to a tee, it doesn't work, get a can't find/locate file during booting.
Thanks for your help guys, the 'excuse' for not making the process automated is ridiculous, it should be, jeez editing files, it's the 21'st century.
Later..uninstall, back to Puppy.

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

Re: Save.dat container

Post#10 by phhpro » 27 Nov 2013, 21:40

Persistent data is tricky business on LIVE systems. While your experience with Porteus may not have been as good as expected, may I return, my summary regarding Puppy was an equal no go - doesn't even come in 64 bit. Except for once on Lighthouse64 - not sure how and why - that feature ALWAYS failed; on either Puppy, FD, or LH. Perhaps one day there'll be a standard for this, to set a fixed path/filename across nix-based systems. For the time being, it's a lot more like try and error.

If you want to save your data, you'd probably want to spend an evening installing a real system onto a real machine. I never bother saving running off LIVE media. Whatever I deem important enough to survive the next boot goes up onto one of my servers. Besides, at least in Porteus you can always create a module from your user's home folder. Next time around simply fetch the module, activate, and there you are, settings data, rock 'n' roll... :Yahoo!:

donald
Full of knowledge
Full of knowledge
Posts: 1243
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

Re: Save.dat container

Post#11 by donald » 27 Nov 2013, 23:47

@budchekov
OK,maybe it's easier for you to format the flash-drive with a Linux-filesystem (ext2/3/4),
and make a new porteus Install.This way you don't need a save.dat file and
you will have persistence out of the box.

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

Re: Save.dat container

Post#12 by Ed_P » 28 Nov 2013, 04:09

budchekov wrote:
EdP wrote: However, your question implies that you aren't booting Porteus. Why not and what are you trying to do?
Er, no offense but you make no sense whatsoever, of course it's booted, from a Flash drive
Ok, ok. Now I think I understand your situation. Your booting from the 1st menu option and your changes are not being saved. Right? How did you allocate your Save file? If I recall with 2.1 I had to use Porteus to initialize the file before my changes were saved. Unfortunately I don't remember the steps I took to do that. Hopefully someone jumps in and explains them for you. Not hard, but with your size file may take a few minutes.
Ed

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

Re: Save.dat container

Post#13 by brokenman » 28 Nov 2013, 14:45

Thanks for your help guys, the 'excuse' for not making the process automated is ridiculous
Are you suggesting that Porteus somehow guesses exactly where on your system you placed the save file you created? Perhaps you should read the documentation. The process is completely automated if you are using a native linux filesystem. If you are using FAT or NTFS then you will need to tell Porteus where this file is. Pretty simple. Like all unices, it is ALL about config files. Even in the 21st century people still don't read documentation. Some things will never change I guess.
How do i become super user?
Wear your underpants on the outside and put on a cape.

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

Re: Save.dat container

Post#14 by phhpro » 29 Nov 2013, 04:00

@brokenman: Yep! Got my vote on that one ;) As we used to say in the good ol' days RTFM...

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

Re: Save.dat container

Post#15 by Ed_P » 29 Nov 2013, 13:34

phhpro wrote:As we used to say in the good ol' days RTFM...
And then along came forums, where people try to help others.
Ed

Locked