The officially official Devuan Forum!

You are not logged in.

#1 2019-12-20 16:07:05

roluan17
Member
Registered: 2019-04-01
Posts: 15  

USB Multiboot

Hi,

searching a way to install more than one ISO on one  flash-drive (multiboot?).
Any kind hints  out there?

Tried unetbootin and got some strange (I don't understand them) errors:

add apt-repository ppa:gezakovacs/ppa  ==> bash: add: Kommando nicht gefunden (command not found)


I installed beforehand:

python-software-properties,
software-properties-common,

multisystem  (can not be found)

apt-add-repository 'deb http://liveusb.info/multisystem/depot all main'
Traceback (most recent call last):
  File "/usr/bin/apt-add-repository", line 95, in <module>
    sp = SoftwareProperties(options=options)
  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 109, in __init__
    self.reload_sourceslist()
  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 599, in reload_sourceslist
    self.distro.get_sources(self.sourceslist)    
  File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 93, in get_sources
    (self.id, self.codename))
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Devuan/ascii
apt-get install cryptsetup grub-pc hal syslinux zenity imagemagick squashfs-tools fatresize fuseiso wmctrl xdotool qemu gtkdialog 
Paketlisten werden gelesen... Fertig (package lists are read ...ready)
Abhängigkeitsbaum wird aufgebaut.       (dependancy-tree is built)
Statusinformationen werden eingelesen.... Fertig (status quo is read ... ready)
Paket hal ist nicht verfügbar, wird aber von einem anderen Paket (package hal is not available, 
but is referenced to an other package
referenziert. Das kann heißen, dass das Paket fehlt, dass es abgelöst
wurde oder nur aus einer anderen Quelle verfügbar ist.        
(package hal is not available, but is referenced to an other package.
 This can mean, package is missing, relieved or only available from an other source)


E: Für Paket »hal« existiert kein Installationskandidat.
                                           (for package "hal" there is no installation candidate)
E: Paket gtkdialog kann nicht gefunden werden.          
                                          (package gtkdialog can not be found)

Pardon my english translation, may be funny.
;-)

Last edited by roluan17 (2019-12-20 16:09:29)

Offline

#2 2019-12-20 16:53:58

golinux
Administrator
Registered: 2016-11-25
Posts: 1,805  

Re: USB Multiboot

Please look at the multi-boot iso that fsmithred made for the Devuan conference in April.  That may give you some hints.

Offline

#3 2019-12-20 17:54:40

roluan17
Member
Registered: 2019-04-01
Posts: 15  

Re: USB Multiboot

Thank you! That was quick.
Will test it tomorrow.
greetings

Offline

#4 2019-12-20 19:34:00

fsmithred
Administrator
Registered: 2016-11-25
Posts: 1,319  

Re: USB Multiboot

My recommendation is not impartial, and I won't try to debug unetbootin. Use my software to make a multi-boot usb.
refracta2usb download - https://sourceforge.net/projects/refrac … b/download
Instructions (at least read the Quick Start!) - https://refracta.org/docs/readme.refracta2usb.txt

It uses isolinux/syslinux. If you want grub bootloader on it, we can change it to that later.

Offline

#5 2019-12-20 20:15:51

ilargi
Member
Registered: 2017-06-23
Posts: 9  

Re: USB Multiboot

You may be interested in trying multibootusb http://multibootusb.org/. You can just download the tar.gz file and use it from a local folder. No need to install it.

Offline

#6 2019-12-21 13:43:16

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 425  
Website

Re: USB Multiboot

To make a "multiboot" USB simply copy the images to a partition on the USB stick then install both types of GRUB:

# mount /dev/sdXY /mnt
# mkdir -p /mnt/boot/efi
# mount /dev/sdXZ /mnt/boot/efi
# grub-install --target=i386-pc --boot-directory=/mnt/boot /dev/sdX
# grub-install --target=x86_64-efi --boot-directory=/mnt/boot --efi-directory=/mnt/boot/efi --removable

The stick will need both the main root partition (/dev/sdXY) and an EFI system partition (/dev/sdXZ) with a GUID partition table and a BIOS boot partition. For both UEFI and non-UEFI grub-install commands use the grub-pc-bin & grub-efi-amd64-bin packages. For multibitness UEFI systems there is also a grub-efi-ia32-bin package (--target=i386-efi).

