* @throws GrubException
*/
public void format(BlockDeviceAPI devApi) throws GrubException {
log.info("Checking the old MBR...");
MasterBootRecord oldMbr;
try {
oldMbr = new MasterBootRecord(devApi);
} catch (IOException e) {
throw new GrubException("error while reading MBR", e);
}
if (!oldMbr.containsPartitionTable()) {
throw new GrubException("This device doesn't contain a valid MBR.");
}
log.info("done.");
/*