[ipxe-devel] error: hd0 cannot get C/H/S values

Heinrich Schuchardt heinrich.schuchardt at gmx.de
Thu Jan 4 03:49:48 UTC 2018

I have built bin/ipxe.iso and run it with

qemu-system-x86_64 -m 1G \
-net nic,vlan=0,macaddr=12:A1:00:12:34:02 \
-net tap,vlan=0,ifname=tap0,script=no,downscript=no \
-machine pc-i440fx-2.8 -drive file=ipxe.iso,if=ide,format=raw,media=cdrom

When executing
sanhook iscsi:
sanboot --filename \EFI\debian\grubia32.efi
grub boots Linux correctly.

The command line shows that a hard disk with three partitions is exposed 
to grub:

grub> ls
(hd0) (hd0,msdos3) (hd0,msdos2) (hd0,msdos1) (fd0)

When executing
sanhook --drive 0x81 iscsi:
sanboot --drive 0x81 --filename \EFI\debian\grubia32.efi
grub shows an error

error: hd0 cannot get C/H/S values

The command line shows that no hard disk is seen by grub:

grub> ls

I think that the drive number should not make a difference in the way 
that iscsi drives are exposed to grub.

Best regards

Heinrich Schuchardt

More information about the ipxe-devel mailing list