Hi nathanpc,
I would try to get the package util-linux which contains the executable fdisk. If you have the *.iso image burned to a CD, and inserted on a system with the excutable fdisk, then you can simply issue the command:
$ fdisk -l {i.e. lowercase L)
It' output looks like the following for an 80 GB hard drive with WinXP Pro SP2:
ubuntu@ubuntu:~/Desktop$ sudo fdisk -l
Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x60276028
Device Boot Start End Blocks Id System
/dev/sda1 * 1 9728 78140128+ 7 HPFS/NTFS
The sector size on a Live CD is probably 2048 rather than 512.
Apparently, the command does not fully get the C/H/S information you a looking for with regard to a Live CD, but it looks like another command may help:
I have burned a 691 MB ISO bootable image to a Live CD, and the following command yields the following information (Note: the name of the ISO file isdesktop-i386-20100830.15.iso (the systemd Live CD test .iso file):
$ mount (to find the name of the device of the mounted Live CD)
...
/dev/sr1 on /media/desktop-i386-20100830.15 type iso9660 (ro,nosuid,nodev,uhelper=udisks,uid=999,gid=999,iocharset=utf8,mode=0400,dm ode=0500)
...
$ sudo sfdisk -l /dev/sr1
Disk /dev/sr1: cannot get geometry
Disk /dev/sr1: 88 cylinders, 255 heads, 63 sectors/track
Warning: The partition table looks like it was made
for C/H/S=*/64/32 (instead of 88/255/63).
For this listing I'll assume that geometry.
Units = cylinders of 1048576 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End #cyls #blocks Id System
/dev/sr1p1 * 0 690 691 707584 17 Hidden HPFS/NTFS
/dev/sr1p2 0 - 0 0 0 Empty
/dev/sr1p3 0 - 0 0 0 Empty
/dev/sr1p4 0 - 0 0 0 Empty
I don't know if any of this helps your situation, but the executable, sfdisk is contained in the package util-linux, i.e. util-linux_2.17.2-0ubuntu1_i386.deb for Ubuntu 10.04.1 (Lucid Lynx) which has a number of dependencies listed on the webpage for
Package: util-linux (2.17.2-0ubuntu1) where the i386 link at the bottom of the webpage leads to a mirror webpage for download of the package itself (not its dependencies which have to be downloaded and installed separately).
I have no idea whether any of this will work under Cygwin.
-- Tom