Debido a la necesidad de tener que usar varias distribuciones me ha llevado a investigar como poder arrancar dos distribuciones desde un USB
Para ello debemos copiar las dos distribuciones al USB, yo use dos distribuciones que usan las linux-live scripts, y editar el nombre del kernel (vmlinuz por defecto) y del initrd.gz, en mi caso como podeis observar a los archivos de arranque de la segunda distro les añadi una w .
En nuestro USB deberia quedar una estructura de directorios asi
/boot
/wifiway
/wifislax
una vez tenemos esto, deberemos editar con un editor de texto los archivos de configuracion del inicio, para ello debemos entrar en la carpeta /boot/syslinux/ y editar el syslinux.cfg y dejarlo parecido al siguiente ( el que yo uso)
PROMPT 0
TIMEOUT 40
DEFAULT /boot/vesamenu.c32
LABEL wifiway vga=791
MENU LABEL Run wifiway vga=791
KERNEL /boot/vmlinuz
APPEND vga=791 max_loop=255 initrd=/boot/initrd.gz ramdisk_size=6666 root=/dev/ram0 rw
LABEL wifiway vga=769
MENU LABEL Run wifiway vga=769
KERNEL /boot/vmlinuz
APPEND vga=769 max_loop=255 initrd=/boot/initrd.gz ramdisk_size=6666 root=/dev/ram0 rw
LABEL memtest86
MENU LABEL Run Memtest utility
KERNEL /boot/mt86p
LABEL Wifislax Small 3.1 vga=791
MENU LABEL Run Wifislax Small 3.1 vga=791
KERNEL /boot/vmlinuzw
APPEND vga=791 max_loop=255 initrd=/boot/initrdw.gz ramdisk_size=6666 root=/dev/ram0 rw
LABEL Wifislax Small 3.1 vga=769
MENU LABEL Run Wifislax Small 3.1 vga=769
KERNEL /boot/vmlinuzw
APPEND vga=769 max_loop=255 initrd=/boot/initrdw.gz ramdisk_size=6666 root=/dev/ram0 rw
El proceso será el mismo para la carpeta /boot/isolinux y el archivo isolinux.cfg, en mi caso a mi me quedo asi:
PROMPT 0
TIMEOUT 40
DEFAULT /boot/vesamenu.c32
MENU BACKGROUND /boot/isolinux/splash.png
MENU COLOR border 30;44 #00000000 #00000000 std
MENU COLOR title 1;36;44 #ff0000ff #00000000 std
MENU COLOR unsel 37;44 #ff0000ff #00000000 std
MENU COLOR sel 7;37;40 #c0ffffff #ff000000 std
MENU COLOR hotkey 1;37;44 #ffD83200 #00000000 std
MENU COLOR hotsel 1;7;37;40 #ff00ff00 #ff000000 std
MENU COLOR disabled 1;30;44 #00000000 #7F000000 std
LABEL wifiway vga=791
MENU LABEL Run wifiway vga=791
KERNEL /boot/vmlinuz
APPEND vga=791 max_loop=255 initrd=/boot/initrd.gz ramdisk_size=6666 root=/dev/ram0 rw
LABEL wifiway vga=769
MENU LABEL Run wifiway vga=769
KERNEL /boot/vmlinuz
APPEND vga=769 max_loop=255 initrd=/boot/initrd.gz ramdisk_size=6666 root=/dev/ram0 rw
LABEL memtest86
MENU LABEL Run Memtest utility
KERNEL /boot/mt86p
LABEL Wifislax Small 3.1 vga=791
MENU LABEL Run Wifislax Small 3.1 vga=791
KERNEL /boot/vmlinuzw
APPEND vga=791 max_loop=255 initrd=/boot/initrdw.gz ramdisk_size=6666 root=/dev/ram0 rw
LABEL Wifislax Small 3.1 vga=769
MENU LABEL Run Wifislax Small 3.1 vga=769
KERNEL /boot/vmlinuzw
APPEND vga=769 max_loop=255 initrd=/boot/initrdw.gz ramdisk_size=6666 root=/dev/ram0 rw
Una vez hecho esto, solo queda hacer nuestro usb arrancable. Para ello dependiendo del sistema que usemos deberemos ejecutar el archivo bootinst.bat, en el caso que estemos bajo windows, mientras que si estamos en linux, deberemos ejecutar bootinst.sh
Saludos y espero que este manual os haya servido
Publicado originalmente en
www.bitsdelocos.es