Page 1 of 1

[SOLVED] Modules deactivate after every reboot

Posted: 17 Feb 2017, 11:07
by accio
I am using Porteus 4.9 KDE. I couldn't use any module which i downloaded after reboot. I have to activate again and again. i saved the session in porteus/porteussave/porteussave.dat and also modified the porteus.cfg file 0 :wall: :wall: :wall:

But I have the modules which i downloaded in tmp/usm and other files are restored.

Re: Modules deactivate after every reboot

Posted: 17 Feb 2017, 11:22
by Blaze
Hi accio.
Copy your xzm modules from /tmp/usm/ to /mnt/sdb1/porteus/modules
where sdb1 - it's porteus partition

Re: Modules deactivate after every reboot

Posted: 17 Feb 2017, 11:33
by Bogomips
Going by what Ed always claims: changes=EXIT:/porteussave/porteussave.dat should also include the /tmp folder, should one wish to save changes at end of session, and not continuously.

Re: Modules deactivate after every reboot

Posted: 17 Feb 2017, 13:06
by accio
Bogomips wrote:Going by what Ed always claims: changes=EXIT:/porteussave/porteussave.dat should also include the /tmp folder, should one wish to save changes at end of session, and not continuously.
do you mean "changes=EXIT:/porteus/porteussave/porteussave.dat" because i have created a separate dir and I have multiple save sessions within in /porteus/.

Re: [SOLVED] Modules deactivate after every reboot

Posted: 17 Feb 2017, 13:34
by accio
Hi Blaze ,
Blaze wrote:Hi accio.
Copy your xzm modules from /tmp/usm/ to /mnt/sdb1/porteus/modules
where sdb1 - it's porteus partition
Fantastic! I was thinking the same. Works like charm :Yahoo!:

But how do I change the default download dir ? or do i have do it manually each time i download the modules ?

Re: Modules deactivate after every reboot

Posted: 17 Feb 2017, 14:04
by Blaze
accio, you could change download dir in USM, but don't do this, because all txz files of Slackware will be at the .../porteus/modules/ directory
Image

I think that is better way for you >>> open terminal (as root) and run these commands:

Code: Select all

su
toor
cp /tmp/usm/*.xzm $PORTDIR/modules/
Cheers

Re: Modules deactivate after every reboot

Posted: 17 Feb 2017, 14:31
by accio
Blaze wrote:accio, you could change download dir in USM, but don't do this, because all txz files of Slackware will be at the .../porteus/modules/ directory
Image

I think that is better way for you >>> open terminal (as root) and run these commands:

Code: Select all

su
toor
cp /tmp/usm/*.xzm $PORTDIR/modules/
Cheers
Thank you Blaze! :good:

But out of curiosity why we need to avoid .txz files in /porteus/modules ? (only to save memory ?)

Re: Modules deactivate after every reboot

Posted: 17 Feb 2017, 14:34
by accio
I wish this goes to admin report. If they fix this issue for Graphic mode it would be great or else newbies have to break their head :%) :lol:

Re: Modules deactivate after every reboot

Posted: 17 Feb 2017, 15:39
by Ed_P
Bogomips wrote: changes=EXIT:/porteussave/porteussave.dat should also include the /tmp folder
The save.dat file does not save the /tmp folder. And is only used when working with non-.ext file systems.
accio wrote:But out of curiosity why we need to avoid .txz files in /porteus/modules ? (only to save memory ?)
Well the .txz files aren't modules and therefore won't activate when Porteus boots. If Porteus loads the non-.xzm files yes they will use memory and slow the booting process. How much of an impact depends on the number of files and how big they are.

Blaze's commands work and if saved as a script would be very easy to use. Personally I manually copy and paste my USM modules into my Modules folder using a GUI file manager. (a common approach Windows users use.) :oops:

BTW
Blaze wrote:open terminal (as root) and run these commands:

Code: Select all

su
toor
cp /tmp/usm/*.xzm $PORTDIR/modules/
If one opens "terminal (as root)" one doesn't need the su command. :oops:

Re: Modules deactivate after every reboot

Posted: 18 Feb 2017, 19:03
by Bogomips
Ed_P wrote:
Bogomips wrote: changes=EXIT:/porteussave/porteussave.dat should also include the /tmp folder
The save.dat file does not save the /tmp folder.
Quoted out of context. :x

Quote should have been:
Going by what Ed always claims: changes=EXIT:/porteussave/porteussave.dat should also include the /tmp folder, should one wish to save changes at end of session, and not continuously.

Re: Modules deactivate after every reboot

Posted: 18 Feb 2017, 21:05
by Ed_P
Bogomips wrote:
Ed_P wrote:
Bogomips wrote: changes=EXIT:/porteussave/porteussave.dat should also include the /tmp folder
The save.dat file does not save the /tmp folder.
Quoted out of context. :x

Quote should have been:
Going by what Ed always claims: changes=EXIT:/porteussave/porteussave.dat should also include the /tmp folder, should one wish to save changes at end of session, and not continuously.
I have never claimed that the /tmp folder changes are saved.

That better?

Re: Modules deactivate after every reboot

Posted: 19 Feb 2017, 02:53
by francois
accio wrote:I wish this goes to admin report. If they fix this issue for Graphic mode it would be great or else newbies have to break their head :%) :lol:
It depends where your /porteus/modules folder is installed. Usb partition location could vary in term of the mounting point from a bootup to another bootup. This is not the case for a hdd install.

If your installation is in a fixed folder like for a hdd install or on ad designed usb key where the uuid has been specifically set for porteus in the bootloader as in (look for uuid in the thread:
viewtopic.php?t=946
you may change the destination folder for the builded modules in /etc/usm/usm.conf:

Code: Select all

# Where packages will be downloaded to.
STORAGE=/tmp/usm
is replaced by:
# Where packages will be downloaded to.

Code: Select all

STORAGE=/"path-to"/porteus/modules
- where "path-to" depends on your installation.

@Ed: no script involved here. :wink:

Re: Modules deactivate after every reboot

Posted: 21 Feb 2017, 12:58
by Bogomips
francois wrote:you may change the destination folder for the builded modules in /etc/usm/usm.conf:

Code: Select all

# Where packages will be downloaded to.
STORAGE=/tmp/usm
is replaced by:
# Where packages will be downloaded to.

Code: Select all

STORAGE=/"path-to"/porteus/modules
:roll:

Modules folder could get cluttered up with downloaded packages. I, for one, prefer to keep everything on a folder of my hdd. After all, these packages, as a whole, do not take up much space, and there is saving on bandwidth, when next time same package required for another module. The temporary storage can be redirected to any directory of choice:

Code: Select all

STORAGE=/Path/to/<folder for usm downloads>

Re: Modules deactivate after every reboot

Posted: 22 Feb 2017, 09:23
by accio
Bogomips wrote:
francois wrote:you may change the destination folder for the builded modules in /etc/usm/usm.conf:

Code: Select all

# Where packages will be downloaded to.
STORAGE=/tmp/usm
is replaced by:
# Where packages will be downloaded to.

Code: Select all

STORAGE=/"path-to"/porteus/modules
:roll:

Modules folder could get cluttered up with downloaded packages. I, for one, prefer to keep everything on a folder of my hdd. After all, these packages, as a whole, do not take up much space, and there is saving on bandwidth, when next time same package required for another module. The temporary storage can be redirected to any directory of choice:

Code: Select all

STORAGE=/Path/to/<folder for usm downloads> 
I am thinking to so this but I also don't want to make the boot heavy ( .txz files also included). I am afraid it will slow the speed. Anyway, I will give it a try!