These are the infos for the FAI ISO created by the patched fai-cd
script after writing it to an USB stick (/dev/sda).
The script uses
 -appended_part_as_gpt
 -append_partition 2 0xef $scratch/efiboot.img


In the boot menu list it shows as
UEFI OS (< and description of USB stick>)

and boots fine into linux with UEFI mode




$ blkid
/dev/sda2: SEC_TYPE="msdos" UUID="B3E0-35D0" BLOCK_SIZE="512" TYPE="vfat" 
PARTLABEL="Appended2" PARTUUID="99298f2b-1c15-41c1-ac2a-655adae72156"
/dev/sda3: PARTLABEL="Gap1" PARTUUID="99298f2b-1c15-41c1-ac2b-655adae72156"
/dev/sda1: PARTLABEL="Gap0" PARTUUID="99298f2b-1c15-41c1-ac29-655adae72156"

$ fdisk -l /dev/sda
GPT PMBR size mismatch (848223 != 1000215215) will be corrected by write.
The backup GPT table is not on the end of the device.
Disk /dev/sda: 476.94 GiB, 512110190592 bytes, 1000215216 sectors
Disk model: TS512GESD310C
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 99298F2B-1C15-41C1-AC28-655ADAE72156

Device      Start    End Sectors  Size Type
/dev/sda1      64 835559  835496  408M Microsoft basic data
/dev/sda2  835560 847559   12000  5.9M EFI System
/dev/sda3  847560 848159     600  300K Microsoft basic data

$ gdisk -l /dev/sda
GPT fdisk (gdisk) version 1.0.10
 
Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present
 
Found valid GPT with protective MBR; using GPT.
Disk /dev/sda: 1000215216 sectors, 476.9 GiB
Model: TS512GESD310C   
Sector size (logical/physical): 512/512 bytes
Disk identifier (GUID): 99298F2B-1C15-41C1-AC28-655ADAE72156
Partition table holds up to 248 entries
Main partition table begins at sector 2 and ends at sector 63
First usable sector is 64, last usable sector is 848160
Partitions will be aligned on 8-sector boundaries
Total free space is 1 sectors (512 bytes)
 
Number  Start (sector)    End (sector)  Size       Code  Name
   1              64          835559   408.0 MiB   0700  Gap0
   2          835560          847559   5.9 MiB     EF00  Appended2
   3          847560          848159   300.0 KiB   0700  Gap1


-- 
regards Thomas

Reply via email to