Home | History | Annotate | Download | only in gptfdisk

Lines Matching refs:mbr

1 /* gpt.cc -- Functions for loading, saving, and manipulating legacy MBR and GPT partition
293 // Check for mismatched MBR and GPT partitions...
296 // Check for MBR-specific problems....
301 cout << "\nWarning: The 0xEE protective partition in the MBR is marked as active. This is\n"
304 << "computers. You can clear this flag by creating a fresh protective MBR using\n"
312 cout << "\nPartition(s) in the protective MBR are too big for the disk! Creating a\n"
313 << "fresh protective or hybrid MBR is recommended.\n";
585 // Search for hybrid MBR entries that have no corresponding GPT partition.
606 cout << "\nWarning! Mismatched GPT and MBR partition! MBR partition "
693 // Scan for partition data. This function loads the MBR data (regular MBR or
694 // protective MBR) and loads BSD disklabel data (which is probably invalid).
700 // Read the MBR & check for BSD disklabel
711 cerr << "\aThe protective MBR's 0xEE partition is oversized! Auto-repairing.\n\n";
777 if ((mbrState == invalid) || (mbrState == mbr))
1022 // Writes GPT (and protective MBR) to disk. If quiet==1, moves the second
1091 // Check that protective MBR fits, and warn if it doesn't....
1093 cerr << "\nPartition(s) in the protective MBR are too big for the disk! Creating a\n"
1094 << "fresh protective or hybrid MBR is recommended.\n";
1097 // Check for mismatched MBR and GPT data, but let it pass if found
1134 // To top it off, write the protective MBR...
1140 // system the MBR write failed but everything else was OK (on a GPT disk under
1170 // corruption for later analysis; however, it preserves only the MBR,
1189 // MBR write closed disk, so re-open and seek to end....
1264 // Let the MBRData class load the saved MBR...
1271 // size to be direct dd copy of MBR, main header, and main partition
1326 // MBR.
1388 // Wipe MBR data from the disk (zero it out completely)
1399 cerr << "Warning! MBR not overwritten! Error is " << errno << "!\n";
1462 * Partition table transformation functions (MBR or BSD disklabel to GPT) *
1467 // Examines the MBR & GPT data to determine which set of data to use: the
1468 // MBR (use_mbr), the GPT (use_gpt), the BSD disklabel (use_bsd), or create
1478 if ((state == gpt_invalid) && ((mbrState == mbr) || (mbrState == hybrid))) {
1480 << "Found invalid GPT and valid MBR; converting MBR to GPT format\n"
1484 << "typing 'q' if you don't want to convert your MBR partitions\n"
1507 cout << "Found valid GPT with protective MBR; using GPT.\n";
1512 cout << "Found valid GPT with hybrid MBR; using GPT.\n";
1515 cout << "\aFound valid GPT with corrupt MBR; using GPT and will write new\n"
1516 << "protective MBR on save.\n";
1519 if ((state == gpt_valid) && (mbrState == mbr)) {
1526 << "Caution: Found protective or hybrid MBR and corrupt GPT. Using GPT, but disk\n"
1532 } // if/else MBR says disk is GPT
1541 // Convert MBR partition table into GPT form.
1549 // Convert the smaller of the # of GPT or MBR partitions
1564 // Convert MBR into protective MBR
1633 // Add one GPT partition to MBR. Used by PartsToMBR() functions. Created
1635 // type code divided by 0x0100 as the MBR type code.
1642 cout << "MBR partition " << mbrPart + 1 << " is out of range; omitting it.\n";
1664 cout << "Partition " << gptPart + 1 << " begins beyond the 32-bit pointer limit of MBR "
1763 // In case there's a protective MBR, look for & delete matching
1764 // MBR partition....
1831 // structure, since it may hold the original MBR partitions if the
1832 // program was launched on an MBR disk, and those may need to be
1882 // entry in the MBR, since it's probably no longer correct.
1960 // Recompute the CHS values of all the MBR partitions. Used to reset