[Solved]Does not store configuration and data

Arch based Porteus community project

Moderator: M. Eerie

rrbs
White ninja
White ninja
Posts: 13
Joined: 07 Apr 2018, 14:28
Distribution: porteus

[Solved]Does not store configuration and data

Post#1 by rrbs » 29 Oct 2022, 10:44

Hello,
I want to boot from usb stick and keep my configuration and also the after installed programs.
I have a Fat32 partition on the HDD where the porteus file is stored.
The file is also created.
When I reboot everything is gone again.

What do I have to do to make it work?

Thanks for your help.

ralf
Last edited by rrbs on 02 Nov 2022, 21:04, edited 1 time in total.

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3941
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

Does not store configuration and data

Post#2 by ncmprhnsbl » 29 Oct 2022, 14:28

hi, have you added the path to your save file to either:
<HDD where the porteus file is stored>/config/cheatcodes : changes=/path/to/savefile.dat
or
<HDD where the porteus file is stored>/boot/syslinux/porteus.cfg on the APPEND line of the first boot entry
?
although, it seems like you're saying that you're booting from a usb stick but using porteus (folders of modules etc) from the HDD?
so.. the boot folder is on the usb? if that's right, it should be doable..
have good read of /boot/docs/cheatcodes.txt .. with the load= and extramod= codes you can load modules from anywhere..
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

rrbs
White ninja
White ninja
Posts: 13
Joined: 07 Apr 2018, 14:28
Distribution: porteus

Does not store configuration and data

Post#3 by rrbs » 29 Oct 2022, 16:28

Thanks.

How can I install programs on nemesis that are still there after reboot?

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3941
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

Does not store configuration and data

Post#4 by ncmprhnsbl » 30 Oct 2022, 08:42

rrbs wrote:
29 Oct 2022, 16:28
How can I install programs on nemesis that are still there after reboot?
the best way is make modules:
(commands run as root in a terminal)
1. set-pman (gets the pacman keys/database stuff ready for use and dumps it in a module for you)
2. pman -Ss <package-name> (searches for a package . .. can use pacman -Ss ..same thing) ( use -Si for more detail info)
3. pmod <package-name(s)> (downloads and creates a module or modules of desired package and required dependencies)(same as pman -Sw)
4. the resulting module(s) is in /tmp/, copy it to <location_of>/porteus/modules if you want them activated at boot or somewhere else on you HDD or usb to activate on demand.
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

rrbs
White ninja
White ninja
Posts: 13
Joined: 07 Apr 2018, 14:28
Distribution: porteus

Does not store configuration and data

Post#5 by rrbs » 30 Oct 2022, 12:50

When I try to copy a module from /tmp to /mnt/sr0/porteus/modules, I get an error.
/mnt/sr0/porteus/modules permission denied

How can I copy the built module?
pmod not found
Do I need to install it first?
(Nemesis-v22.8+1)

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3941
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

Does not store configuration and data

Post#6 by ncmprhnsbl » 30 Oct 2022, 13:06

rrbs wrote:
30 Oct 2022, 12:50
When I try to copy a module from /tmp to /mnt/sr0/porteus/modules, I get an error.
/mnt/sr0/porteus/modules permission denied
/mnt/sr0/ is a CD (which i presume you're booting from?), you can't write to that.. you need to copy it to a hard drive or usb stick..
rrbs wrote:
30 Oct 2022, 12:50
pmod is not present.
pmod is just an alias for "pman -Sw" (defined in /etc/bash/porteus.bashrc)
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

rrbs
White ninja
White ninja
Posts: 13
Joined: 07 Apr 2018, 14:28
Distribution: porteus

Does not store configuration and data

Post#7 by rrbs » 30 Oct 2022, 13:13

Thanks for your help.
I will try it.

rrbs
White ninja
White ninja
Posts: 13
Joined: 07 Apr 2018, 14:28
Distribution: porteus

Does not store configuration and data

Post#8 by rrbs » 30 Oct 2022, 16:43

Now I have another problem.

- setup-pman
then:
pman -Sw firefox
A fatal error occurred.
/usr/local/bin/pman
LINE:438
No modules config file found.

what this? I have done setup-pman after all.

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3941
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

Does not store configuration and data

Post#9 by ncmprhnsbl » 30 Oct 2022, 23:46

rrbs wrote:
30 Oct 2022, 16:43
what this? I have done setup-pman after all.
it's looking for /etc/porteus.d/modules, which is a config file that (should) exists in <your_install_media>/config directory .. where various options can be set..
<your_install_media> should contain these directories: boot, EFI, porteus, config ..
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

rrbs
White ninja
White ninja
Posts: 13
Joined: 07 Apr 2018, 14:28
Distribution: porteus

Does not store configuration and data

Post#10 by rrbs » 31 Oct 2022, 16:02

ah, ok.

I now have the modules in:
/mnt/sda4/porteus/modules

How can I activate and use this now?

User avatar
Ed_P
Contributor
Contributor
Posts: 8374
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Does not store configuration and data

Post#11 by Ed_P » 31 Oct 2022, 16:31

They will automatically be activated when you reboot.
Ed

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3941
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

Does not store configuration and data

Post#12 by ncmprhnsbl » 31 Oct 2022, 23:14

rrbs wrote:
31 Oct 2022, 16:02
How can I activate and use this now?
as Ed says... as well: simply (as root):

Code: Select all

activate /path/to/module.xzm
or in a file manager: rightclick>open>activate
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
Ed_P
Contributor
Contributor
Posts: 8374
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Does not store configuration and data

Post#13 by Ed_P » 01 Nov 2022, 00:04

I believe in a file manager double clicking the .xzm file invokes the activate function.
Ed

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3941
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

Does not store configuration and data

Post#14 by ncmprhnsbl » 01 Nov 2022, 01:48

Ed_P wrote:
01 Nov 2022, 00:04
I believe in a file manager double clicking the .xzm file invokes the activate function.
well, in nemesis, i couldn't guarantee that, because for some unknown reason, it seems to default to deactivate..
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
Ed_P
Contributor
Contributor
Posts: 8374
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Does not store configuration and data

Post#15 by Ed_P » 01 Nov 2022, 05:28

ncmprhnsbl wrote:
01 Nov 2022, 01:48
it seems to default to deactivate..
Even for modules not activated! :o
Ed

Post Reply