Boot 2 different versions off a USB Disk with Grub4Dos

Here you can post about the issues related to modifications performed manually (not through the kiosk wizard). Example: swapped kernel, added 3rd party modules or files.
Please describe in detail what has been changed and hopefully other kiosk user will be able to help.
Porteus team wont resolve bugs posted in this category as we support only modifications made by the kiosk wizard.
Forum rules
Porteus Kiosk section of the forum is unmaintained now. Its kept in a 'read only' mode for archival purposes.
Please use the kiosk contact page for directing your queries: https://porteus-kiosk.org/contact.html
jk9
White ninja
White ninja
Posts: 29
Joined: 01 May 2016, 12:19
Distribution: Porteus_Kiosk
Location: Germany

Boot 2 different versions off a USB Disk with Grub4Dos

Post#1 by jk9 » 25 Nov 2018, 14:37

Hi there,

1. I created 3 partions on my USB Flash Disk using Bootice.
2. I "dd" Kiosk version 1 to partition 2.
3. I "dd" Kiosk version 2 to partition 3.
4. I created a Grub4Dos boot system.
5. I copied both "kernel" and "initrd" files to the root of my USB Disk accordingly.

This is what my menu.lst looks like:

Code: Select all

title Porteus Kiosk 4.6 version 1
kernel /1/vmlinuz 
initrd /1/initrd.xz

title Porteus Kiosk 4.6 version 2
kernel /2/vmlinuz 
initrd /2/initrd.xz  
Both entries boot version 1flawlessly.
Although I've tried the best I could, I can't figure out how to boot version 2 :(

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

Boot 2 different versions off a USB Disk with Grub4Dos

Post#2 by Ed_P » 25 Nov 2018, 19:00

That doesn't look like a grub4dos menu I've ever seen jk9. Try reviewing some of these RMPrepUSB menu examples.

https://www.rmprepusb.com/tutorials/gru ... s_examples
Ed

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5667
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Boot 2 different versions off a USB Disk with Grub4Dos

Post#3 by fanthom » 25 Nov 2018, 20:02

This is kiosk - booting of two instances is not supported by default.

You would have to:

a) edit init script (inside initrd.xz) and search for different partition name, e.g. 'Kiosk2'

b) edit make_iso.sh script and give the second kiosk a different name, e.g. 'Kiosk2', run this script to create new ISO and then burn in on /dev/sda3


I hope you get what i mean.

After burning you may run 'blkid' to make sure that both partitions really have different names (init script will search for them).
Please add [Solved] to your thread title if the solution was found.

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

Boot 2 different versions off a USB Disk with Grub4Dos

Post#4 by Ed_P » 26 Nov 2018, 04:41

:hmmm: Maybe ISO booting would work.
Ed

jk9
White ninja
White ninja
Posts: 29
Joined: 01 May 2016, 12:19
Distribution: Porteus_Kiosk
Location: Germany

Boot 2 different versions off a USB Disk with Grub4Dos

Post#5 by jk9 » 26 Nov 2018, 05:42

Thanks a lot for your help mates.
All apologies for posting in the wrong section.
Ed_P wrote:
25 Nov 2018, 19:00
That doesn't look like a grub4dos menu I've ever seen jk9
It works actually :)

@ fanthom
I'll try that and report back.
Just a side note, I am not trying to boot two instances (i.e. at the same time), but two different versions separately.
Ed_P wrote:
25 Nov 2018, 19:00
Maybe ISO booting would work.
That would be a treat indeed but it doesn't work actually :(
In fact, I managed to make it work based on fanthom's suggestion back then but I failed miserably reproducing that with version 4.6.

Locked