hibernate on Porteus 5.0
-
- Samurai
- Posts: 191
- Joined: 06 Mar 2019, 15:14
- Distribution: Arch linux
hibernate on Porteus 5.0
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)
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)
- Rava
- 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
^
Can you post the script here so that we can look at it, please?
Can you post the script here so that we can look at it, please?
Cheers!
Yours Rava
Yours Rava
-
- Samurai
- Posts: 191
- Joined: 06 Mar 2019, 15:14
- Distribution: Arch linux
hibernate on Porteus 5.0
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)
It seems better to add resume append manually without erasing other special porteus's append ( like change=, load, noauto or baseonly)
- Rava
- 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
Which initrd do you use?
Look into /etc/porteus like so:is your initrd older?
(with you also get the versions of your base modules; with you only get your base modules)
Look into /etc/porteus like so:
Code: Select all
guest@porteus:~$ cat /etc/porteus/initrd.ver
initrd.xz:20220928
(with
Code: Select all
cat /etc/porteus/*
Code: Select all
cat /etc/porteus/00[123]-*
Cheers!
Yours Rava
Yours Rava
-
- Samurai
- Posts: 191
- Joined: 06 Mar 2019, 15:14
- Distribution: Arch linux
hibernate on Porteus 5.0
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
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
hibernate on Porteus 5.0
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
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

-
- Samurai
- Posts: 191
- Joined: 06 Mar 2019, 15:14
- Distribution: Arch linux
hibernate on Porteus 5.0
Hi
I create another swapfile in the root of /dev/sda6
edit grub and rc.local
Hibernate and resume work fine
thanks
however During creation I have the following message
should I keep swapfile's autorisation 0644 or change to 0600?
Code: Select all
The only difference from your approach
I have the swap file in root of the porteus drive
edit grub and rc.local
Hibernate and resume work fine

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.
- Rava
- 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
Good someone was able to finally help you.

Change it to 0600 - when the partition of /mnt/sda6/ allows you to do so.benjibasson wrote: ↑27 Oct 2022, 16:00should I keep swapfile's autorisation 0644 or change to 0600?
Cheers!
Yours Rava
Yours Rava