I'm an idiot, diskpar will let me specify partition length on the first partition (but then it ends up not ending on a cyl boundary).... I just updated the scripts to use diskpart's offset option, but since windows seems to like LBA(?) info it's using an offset 8MB on even a 20GB dms. Seems to work anyways
the /dev/sda info is from after running on the audi DMS and the image file is before
Disk /dev/sda: 20.0 GB, 20003880960 bytes
255 heads, 63 sectors/track, 2432 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 2 14 104422+ b W95 FAT32
/dev/sda2 15 2431 19414552+ f W95 Ext'd (LBA)
/dev/sda5 15 2431 19414521 6 FAT16
[root@recluce phat]# fdisk -l DMS-Audi20GB.img
Disk DMS-Audi20GB.img: 20.0 GB, 20003880960 bytes
64 heads, 32 sectors/track, 19077 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Device Boot Start End Blocks Id System
DMS-Audi20GB.img1 2 261 266240 b W95 FAT32
DMS-Audi20GB.img2 262 19077 19267584 5 Extended
Partition 2 has different physical/logical endings:
phys=(1023, 63, 32) logical=(19076, 63, 32)
DMS-Audi20GB.img5 262 19077 19267583+ b W95 FAT32