How to create a Multi-Porteus Boot USB flash drive?

Technical issues/questions of an intermediate or advanced nature.
rych
Warlord
Warlord
Posts: 622
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 5.0 x64 OpenBox
Location: NZ
Contact:

How to create a Multi-Porteus Boot USB flash drive?

Post#31 by rych » 02 Nov 2023, 13:20

Rava wrote:
02 Nov 2023, 07:51
Is it a USB thumbdrive or an external USB harddisk?
No difference these days. Both are external, both are USB, both are compact; whether flash memory or SSD disk inside makes no difference to the OS

rych
Warlord
Warlord
Posts: 622
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 5.0 x64 OpenBox
Location: NZ
Contact:

How to create a Multi-Porteus Boot USB flash drive?

Post#32 by rych » 02 Nov 2023, 13:27

Rava wrote:
02 Nov 2023, 07:51
why do you use as the last partition NTFS for data?

When it's a USB thumbdrive Windoze can only see the 1st partition, so any Windoze could not access any data on that sdX4, unlike when it's an external harddrive then Windoze can access all partitions if it knows these kind of partitions (e.g. FAT, VFAT. NTFS)

Or did this behaviour of Windoze change in the newest Windoze versions, e.g. in W10 or W11?
"USB thumbdrive Windoze can only see the 1st partition" -- Windows (recent versions, I vaguely remember there was some weirdness with Windows 7 -- but that's like 10 years ago!) can see all partitions on my USB flash (or USB SSD these days) -- except the ext4 partition. It obviously sees the first FAT32 EFI partition, and the NTFS partition I have there for precisely this reason: to be easily seen by Windows.

On the ext4 partition one could then have /porteus and /porteux folders and the corresponding /changes and /changex :)

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

How to create a Multi-Porteus Boot USB flash drive?

Post#33 by Rava » 02 Nov 2023, 17:26

