Page 1 of 1

Cheatcodes and removing USB

Posted: 19 Jul 2021, 01:14
by RMorris
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.

Cheatcodes and removing USB

Posted: 19 Jul 2021, 03:07
by ncmprhnsbl
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)

Cheatcodes and removing USB

Posted: 19 Jul 2021, 04:43
by Ed_P
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.

:)

Cheatcodes and removing USB

Posted: 19 Jul 2021, 07:27
by RMorris
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.