Then write (/mnt)/boot/grub/grub.cfg with menu entries for each image, here is an example stanza for a Devuan ISO image:

menuentry 'Devuan (live)' {                                   
   isofile=usr/share/iso/devuan.iso
   search.fs_uuid $uuid_stick root
   loopback loop $root/$isofile                                             
   linux (loop)/live/vmlinuz boot=live config fromiso=$root/$isofile toram  
   initrd (loop)/live/initrd.img                                              
}

In this example the ISO image is stored on the root partition under /usr/share/iso/devuan.iso (because FHS) but you can put it wherever you want. Replace $uuid_stick with the actual UUID of the root partition.

Last edited by Head_on_a_Stick (2019-12-21 18:26:09)


SJW for hire, usual rates apply

Offline

#7 2019-12-23 21:44:16

Micronaut
Member
Registered: 2019-07-04
Posts: 55  

Re: USB Multiboot

Unetbootin is not the only bootable USB creator. As far as I know, Rufus can install multiple environments on a single USB stick. But I've never used it that way myself.

https://rufus.ie/

Offline

#8 2019-12-28 16:25:16

roluan17
Member
Registered: 2019-04-01
Posts: 15  

Re: USB Multiboot

rufus? Isn't that for "He Who Cannot Be Named"?

Offline

#9 2019-12-28 17:18:32

roluan17
Member
Registered: 2019-04-01
Posts: 15  

Re: USB Multiboot

@golinux
well, dev1usb seems to run. But I can't get further than login:

Please give me a hint, the readme is quite frugal.

Offline

#10 2019-12-28 17:51:29

fsmithred
Administrator
Registered: 2016-11-25
Posts: 1,319  

Re: USB Multiboot

I forget exactly how I arranged the boot menu, but there should be four different systems you can boot: minimal-live and desktop-live both in i386 and amd64. Which one did you boot and what happened after you logged in?

If you want to make your own live-usb, you're in the wrong place. Use one of the usb creators or do it manually as mentioned in posts above.

Offline

#11 2019-12-28 18:07:01

golinux
Administrator
Registered: 2016-11-25
Posts: 1,805  

Re: USB Multiboot

@fsmithred . . . I suggested he look at that to confirm that multiboot can be done.  I thought if he poked at it a bit he might be able to figure out how to put one together.

Offline

#12 2019-12-29 10:13:21

roluan17
Member
Registered: 2019-04-01
Posts: 15  

Re: USB Multiboot

Well I put that img (dev1usb_2019-03-28.img) to a stick and it runs ok until  I have a black screen leaving the prompt blinking after
"login:"

I thought there might be a hint in any READme, but couldn't find one.

This was no try to create a multiboot system though it definitely has several different Devuan distros on board which can be selected during the boot process.

Last edited by roluan17 (2019-12-29 10:16:13)

Offline

#13 2019-12-29 11:04:54

Camtaf
Member
Registered: 2019-11-19
Posts: 16  

Re: USB Multiboot

I'd imagine that if you don't select one of the choices at the boot menu, you are being dropped into a terminal session, possibly for recovery purposes. If you do select a distro at boot time, does it then load to a desktop?

Offline

#14 2019-12-29 12:07:08

fsmithred
Administrator
Registered: 2016-11-25
Posts: 1,319  

Re: USB Multiboot

If you do nothing at the boot menu, you will get the first item, which is desktop-live i386. The system is set for automatic login, so if you got a login screen, something is wrong.

What kind of instructions would you like? There's not much to say. Just dd the image to a usb stick, boot the stick and choose a system. If you want to install one of those systems, it's probably better to download one of the 2.1 isos, because they are newer.

Offline

#15 2019-12-29 16:05:36

roluan17
Member
Registered: 2019-04-01
Posts: 15  

Re: USB Multiboot

Thank you for the reply!
I thought, it would be something similar to STAR,  Login: starlive Pwd: live.
I'll by me a new stick, tomorrow. Then I will go on again.
greetings

Offline

#16 2019-12-29 21:31:24

fsmithred
Administrator
Registered: 2016-11-25
Posts: 1,319  

Re: USB Multiboot

If you do get a login screen (maybe after you log out) the username/password combination is devuan/devuan (or root/toor).

Check the sha256sum on the .img file to make sure it downloaded correctly.

Offline

Board footer