rych wrote:
02 Nov 2023, 13:27
(recent versions, I vaguely remember there was some weirdness with Windows 7 -- but that's like 10 years ago!)
The most recent Windoze version I paid for and therefore used was precisely that: Witzlos 7.
But I can live with the fact not knowing about the more recent happenings in the Witless-OS world. :celebrate3:

I live a more content life without any Windoze in my life, for some years now. Image

Still I will remember that recent WitlessOS can see all of USB thumbdrive partitions.
Thanks for the heads up.

Added in 5 minutes 41 seconds:
Generic question:
The pokemon 8GB USB thumbdrive I choose has a syslinux.porteus/ and a syslinux/ folder in its boot/syslinux/
I presume the syslinux.porteus/ is just a currently non functional backup.

But in syslinux/ syslinux.cfg reads so:

Code: Select all

root@rava:/mnt/sde1/boot/syslinux# cat syslinux.cfg 
###---for FLASH MEMORY drives only---###
ui menu.c32
prompt 0
timeout 20
ontimeout puppy
menu title SYSLINUX system loader

LABEL puppy
MENU LABEL System GNU/Linux Puppy
COM32 linux.c32
KERNEL /vmlinuz
INITRD /initrd.gz
APPEND pmedia=usbflash pfix=fsck,copy pkeys=de boot_delay=0 bootmem_debug debug earlyprintk=vga,keep elevator=noop initcall_debug load_ramdisk=1 loglevel=7 max_loop=256 prompt_ramdisk=0 rootdelay=0 ro video=1024x768 vmalloc=384M

root@rava:/mnt/sde1/boot/syslinux# 

Is the reference of KERNEL /vmlinuz and INITRD /initrd.gz referring to /mnt/sde1/vmlinuz and /mnt/sde1/initrd.gz or towards /mnt/sde1/boot/syslinux/vmlinuz and /mnt/sde1/boot/syslinux/initrd.gz ?
Cheers!
Yours Rava

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

How to create a Multi-Porteus Boot USB flash drive?

Post#34 by Ed_P » 02 Nov 2023, 22:04

Rava wrote:
02 Nov 2023, 17:32
Is the reference of KERNEL /vmlinuz and INITRD /initrd.gz referring to /mnt/sde1/vmlinuz and /mnt/sde1/initrd.gz or towards /mnt/sde1/boot/syslinux/vmlinuz and /mnt/sde1/boot/syslinux/initrd.gz ?
They are pointing to whatever folder root is pointing to at the time they are executed.
Ed

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

How to create a Multi-Porteus Boot USB flash drive?

Post#35 by Rava » 03 Nov 2023, 02:18

Ed_P wrote:
02 Nov 2023, 22:04
They are pointing to whatever folder root is pointing to at the time they are executed.
But /vmlinuz is an absolute path.

Your reply suggests it is uncertain where they are pointing to?
It could be /mnt/sde1/vmlinuz or /mnt/sde1/boot/syslinux/vmlinuz or even some other folder since who knows whatever folder root is pointing to at the time they are executed? How can that be determined?
Such vagueness when it comes to the two most crucial essential files to be loaded prior anything else when it comes to any Linux OS is a bit unsettling.
────────────────────────────────────────────────────
Also, Ed_P, please reply to this post Ravas coding goodies (Post by Rava #96906) especially this part
Rava wrote:
01 Nov 2023, 22:10
I presume you do not know what the program "tail" does?
concerning this part of your reply:
Ed_P wrote:
01 Nov 2023, 21:49
I can assure you I don't see 860 segments listed in your
[…]
with or without the "-------- --------- -------- ----" line.
Cheers!
Yours Rava

Otto
White ninja
White ninja
Posts: 14
Joined: 09 Nov 2023, 18:31
Distribution: linux

How to create a Multi-Porteus Boot USB flash drive?

Post#36 by Otto » 15 Nov 2023, 16:15

Also, Ed_P, I know you have been experimenting a lot with grub2. Have you found a way to force a grub2 EFI build (and grub2 install to USB stick) when building and installing to flash drive purely from Linux? I have experimented a bit with grub2 (within Linux), and it seems to force an i386 (NON-EFI) build (and install) in the absence of an EFI partition. Do you think it possible to temporarily mount an EFI partition to fool grub2 into producing an x86_64-efi build? Not sure if it can be done... It would be very helpful when installing grub2 to removable devices...
It is possible. It can be done easily for any Frugal- and ISObooting.
I am using right now flexible grub2 for portable media that it works for both PCs (bios and efi).

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

How to create a Multi-Porteus Boot USB flash drive?

Post#37 by Rava » 16 Nov 2023, 09:05

Otto wrote:
15 Nov 2023, 16:15
I am using right now flexible grub2 for portable media that it works for both PCs (bios and efi).
Mind sharing all the steps you take to create one such flexible grub2 for portable media?
Cheers!
Yours Rava

Otto
White ninja
White ninja
Posts: 14
Joined: 09 Nov 2023, 18:31
Distribution: linux

How to create a Multi-Porteus Boot USB flash drive?

Post#38 by Otto » 19 Nov 2023, 12:19

Just download the file from here:
https://forum.puppylinux.com/viewtopic. ... ble#p99328

ISObooting and frugalbooting as you wish for all porteus(s) and many other linuxdistros on portable media(UFD/externalHD/SDcard) work ok for me. :D

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

How to create a Multi-Porteus Boot USB flash drive?

Post#39 by Rava » 19 Nov 2023, 13:48

^
You mean this example code from post #99077 :

Code: Select all

menuentry "Puppy dpup 10.0.2" {
insmod ext2
search --no-floppy --fs-uuid --set=root b0f092c5-6a1c-4e04-b9d8-ddbeb91d4ab7
echo "Loading vmlinuz"
linux /bookworm10.0.2/vmlinuz pmedia=usbhd pdrv=b0f092c5-6a1c-4e04-b9d8-ddbeb91d4ab7 psubdir=/bookworm10.0.2 pfix=fsck,fsckp,trim TZ=EST5EDT,M3.2.0,M11.1.0
if [ -e /bookworm10.0.2/local-initrd.gz ]; then
set local_rd=/bookworm10.0.2/local-initrd.gz
else
set local_rd=
fi
if [ -e /bookworm10.0.2/ucode.cpio ];menuentry "Puppy dpup 10.0.2" {
insmod ext2
search --no-floppy --fs-uuid --set=root b0f092c5-6a1c-4e04-b9d8-ddbeb91d4ab7
echo "Loading vmlinuz"
linux /bookworm10.0.2/vmlinuz pmedia=usbhd pdrv=b0f092c5-6a1c-4e04-b9d8-ddbeb91d4ab7 psubdir=/bookworm10.0.2 pfix=fsck,fsckp,trim TZ=EST5EDT,M3.2.0,M11.1.0
if [ -e /bookworm10.0.2/local-initrd.gz ]; then
set local_rd=/bookworm10.0.2/local-initrd.gz
else
set local_rd=
fi
if [ -e /bookworm10.0.2/ucode.cpio ]; then
set ucode_rd=/bookworm10.0.2/ucode.cpio
echo "Loading ucode.cpio and initrd.gz"
else
set ucode_rd=
echo "Loading initrd.gz"
fi
initrd $ucode_rd /bookworm10.0.2/initrd.gz $local_rd then
set ucode_rd=/bookworm10.0.2/ucode.cpio
echo "Loading ucode.cpio and initrd.gz"
else
set ucode_rd=
echo "Loading initrd.gz"
fi
initrd $ucode_rd /bookworm10.0.2/initrd.gz $local_rd
Added in 49 seconds:
Or did you mean this:
https://github.com/puppylinux-woof-CE/w ... pup-41.pet
Cheers!
Yours Rava

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

How to create a Multi-Porteus Boot USB flash drive?

Post#40 by Ed_P » 19 Nov 2023, 16:32

Rava wrote:
19 Nov 2023, 13:49
You mean this example code from post #99077 :
That is certainly impressive grub2 code but not the install of grub2. Basically install a Linux version that includes a grub2 install like Ubuntu or the Puppy version that Otto used and then expand the grub.cfg file to boot other ISOs and OSs.

It's interesting that grub2 doesn't seem to have an install app as an option.

Added in 15 minutes 8 seconds:
It would be nice if Porteus supported this command: https://www.systutorials.com/docs/linux ... 2-install/ :)
Ed

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

How to create a Multi-Porteus Boot USB flash drive?

Post#41 by Rava » 19 Nov 2023, 18:16

Ed_P wrote:
19 Nov 2023, 16:47
It would be nice if Porteus supported this command: https://www.systutorials.com/docs/linux ... 2-install/ :)
Why not create a module yourself that provides grub2-install?
Cheers!
Yours Rava

Otto
White ninja
White ninja
Posts: 14
Joined: 09 Nov 2023, 18:31
Distribution: linux

How to create a Multi-Porteus Boot USB flash drive?

Post#42 by Otto » 19 Nov 2023, 20:41

Yes it is the file: frugalpup-41.pet.
.pet can run on puppylinux only.

Post Reply