// Show all devices.
listAvailableDevices(dm, out);
return;
}
Device dev = ARG_DEVICE.getValue();
// FIXME PartitionHelper assumes that the device is an IDE device !?!
if (!(dev instanceof IDEDevice)) {
err.println(dev.getId() + " is not an IDE device");
exit(1);
}
final PartitionHelper helper = new PartitionHelper(dev.getId(), out);
try {
helper.checkMBR();
} catch (IOException ioex) {
out.println(ioex.getMessage());
out.println("Create a new MBR with a valid partition table.");