hibernate on Porteus 5.0

Post here if you are a new Porteus member and you're looking for some help.
benjibasson
Samurai
Samurai
Posts: 191
Joined: 06 Mar 2019, 15:14
Distribution: Arch linux

hibernate on Porteus 5.0

Post#16 by benjibasson » 27 Oct 2022, 04:20

I don't know how to use the script update-initramfs on Porteus linux.
in fact I'm afraid that it will interfer with ubuntu's initrd, or empty porteus's initrd and remove every porteus's cheatcode ( because /etc/initramfs-tools/conf.d is empty, there is no script, no initramfs.conf suitable for porteus)

User avatar
Rava
Contributor
Contributor
Posts: 5424
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

hibernate on Porteus 5.0

Post#17 by Rava » 27 Oct 2022, 04:44

^
Can you post the script here so that we can look at it, please?
Cheers!
Yours Rava

benjibasson
Samurai
Samurai
Posts: 191
Joined: 06 Mar 2019, 15:14
Distribution: Arch linux

hibernate on Porteus 5.0

Post#18 by benjibasson » 27 Oct 2022, 07:58

In didn't download the script. If there is not the init feated on porteus I won't try to do the sorcerer's apprentice.

It seems better to add resume append manually without erasing other special porteus's append ( like change=, load, noauto or baseonly)

User avatar
Rava
Contributor
Contributor
Posts: 5424
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

hibernate on Porteus 5.0

Post#19 by Rava » 27 Oct 2022, 09:55

Which initrd do you use?
Look into /etc/porteus like so:

Code: Select all

guest@porteus:~$ cat /etc/porteus/initrd.ver 
initrd.xz:20220928
is your initrd older?

(with

Code: Select all

cat /etc/porteus/*
you also get the versions of your base modules; with

Code: Select all

cat /etc/porteus/00[123]-*
you only get your base modules)
Cheers!
Yours Rava

benjibasson
Samurai
Samurai
Posts: 191
Joined: 06 Mar 2019, 15:14
Distribution: Arch linux

hibernate on Porteus 5.0

Post#20 by benjibasson » 27 Oct 2022, 10:28

Hi
I'm using this initrd http://mirrors.dotsrc.org/porteus/x86_6 ... /initrd.xz
Also use same date 2022/09/24 001-2-3 base module

Testuser
Samurai
Samurai
Posts: 138
Joined: 26 May 2021, 15:11
Distribution: Porteus-v5.0-64-LXDE

hibernate on Porteus 5.0

Post#21 by Testuser » 27 Oct 2022, 14:18

Hey Benji,

One query was it working on previous version of Porteus (sorry if i have missed this information above).

For me this was working fine in porteus 5.0 rc.3. Not had enough time to check when changed to Porteus 5.0, but hope this will work there as well

The only difference from your approach
I have the swap file in root of the porteus drive

If swap is not on then provide - sudo swapon /mnt/sda2/swapfile.swap
Activate .swap file in rc.local (/etc/rc.d/rc.local)
add this line
sudo mount /dev/sda2 /mnt/sda2 - to make swap file available on boot.
swapon /mnt/sda2/swapfile.swap

Change porteus.cfg
APPEND initrd=initrd.xz fsck changes="your parameter" resume=/dev/sda2 resume_offset="your offsetnumber"

Please try this :)

benjibasson
Samurai
Samurai
Posts: 191
Joined: 06 Mar 2019, 15:14
Distribution: Arch linux

hibernate on Porteus 5.0

Post#22 by benjibasson » 27 Oct 2022, 16:00

Hi

Code: Select all

The only difference from your approach
I have the swap file in root of the porteus drive
I create another swapfile in the root of /dev/sda6
edit grub and rc.local

Hibernate and resume work fine :celebrate3: thanks

however During creation I have the following message

Code: Select all

mkswap: /mnt/sda6/swapfile.swap: insecure permissions 0644, fix with: chmod 0600 /mnt/sda6/swapfile.swap 
swapon: /mnt/sda6/swapfile.swap: insecure permissions 0644, 0600 suggested.
should I keep swapfile's autorisation 0644 or change to 0600?

User avatar
Rava
Contributor
Contributor
Posts: 5424
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

hibernate on Porteus 5.0

Post#23 by Rava » 27 Oct 2022, 19:10

benjibasson wrote:
27 Oct 2022, 16:00
Hibernate and resume work fine :celebrate3: thanks
Good someone was able to finally help you. :)
benjibasson wrote:
27 Oct 2022, 16:00
should I keep swapfile's autorisation 0644 or change to 0600?
Change it to 0600 - when the partition of /mnt/sda6/ allows you to do so.
Cheers!
Yours Rava

Post Reply