Hi Thomas. I corrected the steps I did wrong and I'm going to try to explain the best I can for letting you know.
<<Your dd transplantation did not change the flags of GPT partition 1, because the "$STICK" did not get the gnome disks treatment before the flags bytes were copied out of it>> I did it and check with xorriso and at least it showed the desired output: GPT partition flags: 1 0x0000000000000005 But, here begins the problems. When I dd the modified ISO (test-iso1) into a USB stick the partition layout according with fdisk is again different at the ISO one. I can assure that the method I used for copying the ISO into the stick was dd. The partition layout according with fdisk was: GPT PMBR size mismatch (5505347 != 7907327) will be corrected by write. Orden (m para obtener ayuda): p Disco /dev/sdd: 3,79 GiB, 4048551936 bytes, 7907328 sectores Disk model: Transcend 4GB Unidades: sectores de 1 * 512 = 512 bytes Tamaño de sector (lógico/físico): 512 bytes / 512 bytes Tamaño de E/S (mínimo/óptimo): 512 bytes / 512 bytes Tipo de etiqueta de disco: dos Identificador del disco: 0x00000000 Dispositivo Inicio Comienzo Final Sectores Tamaño Id Tipo /dev/sdd1 1 7907327 7907327 3,8G ee GPT /dev/sdd2 * 0 0 1 512B 0 Vacía But, if I run xorriso -report_system_area I get: GNU xorriso 1.5.4.pl02 : RockRidge filesystem manipulator, libburnia project. xorriso : NOTE : Loading ISO image tree from LBA 0 xorriso : UPDATE : 908 nodes read in 1 seconds libisofs: NOTE : Found hidden El-Torito image for EFI. libisofs: NOTE : EFI image start and size: 1373661 * 2048 , 10040 * 512 xorriso : NOTE : Detected El-Torito boot information which currently is set to be discarded Drive current: -indev 'stdio:/dev/sdd' Media current: stdio file, overwriteable Media status : is written , is appendable Boot record : El Torito , MBR protective-msdos-label grub2-mbr cyl-align-off GPT Media summary: 1 session, 1376337 data blocks, 2688m data, 1173m free Volume id : 'Ubuntu 21.04 amd64' GPT partition flags: 1 0x0000000000000005 GPT partition flags: 2 0x0000000000000000 GPT partition flags: 3 0x1000000000000001 Fdisk reports a GPT PMBR size mismatch and another strange fact is this: Tipo de etiqueta de disco: dos (Disk label type: dos). But the first partition is marked as GPT. I have to say too that the ISO (test-iso1) layout was the following according to fdisk: jose@jose-pc:~$ sudo fdisk /home/jose/Impish_tests/ubuntu-21.04-test.iso Bienvenido a fdisk (util-linux 2.34). Los cambios solo permanecerán en la memoria, hasta que decida escribirlos. Tenga cuidado antes de utilizar la orden de escritura. La tabla GPT primaria está dañada, pero la de respaldo parece que está bien, así que esa será la que se utilice. Orden (m para obtener ayuda): p Disco /home/jose/Impish_tests/ubuntu-21.04-test.iso: 2,64 GiB, 2818738176 bytes, 5505348 sectores Unidades: sectores de 1 * 512 = 512 bytes Tamaño de sector (lógico/físico): 512 bytes / 512 bytes Tamaño de E/S (mínimo/óptimo): 512 bytes / 512 bytes Tipo de etiqueta de disco: gpt Identificador del disco: AF8737A9-1E23-4373-B87A-C8B16199D461 Dispositivo Comienzo Final Sectores Tamaño Tipo /home/jose/Impish_tests/ubuntu-21.04-test.iso1 64 5494643 5494580 2,6G Datos básicos de Micros /home/jose/Impish_tests/ubuntu-21.04-test.iso2 5494644 5504683 10040 4,9M Sistema EFI /home/jose/Impish_tests/ubuntu-21.04-test.iso3 5504684 5505283 600 300K Datos básicos de Micros Orden (m para obtener ayuda): Later I copied two ISO's for manipulate in the following way: First I copy the original Ubuntu ISO and: echo $'\005' | dd bs=1 count=1 conv=notrunc seek=1072 of="$NEW" And then: echo $'\005' | dd bs=1 count=1 conv=notrunc seek=2818705968 of="$NEW" And the partition layout of this ISO (test-iso2) is different: jose@jose-pc:~$ sudo fdisk /home/jose/Impish_tests/ubuntu-21.04-test2.iso Bienvenido a fdisk (util-linux 2.34). Los cambios solo permanecerán en la memoria, hasta que decida escribirlos. Tenga cuidado antes de utilizar la orden de escritura. Orden (m para obtener ayuda): p Disco /home/jose/Impish_tests/ubuntu-21.04-test2.iso: 2,64 GiB, 2818738176 bytes, 5505348 sectores Unidades: sectores de 1 * 512 = 512 bytes Tamaño de sector (lógico/físico): 512 bytes / 512 bytes Tamaño de E/S (mínimo/óptimo): 512 bytes / 512 bytes Tipo de etiqueta de disco: dos Identificador del disco: 0x00000000 Dispositivo Inicio Comienzo Final Sectores Tamaño Id Tipo /home/jose/Impish_tests/ubuntu-21.04-test2.iso1 1 5505347 5505347 2,6G ee GPT /home/jose/Impish_tests/ubuntu-21.04-test2.iso2 * 0 0 1 512B 0 Vacía Las entradas de la tabla de particiones no están en el orden del disco. Here we have no complains about damage GPT partition table but as the first ISO burned on the stick disklabel is dos but the first partition is type GPT. The xorriso output: sudo Impish_tests/xorriso_dir/xorriso-1.5.4/xorriso/xorriso -indev stdio:/home/jose/Impish_tests/ubuntu-21.04-test2.iso -report_system_area plain | grep 'GPT partition flags:' GNU xorriso 1.5.4.pl02 : RockRidge filesystem manipulator, libburnia project. xorriso : NOTE : Loading ISO image tree from LBA 0 xorriso : UPDATE : 908 nodes read in 1 seconds libisofs: NOTE : Found hidden El-Torito image for EFI. libisofs: NOTE : EFI image start and size: 1373661 * 2048 , 10040 * 512 xorriso : NOTE : Detected El-Torito boot information which currently is set to be discarded Drive current: -indev 'stdio:/home/jose/Impish_tests/ubuntu-21.04-test2.iso' Media current: stdio file, overwriteable Media status : is written , is appendable Boot record : El Torito , MBR protective-msdos-label grub2-mbr cyl-align-off GPT Media summary: 1 session, 1376337 data blocks, 2688m data, 13.7g free Volume id : 'Ubuntu 21.04 amd64' GPT partition flags: 1 0x1000000000000005 GPT partition flags: 2 0x0000000000000000 GPT partition flags: 3 0x1000000000000001 Finally, I copied the ISO with the implanted flags of gnome-disk (test- iso1) and made an adaptation of the command echo $'\005' | dd bs=1 count=1 conv=notrunc seek=2818705968 of="$NEW" That I changed to: dd if="$FLAGSFILE" conv=notrunc bs=1 seek=2818705968 count=8 of="$NEW2" With the intention of as you said << try is to change the flags of partition 1 in the backup GPT, too>>. I don't know if it is correct but that didn't work. The layout of this last ISO (test-iso3) is: Disco /home/jose/Impish_tests/ubuntu-21.04-test3.iso: 2,64 GiB, 2818738176 bytes, 5505348 sectores Unidades: sectores de 1 * 512 = 512 bytes Tamaño de sector (lógico/físico): 512 bytes / 512 bytes Tamaño de E/S (mínimo/óptimo): 512 bytes / 512 bytes Tipo de etiqueta de disco: dos Identificador del disco: 0x00000000 Dispositivo Inicio Comienzo Final Sectores Tamaño Id Tipo /home/jose/Impish_tests/ubuntu-21.04-test3.iso1 1 5505347 5505347 2,6G ee GPT /home/jose/Impish_tests/ubuntu-21.04-test3.iso2 * 0 0 1 512B 0 Vacía sudo Impish_tests/xorriso_dir/xorriso-1.5.4/xorriso/xorriso -indev stdio:/home/jose/Impish_tests/ubuntu-21.04-test3.iso -report_system_area plain | grep 'GPT partition flags:' GNU xorriso 1.5.4.pl02 : RockRidge filesystem manipulator, libburnia project. xorriso : NOTE : Loading ISO image tree from LBA 0 xorriso : UPDATE : 908 nodes read in 1 seconds libisofs: NOTE : Found hidden El-Torito image for EFI. libisofs: NOTE : EFI image start and size: 1373661 * 2048 , 10040 * 512 xorriso : NOTE : Detected El-Torito boot information which currently is set to be discarded Drive current: -indev 'stdio:/home/jose/Impish_tests/ubuntu-21.04-test3.iso' Media current: stdio file, overwriteable Media status : is written , is appendable Boot record : El Torito , MBR protective-msdos-label grub2-mbr cyl-align-off GPT Media summary: 1 session, 1376337 data blocks, 2688m data, 13.7g free Volume id : 'Ubuntu 21.04 amd64' GPT partition flags: 1 0x0000000000000005 GPT partition flags: 2 0x0000000000000000 GPT partition flags: 3 0x1000000000000001 So, I think I tried all the tests you suggested me and I think I did it well and none of them worked. I dd all ISO's to stick and tried to boot and no one worked: after grub, black screen and cursor blinking indefinitely. Have a nice day! -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1922342 Title: HIrsute live session takes ages to boot on BIOS systems To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/casper/+bug/1922342/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
