Tomas-M / linux-live

Linux Live Kit
http://www.linux-live.org/
1.01k stars 250 forks source link

ISO and ZIP unbootable #237

Closed maccagnan closed 1 year ago

maccagnan commented 1 year ago

Systems: Devuan Chimaera & Alpine Linux Edge Linux Live Scripts 2.9

Hi,

I created two live ISOs, one on Devuan Chimaera and one on Alpine Linux. In both cases, I haven't got any problem during the live system creation. However, in both cases, after I DDed the ISOs on a USB stick, it won't booth (GRUB just goes to the boot menu). The same happens if I copy the .ZIP file on the USB and run the bootinst.sh script (note that I mount the USB mount /dev/sdb -o exec /mnt/usb to avoid permission problems). Again, the output is successful, but the USB won't boot. I tried both formatting the USB to ext4 and FAT32. However, if I boot the live distros iso from the HD or in frugal mode from the HD using grub, they both boot fine. I'm sure the USB is fine since I use it to test live ISOs all the time. Any suggestions as to how troubleshoot the problem?

Thanks.

UPDATE: I tried to boot the iso with ventoy and it gives me an error: fail to load idlinux.c32. The slax live cd boots fine on the same usb. I don't know if it helps.

equetzal commented 1 year ago

I recommend you reading this page https://www.slax.org/starting.php The way in which you're installing Slax, is not correct. Follow the intructions of the link.

maccagnan commented 1 year ago

@equetzal I'm not using Slax, just used the Linux Live Kit to create my own live cd from Devuan and Alpine Linux. Por cierto, saludos desde la Baja.

equetzal commented 1 year ago

The installation method is the same for Slax and Linux-Live created kits, this is because Slax is created using linux live, so in both cases you'll be needing to follow the method of copying the contents to the USB and then running the bootinst script. Also, if you need UEFI support it's required to format your USB on FAT32 (syslinux have a ext4 UEFI compatible boot, but it still not supported by linux-live), so ext4 won't help to boot. Now, for the ldlinux.c32, you need to make sure that your ISO contain all this files to boot https://github.com/Tomas-M/linux-live/tree/master/bootfiles You can decompress the .zip and modify it manually to add the missing files, and then recompress it to re-distribute it as you need it. Also, you need to have present the mbr.bin file in order to run bootinst.sh succesfully and be able to boot on Legacy BIOS. Let me know if all of this help :), It's highly likely that something was missing during the creation of your live kit :p

Saludos hasta la baja! :D

maccagnan commented 1 year ago

@equetzal Thanks for your help, it's much appreciated. What I did was following the readme instructions to the letter, using all the default seetings. I tried both with Devuan and Alpine. The squashfs system was created without any problem, and it boots fine in frugal mode, so I assume the error lies elsewhere, like you said, some file must be misplaced or I missed a step. I tried both booting the ISO and the compressed file, using the bootinst.sh script. In either case, the USB won't boot. I tried both with Slax kernel and the system kernel, tried formatting the USB to ext4 and fat32 (although I boot in legacy mode). I checked the bootfiles dir tree and, all the files are there. The sructure of my decompressed ISO is identical to the working Slax ISO. I'll try to repeat the process this week to see if I get better results.

equetzal commented 1 year ago

Ok, but just to be clear. You're not able to reach the bootloader, right?

maccagnan commented 1 year ago

Yes, the laptop BIOS does not seem to find the boot file (maybe eltorito or the mbr). The USB is set as the first boot option in the BIOS menu, the USB is active (led flashing) but the ISO won't boot.

Tomas-M commented 1 year ago

Slax does not support dd-ing to the target USB, so I really do not understand how could Slax work on the USB at the first place. I'm not sure if this issue is still relevant so I'm closing it