Cheatcodes and removing USB

Post here if you are a new Porteus member and you're looking for some help.
RMorris
White ninja
White ninja
Posts: 11
Joined: 20 Dec 2019, 00:55
Distribution: Chrome

Cheatcodes and removing USB

Post#1 by RMorris » 19 Jul 2021, 01:14

Hello,

I am new to this, and loving it!

I have two questions:

1) I am using the following cheatcodes and had hoped / expected to be able to remove the USB once successflly booted.

changes=/porteus changes-ro copy2ram noauto

However, what I am finding is that once removed, the booted system becomes unstable and crashes.
I only have the base modules plus the Chrome Browser module.
Are these cheat codes conflicting with each other?

2) Are modules readonly all the time?
If I boot without the changes-ro cheatcode, I undertand that my settings etc will be persistent. Do any of these get saved in a module? Or are the changes saved in the changes folder then merged back to the live filesystem on boot?

Thank you in advance for any advice.

Regards,

Richard.

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

Cheatcodes and removing USB

Post#2 by ncmprhnsbl » 19 Jul 2021, 03:07

in theory what you're doing should work, but apparently not :) something to do with way /changes is mounted, even with changes-ro.. i'm guessing..
a way around this is to make a module of your changes folder:

Code: Select all

(as root)
#dir2xzm /path/to/changes /tmp/changes.xzm
mv /tmp/changes.xzm /path/to/porteus/modules
and not use the changes= cheatcode (or changes-ro).
there's save-session utility too, which has an option to save to module, if you want to update(replace) an existing changes module..
and yes, modules are always mounted readonly. (of course, if extracted, they can be modified however you want)
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

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

Cheatcodes and removing USB

Post#3 by Ed_P » 19 Jul 2021, 04:43

Hello RMorris. Welcome to Porteus.

Running without the changes= cheatcode makes the run read only, no need for the changes-ro cheatcode.

In addition to ncmp's suggestions here some others to save changes:

1. Creating a script to manually make a module of the changes important to you.
2. Create a save.dat file using the changes= cheatcode and making the changes you want to keep to the system, shutting down the system, copying the save.dat file to the modules folder and renaming it as .xzm, reboot without the changes= cheatcode.

Personally I think ncmp's save-session suggestion is the easiest. Menu > Admin > Porteus Setting Centre > top menu Down Arrow.

:)
Ed

RMorris
White ninja
White ninja
Posts: 11
Joined: 20 Dec 2019, 00:55
Distribution: Chrome

Cheatcodes and removing USB

Post#4 by RMorris » 19 Jul 2021, 07:27

Thank you Ed_P & ncmprhnsbl for your replies - much appreciated.

It makes sense now and I think I will use both your suggestions to create a module once I have my desktop/settings the way I want them.
I am sure I will be back to the forum with more questions as I explore the power of this very clever distribution.

Thank you once again,

Richard.

Post Reply