[SOLVED] Keeping changes - Porteus 4, HDD install, ext4 partition

Post here if you are a new Porteus member and you're looking for some help.
jano
White ninja
White ninja
Posts: 21
Joined: 04 Oct 2015, 11:33
Distribution: Porteus 5rc1 / Linux Mint
Location: Madrid - Spain

[SOLVED] Keeping changes - Porteus 4, HDD install, ext4 partition

Post#1 by jano » 10 May 2020, 12:00

Back again after several years , I 'd appreciate some help to keep changes in Porteus 4 LxQt.

I have it installed in my second hard drive, in a ext4 partition.

I boot it from grub2 (in my first drive):

Code: Select all

menuentry 'Porteus 4' {
	set root='hd1,msdos3'
	search --no-floppy --fs-uuid --set=root c5b47b60-9698-4fbe-8089-f5ad530ea14e
	linux /boot/syslinux/vmlinuz 
	initrd /boot/syslinux/initrd.xz 
}
but inserting cheatcodes after linux /boot/syslinux/vmlinuz has no effect at all. And adding an APPEND line after the initrd gives an error.

On the other hand, the cheatcodes in porteus-v4.0-x86_64.cfg also do not have any effect :wall: :

Code: Select all

## Tell porteus where the changes folder is
noswap
changes=/porteus
changes=EXIT:
I have tried saving the session to a folder: it creates a /changes subfolder and populates it with subfolders and files, but they don't seem to be read while booting. Likewise, saving to a save.dat [though I've read that being in a linux partition it is unnecesary] is useless.

Contents of /var/log/porteus-livedbg:

Code: Select all

# Recognized devices:
/dev/sda1: LABEL="WINDOWS" UUID="01D0D84FD9F82A40" TYPE="ntfs" 
/dev/sda2: LABEL="WIN7" UUID="6F820263156AC014" TYPE="ntfs" 
/dev/sda3: LABEL="DATOS_WINDOWS" UUID="01D0D850871CA890" TYPE="ntfs" 
/dev/sda4: LABEL="MINT" UUID="132b03ba-e332-40f6-bc71-0eb192d815de" TYPE="ext4" 
/dev/sdb1: LABEL="DATOS_NTFS" UUID="2FC8D6F652CB2055" TYPE="ntfs" 
/dev/sdb2: LABEL="DATOS_NTFS_2" UUID="485C6D5A5C6D4432" TYPE="ntfs" 
/dev/sdb3: LABEL="PORTEUS_4" UUID="c5b47b60-9698-4fbe-8089-f5ad530ea14e" TYPE="ext4" 

# Booting device:
/mnt/sdb3

# Porteus data found in:
/mnt/sdb3/porteus

# Changes are stored in:
memory

# Non standard /rootcopy dir:
none

# Modules activated during boot time:
/mnt/sdb3/porteus/base/000-kernel.xzm
/mnt/sdb3/porteus/base/001-core.xzm
/mnt/sdb3/porteus/base/002-xorg.xzm
/mnt/sdb3/porteus/base/003-lxqt.xzm
/mnt/sdb3/porteus/modules/LibreOffice6.2.2_Linux_x86-64_langhelppack_es.xzm
/mnt/sdb3/porteus/modules/changes-200510.xzm
/mnt/sdb3/porteus/modules/firefox-74.0-x86_64-enUS.xzm
/mnt/sdb3/porteus/modules/libreoffice6.2-6.2.2.2-x86_64-3_sam.pack.xzm
Saving the session to a module and storing it in /porteus/modules folder has allowed me to keep firefox and libreoffice configuration and bookmarks.
Last edited by jano on 10 May 2020, 17:28, edited 1 time in total.

User avatar
Ed_P
Contributor
Contributor
Posts: 8343
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Keeping changes - Porteus 4, HDD install, ext4 partition

Post#2 by Ed_P » 10 May 2020, 16:21

I think in your grub2 parms you don't need the 2 set root parms. Use either the 1st one or the search one.

Cheatcodes definitely work after the /boot/syslinux/vmlinuz parm.

Cheatcodes in the porteus-v4.0-x86_64.cfg file are problematic. Use the APPEND lines in the /boot/syslinux/porteus.cfg file.

I'm not sure the changes=EXIT parm works with ext4 file systems. It does work with save.dat files which are used with FAT and NTFS file systems.

Manually saving changes to a module works.
Ed

jano
White ninja
White ninja
Posts: 21
Joined: 04 Oct 2015, 11:33
Distribution: Porteus 5rc1 / Linux Mint
Location: Madrid - Spain

Keeping changes - Porteus 4, HDD install, ext4 partition

Post#3 by jano » 10 May 2020, 16:27

Thank you for the fast reply. :beer:

You are indeed right about the grub2 configuration: only the second set root line (search ...) is needed. And placing the cheatcodes after linux /boot/syslinux/vmlinuz does work.

User avatar
Ed_P
Contributor
Contributor
Posts: 8343
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

[SOLVED] Keeping changes - Porteus 4, HDD install, ext4 partition

Post#4 by Ed_P » 10 May 2020, 17:58

:good: :)
Ed

Post Reply