if (ideDev != null) {
out.println("IDE Disk : " + ideDev.getId() + ": " +
descriptor.getSectorsAddressable() * 512 + " bytes");
}
out.println("Device Boot Start End Blocks System");
IBMPartitionTable partitionTable = helper.getPartitionTable();
int i = 0;
for (IBMPartitionTableEntry entry : partitionTable) {
IBMPartitionTypes si = entry.getSystemIndicator();
if (!entry.isEmpty()) {
long sectors = entry.getNrSectors();
out.println("ID " + i + " " + (entry.getBootIndicator() ? "Boot" : "No") + " " +
entry.getStartLba() + " " + (entry.getStartLba() + sectors) + " " +
entry.getNbrBlocks(sectorSize) + (entry.isOdd() ? "" : "+") + " " + si);
}
if (entry.isExtended()) {
final List<IBMPartitionTableEntry> exPartitions =
partitionTable.getExtendedPartitions();
int j = 0;
for (IBMPartitionTableEntry exEntry : exPartitions) {
si = exEntry.getSystemIndicator();
// FIXME ... this needs work
out.println("ID " + i + " " + (exEntry.getBootIndicator() ? "Boot" : "No") +