System.out.print( "Analysing image:"
+ System.getProperty( "line.separator" ) + rawImageLocation );
// analyse the image
MasterBootRecord MBR = new MasterBootRecord( imgFile );
System.out.println( " [" + MBR.getFileSizeBytes( ) + " bytes]" );
System.out.println( );
numOfSectors = MBR.totalSectorsOnDiskFromFile( );
System.out.println( "Number of sectors:\t" + numOfSectors );
numOfCylinders = MBR.largestCylinderValOnDisk( );
System.out.println( "Number of cylinders:\t" + numOfCylinders );
headsPerTrack = MBR.getPartitionEntry1( ).getNumHeads( );
System.out.println( "Heads per track:\t" + headsPerTrack );
sectorsPerTrack = MBR.getPartitionEntry1( ).getEndSector( );
System.out.println( "Sectors per track:\t" + sectorsPerTrack );
// create hashmap holding data for the VMDK template
HashMap<String, String> vmdkData = new HashMap<String, String>( );