Somehow these days I always use Syslinux.
Great, at last we will have a syslinux expert.

Code: Select all
dd if=/dev/zero of=/media/KINGSTON4G/porteus/64/changes.dat bs=1M seek=512 count=0
mkfs.xfs -L LABEL /dev/USB_STICK_PARTITION
Code: Select all
USBSTICK/
|_boot/syslinux/
|_porteus/
|_32/
|__boot/{initrd.xz,vmlinuz}
|__porteus/{base/ make_iso.sh modules/ optional/ i486.sgn rootcopy/}
|_64/
|__boot/{initrd.xz,vmlinuz}
|__porteus/{base/ make_iso.sh modules/ optional/ x86_64.sgn rootcopy/}
|_[other folders]
Code: Select all
# 32bit (the #64bit problematic entry is just below)
LABEL XFCE
MENU LABEL XFCE 32bit
KERNEL /porteus/32/boot/vmlinuz
APPEND /porteus/32/boot/initrd.xz from=LABEL:KINGSTON4G/porteus/32 sgnfile=porteus-v3.1-i486.sgn changes=/porteus/32/save.dat [timezone... utc volume kmap]
(...)
# 64-bit
LABEL XFCE
MENU LABEL XFCE 64bit
KERNEL /porteus/64/boot/vmlinuz
APPEND initrd=/porteus/64/boot/initrd.xz from=LABEL:KINGSTON4G/porteus/64 sgnfile=porteus-v3.1-x86_64.sgn changes=/porteus/64/changes.dat [timezone... utc volume kmap]
(...)
LABEL fresh
MENU LABEL Always Fresh 64bit
KERNEL /porteus/64/boot/vmlinuz
APPEND initrd=/porteus/64/boot/initrd.xz from=LABEL:KINGSTON4G/porteus/64 sgnfile=porteus-v3.1-x86_64.sgn nomagic base_only norootcopy [timezone... utc volume kmap]
2. While I'm glad these forums are active and information rich, they're for the users and hobbyists. Which I'm not yet. Brand newcomers to a distro with no fellow using it like me, look for the information in the doc, FAQ or chat first when they exist and look well (the case). Digging in every forums is way more time consuming, that is, unless knowledgeable guy like you is kind enough to give somedirectionthe XFCE 64-bit: It boot till after loading all the modules and display something like "Started the Live system", then hang up and freeze complaining about '/union/etc/mtab' then '/union/dev/console' nonexistent.
(Highlighting by me)datruche wrote:Hi, found some good information in this post --thanks to françois, Rara, Rana and Ed_P
datruche wrote: Adding persistence:
I used dd for creating a '.dat' file per Porteus version.Not so used to formating files with a filesystems, I searched a bit as I couldn't find the way on porteus.org (http://www.porteus.org/component/conten ... tainer-and has no word on fallocate, dd and mkfs.xfs)Code: Select all
dd if=/dev/zero of=/media/KINGSTON4G/porteus/64/changes.dat bs=1M seek=512 count=0 mkfs.xfs -L LABEL /dev/USB_STICK_PARTITION
That 64/ porteus line shows an i486 .sgn file reference not a x86-64 one.File structure on my key look like this:Code: Select all
USBSTICK/ |_boot/syslinux/ |_porteus/ |_32/ |__boot/{initrd.xz,vmlinuz} |__porteus/{base/ make_iso.sh* modules/ optional/ porteus-v3.1-i486.sgn* rootcopy/} |_64/ |__boot/{initrd.xz,vmlinuz} |__porteus/{base/ make_iso.sh* modules/ optional/ porteus-v3.1-i486.sgn* rootcopy/} |_[other folders]
May be but that's not what you posted.datruche wrote:3. the i485.sgn comes with the Porteus XFCE 32bit entry, and the x86_64.sgn for the XFCE 64bit's. Seems right to me.
Sorry rara, I have issues with alpine / Gmail and with alpine & GMX.rara wrote:What specific problem are you having with Gmail. Sorry I couldn't comprehend what issue are you having for so long. If I could understand I could possibly help.Rava wrote:TL;DR: Off Topic issues with gmail
I don't copy.... The poster of that link was rara, and he mentioned me among others in the post you linked, but I am not sure what you try to tell me, sorry...Ed_P wrote:Check the poster of this link
In the folder tree yes (thanks I corrected it). But not in the included porteus.cfg code, which is what is used to boot rather than my "artistic creation" attempt to display the file structure on the USB stickfrançois wrote:3. porteus 64bit .sgn should be porteus-v3.1-x86_64.sgn. I do not see that in your folder tree.
Could it be you meant with the last sentence this:francois wrote:However, if you want many 64 bit installations of the same porteus version, then you will need to rename the porteus-v3.1-x86_64.sgn in your folder tree with different tag names. For example, for three porteus identical versions: 1_porteus-v3.1-x86_64.sgn, 2_porteus-v3.1-x86_64.sgn and 3_porteus-v3.1-x86_64.sgn, in each of the needing /porteus folders of these three installation. Then in your bootloader syntax you will need the sgnfile=1_porteus-v3.1-x86_64.sgn for the first installation, the sgnfile=1_porteus-v3.1-x86_64.sgn for the second installation ...
Can it happen, that with a custom made ISO, that it's corrupted, the iso builder not realizes that and computes the md5sum, which is then the same of the downloaded version, but the ISO is still corrupted?For the 64 bit edition, try to download another copy and verify the md5sums. It might be simply corrupted.
Code: Select all
^ Searching for porteus-v3.1-i486.sgn file
^ 'from= cheatcode is incorrect, ...
^ using Porteus data from /mnt/sdb1/porteus
^ creating live filesystem and inserting modules
sh: 7: uknown operand
(...)
Aha so which DM Porteus will load is hardcoded in the version. Could have understand that by myself sorry.françois wrote:1. In Syslinux's porteus.cfg does LABEL tell the OS which DM to start (eg xfce, Mate)?.
No. This is only the title you want to see at bootup. Though if this is the mate desktop and helps you as a mnemonic, just put it in there.
For the 64 bit edition, try to download another copy and verify the md5sums. It might be simply corrupted.
Hi Ran.. err, RavaRava wrote:Could it be you meant with the last sentence this:
"Then in your bootloader syntax you will need the sgnfile=1_porteus-v3.1-x86_64.sgn for the first installation, the sgnfile=2_porteus-v3.1-x86_64.sgn for the second installation ..." ???
Can it happen, that with a custom made ISO, that it's corrupted, the iso builder not realizes that and computes the md5sum, which is then the same of the downloaded version, but the ISO is still corrupted?
You are creating a 0Mb save file here.dd if=/dev/zero of=/media/KINGSTON4G/porteus/64/changes.dat bs=1M seek=512 count=0
mkfs.xfs -L LABEL /dev/USB_STICK_PARTITION
Code: Select all
SPECIAL NOTE FOR USING CHEATCODES WITH 'LABEL' AND 'UUID':
If you specify a LABEL or UUID with a cheatcode, remember that all
portions of these commands are case sensitive. You should use a
unique label for each of your partitions if you wish to use device
labels with your cheatcodes. Use the 'blkid' command to view your
device's UUID and LABEL. Using UUID and LABEL can be quite handy
because they are unique to your device, and your data will be found
and properly mapped on different hardware configurations.
Every cheatcode which contains a /path can take advantage of 'UUID:'
and 'LABEL:' extensions.
Examples:
changes=UUID:STrING-0F-ChARACtERS/path/file.dat
extramod=LABEL:YourLabelName/path/to_folder/with_modules
from=UUID:STrING-0F-ChARACtERS/path/folder
rootcopy=LABEL:YourLabelName/path/to_folder/with_files
into your /porteus/base folder there is only one DE module depending on the edition that you choose. The DE module could be alternatively placed in the /porteus/modules folder. There are methods involving syntax of the bootloader that will permit loading from the same porteus installation one of the DE modules. Personnally, I use the extramod= cheatcode to do so. See:
viewtopic.php?f=48&t=4360
Thanks for that!Porteus will boot to the desktop of whatever 003 module is loaded last. There should only be one. It resides in the porteus/base folder. If you want to choose between desktops at boot time you can download the extra 003-desktop.xzm modules from http://dl.porteus.org and place them in the porteus/optional folder. So (for example) if you have 003-xfce.xzm in the base folder and all the others in the optional folder you can use a cheatcode at boot time to choose. To do this hit TAB at the bootloader screen and type: noload=003-xfce load=003-kde
This will tell porteus not to load the 003-xfce module that is in the base folder, and to load any module from the optional folder that has the name "003-kde" in it. In this way you can decide on the desktop at boot. Be warned that any changes file that once saved 003-xfce related stuff will still be loaded (if you are using the changes= cheat) along with the 003-kde desktop which may or may not screw something up.
Got it, and the maths, thanks.## Create a 5Mb container.
dd if=/dev/zero of=/tmp/container.dat bs=512K count=10 <---- 5Mb is very small. This is just to demonstrate the mathematics.
## Format the container
mkfs.xfs /tmp/container.dat
Yeah they're easy to find on both site and USB stick. I had them with me when writing the syslinux, and notice how the 'from=' cheatcode doc has the boot from OS images perspective --not from folderS?Please read the document /mnt/sdXy/boot/docs/cheatcodes.txt for more information about cheatcodes.
Actualy we were talking of syslinux' LABEL. And yeah, accuracy for the system and only for it. I'm used to label partitions with uniques labels.> So LABEL is used to identify the LABEL of a partition. Using UUID will give more accuracy.