Page 1 of 1

Boot 2 different versions off a USB Disk with Grub4Dos

Posted: 25 Nov 2018, 14:37
by jk9
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 :(

Boot 2 different versions off a USB Disk with Grub4Dos

Posted: 25 Nov 2018, 19:00
by Ed_P
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

Boot 2 different versions off a USB Disk with Grub4Dos

Posted: 25 Nov 2018, 20:02
by fanthom
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).

Boot 2 different versions off a USB Disk with Grub4Dos

Posted: 26 Nov 2018, 04:41
by Ed_P
:hmmm: Maybe ISO booting would work.

Boot 2 different versions off a USB Disk with Grub4Dos

Posted: 26 Nov 2018, 05:42
by jk9
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.