On Sat, Jun 29, 2024 at 1:02 PM Frédéric <ufospoke@xxxxxxxxx> wrote: > > Hi, > > I created a USB stick with a live version of Fedora 40. I tried both > the default version and the KDE Spin. I tried using dd and using > mediawriter. Same result: I cannot boot on the USB drive if my BIOS is > configured in UEFI as it is to boot from my hard disk on Fedora 38. It > says that there is no bootable drive. > Note that I need a USB stick because I want to change my hard drive. > > I noticed that I can still boot F30 from an old live USB drive and you > can see below that the output of dmesg is not the same for both Fedora > versions. With the F40 image, I see an error: > [ 1543.382799] GPT:Primary header thinks Alt. header is not at the end > of the disk. > [ 1543.382808] GPT:4484087 != 31129599 > [ 1543.382810] GPT:Alternate GPT header not at the end of the disk. > [ 1543.382811] GPT:4484087 != 31129599 > [ 1543.382812] GPT: Use GNU Parted to correct GPT errors. > > I tried to boot with legacy BIOS and it works but then when I want to > install F40 on the new hard drive, I have the impression it wants to > install it for legacy BIOS and not for UEFI which I would like to > keep. > > If there is another mean to install Fedora on a new hard drive, please > share. I can plug the new hard drive as USB3. > > Thanks for your help, Here is what the 'GPT:Primary header thinks Alt. header is not at the end of the disk' message means: <https://github.com/pengutronix/genimage/issues/175#issuecomment-1024139241>. > * Wrong 16Gb USB drive with Fedora 40: > [ 1538.568176] usb 1-2: new high-speed USB device number 7 using xhci_hcd > [ 1538.712071] usb 1-2: New USB device found, idVendor=13fe, > idProduct=4300, bcdDevice= 1.00 > [ 1538.712076] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 > [ 1538.712078] usb 1-2: Product: USB DISK 2.0 > [ 1538.712079] usb 1-2: Manufacturer: > [ 1538.712081] usb 1-2: SerialNumber: 90001BE41456D415 > [ 1538.750293] usb-storage 1-2:1.0: USB Mass Storage device detected > [ 1538.750731] scsi host2: usb-storage 1-2:1.0 > [ 1538.750849] usbcore: registered new interface driver usb-storage > [ 1538.753986] usbcore: registered new interface driver uas > [ 1543.343362] scsi 2:0:0:0: Direct-Access USB DISK 2.0 > PMAP PQ: 0 ANSI: 6 > [ 1543.343897] sd 2:0:0:0: Attached scsi generic sg0 type 0 > [ 1543.347353] sd 2:0:0:0: [sda] 31129600 512-byte logical blocks: > (15.9 GB/14.8 GiB) > [ 1543.349296] sd 2:0:0:0: [sda] Write Protect is off > [ 1543.349303] sd 2:0:0:0: [sda] Mode Sense: 23 00 00 00 > [ 1543.350640] sd 2:0:0:0: [sda] No Caching mode page found > [ 1543.350644] sd 2:0:0:0: [sda] Assuming drive cache: write through > [ 1543.382799] GPT:Primary header thinks Alt. header is not at the end > of the disk. > [ 1543.382808] GPT:4484087 != 31129599 > [ 1543.382810] GPT:Alternate GPT header not at the end of the disk. > [ 1543.382811] GPT:4484087 != 31129599 > [ 1543.382812] GPT: Use GNU Parted to correct GPT errors. > [ 1543.382825] sda: sda1 sda2 sda3 > [ 1543.383329] sd 2:0:0:0: [sda] Attached SCSI removable disk > > * Good 2Gb USB drive with Fedora 30: > [ 1787.688538] usb 1-2: new high-speed USB device number 8 using xhci_hcd > [ 1787.831168] usb 1-2: New USB device found, idVendor=13fe, > idProduct=4300, bcdDevice= 1.00 > [ 1787.831174] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 > [ 1787.831175] usb 1-2: Product: USB DISK 2.0 > [ 1787.831177] usb 1-2: Manufacturer: > [ 1787.831178] usb 1-2: SerialNumber: 90001BE41456D415 > [ 1787.833958] usb-storage 1-2:1.0: USB Mass Storage device detected > [ 1787.834375] scsi host2: usb-storage 1-2:1.0 > [ 1787.904743] usb 1-2: USB disconnect, device number 8 > [ 1807.817157] usb 1-2: new high-speed USB device number 9 using xhci_hcd > [ 1807.943543] usb 1-2: New USB device found, idVendor=abcd, > idProduct=1234, bcdDevice= 1.00 > [ 1807.943548] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 > [ 1807.943549] usb 1-2: Product: UDisk > [ 1807.943551] usb 1-2: Manufacturer: General > [ 1807.943552] usb 1-2: SerialNumber: Љ > [ 1807.945178] usb-storage 1-2:1.0: USB Mass Storage device detected > [ 1807.945607] scsi host2: usb-storage 1-2:1.0 > [ 1808.995462] scsi 2:0:0:0: Direct-Access General UDisk > 5.00 PQ: 0 ANSI: 2 > [ 1808.995956] sd 2:0:0:0: Attached scsi generic sg0 type 0 > [ 1808.996710] sd 2:0:0:0: [sda] 3911680 512-byte logical blocks: > (2.00 GB/1.87 GiB) > [ 1808.996829] sd 2:0:0:0: [sda] Write Protect is off > [ 1808.996833] sd 2:0:0:0: [sda] Mode Sense: 0b 00 00 08 > [ 1808.996947] sd 2:0:0:0: [sda] No Caching mode page found > [ 1808.996949] sd 2:0:0:0: [sda] Assuming drive cache: write through > [ 1808.998657] sda: sda1 sda2 sda3 > [ 1808.998903] sd 2:0:0:0: [sda] Attached SCSI removable disk Is the USB drive any good? Is it one of those Chinese knock-offs that mis-report its size? See ,https://www.google.com/search?q=counterfeit+USB+drive+misreport+capacity>. Jeff -- _______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue