sanboot GPT iscsi target (UEFI part. + NTFS part.) and grub4dos UEFI #1185
-
I am trying to sanboot a GPT iscsi target that has one EFI partition and one NTFS partition. The ISCSI target was partitioned and formatted with Windows's diskpart tool. grub4dos UEFI was installed into the EFI partition to map into memory a VHD Windows11 image. Everything works when this is done on a real hard drive (d'oh), but when ipxe sanboots the iscsi target, grub4dos UEFI does not see the second partition and, therefore, can't load the large VHD into memory. How is the GPT iscsi target presented to grub4dos UEFI by sanboot? Is this a problem of sanboot, grub4dos or am I missing something basic here? Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
When you say "does not see the second partition" what exactly do you see? And how have you booted this? sanboot should expose the disk as EFI block device, it is up to firmware to deal with partitions and filesystems, sanboot can provide a filename of efi binary to boot. Also remember that once a real kernel takes over, it will need to do handover for how the disk is accessed. |
Beta Was this translation helpful? Give feedback.
I found the issue.
grub4dos UEFI could see both partitions but could not read the NTFS filesystem.
It turns out that changing the block size of the backing store device in the definition of the iscsi target in Linux from 4096 to the legacy value of 512 did the trick:
Using 512, grub4dos UEFI can now read the NTFS on the second partition, load the VHD, map it to memory, and boot from it.