[SOLVED] Modules deactivate after every reboot

Post here if you are a new Porteus member and you're looking for some help.
Post Reply
accio
White ninja
White ninja
Posts: 14
Joined: 16 Feb 2017, 14:14
Distribution: Slackware
Location: Finland

[SOLVED] Modules deactivate after every reboot

Post#1 by accio » 17 Feb 2017, 11:07

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.
Last edited by accio on 17 Feb 2017, 14:38, edited 1 time in total.

User avatar
Blaze
DEV Team
DEV Team
Posts: 1496
Joined: 28 Dec 2010, 11:31
Distribution: ⟰ Porteus 3.2 Cinnamon x86_64
Location: ☭ Russian Federation, Lipetsk region, Dankov
Contact:

Re: Modules deactivate after every reboot

Post#2 by Blaze » 17 Feb 2017, 11:22

Hi accio.
Copy your xzm modules from /tmp/usm/ to /mnt/sdb1/porteus/modules
where sdb1 - it's porteus partition
Linux porteus 4.13.3-porteus #1 SMP PREEMPT Sat Sep 23 18:22:13 x86_64 Intel(R) Core(TM) i5-6600K CPU @ 3.50GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Tobago PRO [Radeon R7 360 / R9 360 OEM] (rev 81) » Vengeance LPX 16GB DDR4 K2 3200MHz C16

Bogomips
Full of knowledge
Full of knowledge
Posts: 2563
Joined: 25 Jun 2014, 15:21
Distribution: 3.2.2 Cinnamon & KDE5
Location: London

Re: Modules deactivate after every reboot

Post#3 by Bogomips » 17 Feb 2017, 11:33

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.
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB

accio
White ninja
White ninja
Posts: 14
Joined: 16 Feb 2017, 14:14
Distribution: Slackware
Location: Finland

Re: Modules deactivate after every reboot

Post#4 by accio » 17 Feb 2017, 13:06

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/.

accio
White ninja
White ninja
Posts: 14
Joined: 16 Feb 2017, 14:14
Distribution: Slackware
Location: Finland

Re: [SOLVED] Modules deactivate after every reboot

Post#5 by accio » 17 Feb 2017, 13:34

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 ?
Last edited by accio on 17 Feb 2017, 14:39, edited 1 time in total.

User avatar
Blaze
DEV Team
DEV Team
Posts: 1496
Joined: 28 Dec 2010, 11:31
Distribution: ⟰ Porteus 3.2 Cinnamon x86_64
Location: ☭ Russian Federation, Lipetsk region, Dankov
Contact:

Re: Modules deactivate after every reboot

Post#6 by Blaze » 17 Feb 2017, 14:04

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
Linux porteus 4.13.3-porteus #1 SMP PREEMPT Sat Sep 23 18:22:13 x86_64 Intel(R) Core(TM) i5-6600K CPU @ 3.50GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Tobago PRO [Radeon R7 360 / R9 360 OEM] (rev 81) » Vengeance LPX 16GB DDR4 K2 3200MHz C16

accio
White ninja
White ninja
Posts: 14
Joined: 16 Feb 2017, 14:14
Distribution: Slackware
Location: Finland

Re: Modules deactivate after every reboot

Post#7 by accio » 17 Feb 2017, 14:31

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 ?)

accio
White ninja
White ninja
Posts: 14
Joined: 16 Feb 2017, 14:14
Distribution: Slackware
Location: Finland

Re: Modules deactivate after every reboot

Post#8 by accio » 17 Feb 2017, 14:34

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:

User avatar
Ed_P
Contributor
Contributor
Posts: 3314
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 3.2.2 64-bit ISO
Location: Western NY, USA

Re: Modules deactivate after every reboot

Post#9 by Ed_P » 17 Feb 2017, 15:39

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:
Ed

Bogomips
Full of knowledge
Full of knowledge
Posts: 2563
Joined: 25 Jun 2014, 15:21
Distribution: 3.2.2 Cinnamon & KDE5
Location: London

Re: Modules deactivate after every reboot

Post#10 by Bogomips » 18 Feb 2017, 19:03

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.
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB

User avatar
Ed_P
Contributor
Contributor
Posts: 3314
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 3.2.2 64-bit ISO
Location: Western NY, USA

Re: Modules deactivate after every reboot

Post#11 by Ed_P » 18 Feb 2017, 21:05

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?
Ed

User avatar
francois
Contributor
Contributor
Posts: 5068
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Re: Modules deactivate after every reboot

Post#12 by francois » 19 Feb 2017, 02:53

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:
https://forum.porteus.org/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:
Voltaire: Le mieux est l'ennemi du bien.

Bogomips
Full of knowledge
Full of knowledge
Posts: 2563
Joined: 25 Jun 2014, 15:21
Distribution: 3.2.2 Cinnamon & KDE5
Location: London

Re: Modules deactivate after every reboot

Post#13 by Bogomips » 21 Feb 2017, 12:58

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>
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB

accio
White ninja
White ninja
Posts: 14
Joined: 16 Feb 2017, 14:14
Distribution: Slackware
Location: Finland

Re: Modules deactivate after every reboot

Post#14 by accio » 22 Feb 2017, 09:23

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!

Post Reply