Page 1 of 1

[SOLVED] Problem loading porteussave.dat file

Posted: 14 Aug 2019, 14:39
by Tolkem
Hi everyone! Hope you're all having a nice life! :)

I'm having this annoying issue loading the porteussave.dat file, thing's I added the cheatcode

Code: Select all

APPEND changes=/mnt/sda1/porteussave.dat
however, the device's label will change everytime, so instead of being /sda1 it'll be /sdb1 so changes are not loaded and I have to edit the file again, place either /sda1 or /sdb1, reboot and changes are loaded but if reboot then have to do it all over again. How can I prevent this to happen? Thanks in advance for your answers.

Problem loading porteussave.dat file

Posted: 14 Aug 2019, 15:00
by Ed_P
Have you tried changes=/porteussave.dat?

Should you have multiple save.dat files present, as in 2 flash drives plugged in at the same time or one on the hard drive, you can use the changes=UUID: command to ensure the right drive's file gets used.

Problem loading porteussave.dat file

Posted: 14 Aug 2019, 19:06
by Tolkem
Ed_P wrote:
14 Aug 2019, 15:00
Have you tried changes=/porteussave.dat?
Not sure I understand what you mean...are you suggesting to try

Code: Select all

APPEND changes=porteussave.dat
instead of

Code: Select all

APPEND changes=/mnt/sda1/porteussave.dat
in porteus.cfg? This is how I did it

Code: Select all

LABEL GRAPHICAL
MENU LABEL Graphics mode
KERNEL /boot/syslinux/vmlinuz
INITRD /boot/syslinux/initrd.xz
APPEND changes=/mnt/sda1/porteussave.dat
TEXT HELP
    Run Porteus the best way we can.
    Try to autoconfigure graphics
    card and use the maximum
    allowed resolution
ENDTEXT
As far as I understood by reading throught the forum that's the correct way to do it, isn't it?
Ed_P wrote:
14 Aug 2019, 15:00
Should you have multiple save.dat files present, as in 2 flash drives plugged in at the same time or one on the hard drive, you can use the changes=UUID: command to ensure the right drive's file gets used.
I don't have multiple save.dat just one but I do have 1 sd card and one usb hdd and they both are mounted in /mnt as far as I can recall (I'm not in porteus right now) will check later but I'm pretty sure I'm right. Will have to read about the changes=UUUID cheatcode to learn how to use it. Thanks for your reply. :thumbsup:

Problem loading porteussave.dat file

Posted: 14 Aug 2019, 19:59
by Ed_P
Tolkem wrote:
14 Aug 2019, 19:06
Ed_P wrote:
14 Aug 2019, 15:00
Have you tried changes=/porteussave.dat?
Not sure I understand what you mean...are you suggesting to try

Code: Select all

APPEND changes=porteussave.dat
instead of

Code: Select all

APPEND changes=/mnt/sda1/porteussave.dat
in porteus.cfg?
No. I am saying try: APPEND changes=/porteussave.dat in porteus.cfg.
Will have to read about the changes=UUUID cheatcode to learn how to use it. Thanks for your reply. :thumbsup:
Excellent. And you're welcome. :)

Problem loading porteussave.dat file

Posted: 14 Aug 2019, 20:32
by donald
Run as root blkid in the terminal to get the UUID string.

Example:
APPEND from=UUID:01ef7192 changes=UUID:01ef7192/path/to/save.dat

Problem loading porteussave.dat file

Posted: 14 Aug 2019, 22:22
by Tolkem
Ed_P wrote:
14 Aug 2019, 19:59
No. I am saying try: APPEND changes=/porteussave.dat in porteus.cfg.
Ah..sorry, I missed the "/" after "=" Ok, will try that.
donald wrote:
14 Aug 2019, 20:32
Run as root blkid in the terminal to get the UUID string.

Example:
APPEND from=UUID:01ef7192 changes=UUID:01ef7192/path/to/save.dat
Thanks for the reply, like I said will have to read a bit to learn about this approach and will try that to see if it works.

Problem loading porteussave.dat file

Posted: 16 Aug 2019, 21:54
by Tolkem
Ed_P wrote:
14 Aug 2019, 19:59
No. I am saying try: APPEND changes=/porteussave.dat in porteus.cfg.
This worked! Thanks! Problem solved. :Yahoo!: