[Bug 1922342] Re: HIrsute live session takes ages to boot on BIOS systems
José Marinho
1922342 at bugs.launchpad.net
Mon May 24 18:52:31 UTC 2021
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 at 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 at 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
Foundations Bugs, which is subscribed to casper in Ubuntu.
https://bugs.launchpad.net/bugs/1922342
Title:
HIrsute live session takes ages to boot on BIOS systems
Status in casper package in Ubuntu:
Confirmed
Bug description:
First of all, I change the description of this bug because, thanks to
Chris Guiver comments, I could check that the live session effectively
works but it takes too long to complete. That's why I change the
description of the bug from live session does not boot to live session
takes ages to boot. I hope this is the best approach to this.
I think the problem is the same as described here:
https://discourse.ubuntubudgie.org/t/20-10-grub-error-can-t-find-
command-grub-platform/4292. I can see prior to grub menu, briefly, the
same error: Error can't find grub_platform. After the solution
described below, this error is not showed and the system is able to
boot.
I try making the live usb using startup disk creator and with gnome-
disks --> Restore disk image and get the same results.
The live-usb has a gpt partition table instead of mbr like 20.04 live-
usb has. That implies, I think, that the first one does not boot on
BIOS systems and the second does.
I try the same live-usb on an EFI laptop and it boots perfectly
(perhaps it takes long time, but more less than in this case.
If I try the solution described here:
https://bugs.launchpad.net/ubuntu/+source/casper/+bug/1905491/comments/8
then it works.
ProblemType: Bug
DistroRelease: Ubuntu 21.04
Package: casper 1.461
ProcVersionSignature: Ubuntu 5.11.0-13.14-generic 5.11.7
Uname: Linux 5.11.0-13-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.20.11-0ubuntu61
Architecture: amd64
CasperMD5CheckResult: pass
CasperVersion: 1.461
CurrentDesktop: ubuntu:GNOME
Date: Fri Apr 2 09:55:24 2021
LiveMediaBuild: Ubuntu 21.04 "Hirsute Hippo" - Beta amd64 (20210331.1)
ProcEnviron:
TERM=xterm-256color
PATH=(custom, no user)
XDG_RUNTIME_DIR=<set>
LANG=gl_ES.UTF-8
SHELL=/bin/bash
SourcePackage: casper
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/casper/+bug/1922342/+subscriptions
More information about the foundations-bugs
mailing list