Lines Matching full:backup
176 << "be corrupt. Consider loading the backup GPT header to rebuild the main GPT\n" in Verify()
183 << "corrupt. Consider loading the backup partition table ('c' on the recovery &\n" in Verify()
189 cout << "\nProblem: The CRC for the backup GPT header is invalid. The backup GPT header\n" in Verify()
190 << "may be corrupt. Consider using the main GPT header to rebuild the backup GPT\n" in Verify()
196 cout << "\nCaution: The CRC for the backup partition table is invalid. This table may\n" in Verify()
197 << "be corrupt. This program will automatically create a new backup partition\n" in Verify()
201 // Now check that the main and backup headers both point to themselves.... in Verify()
217 // Now check that critical main and backup GPT entries match each other in Verify()
221 << ") doesn't\nmatch the backup GPT header's alternate LBA pointer(" in Verify()
226 cout << "\nProblem: main GPT header's backup LBA pointer (" << mainHeader.backupLBA in Verify()
227 << ") doesn't\nmatch the backup GPT header's current LBA pointer (" in Verify()
234 << ") doesn't\nmatch the backup GPT header's first usable LBA pointer (" in Verify()
240 << ") doesn't\nmatch the backup GPT header's last usable LBA pointer (" in Verify()
247 << ") doesn't\nmatch the backup GPT header's disk GUID (" in Verify()
255 << ") doesn't\nmatch the backup GPT header's number of partitions (" in Verify()
263 << "match the backup GPT header's size of partition entries (" in Verify()
282 << "sector is " << mainHeader.lastUsableLBA << ", but backup header is at\n" in Verify()
401 // is valid, 2 if the backup header is valid, 3 if both are valid, and
427 cout << "Unsupported GPT version in backup header; read 0x"; in CheckHeaderValidity()
646 // with GPT backup data structures, but better to err on the side of
821 // good, backup bad; 2 = backup header good, main header bad; in ForceLoadGPTData()
834 if (validHeaders == 1) { // valid main header, invalid backup header in ForceLoadGPTData()
835 cerr << "\aCaution: invalid backup GPT header, but valid main header; regenerating\n" in ForceLoadGPTData()
836 << "backup header from main header.\n\n"; in ForceLoadGPTData()
840 } else if (validHeaders == 2) { // valid backup header, invalid main header in ForceLoadGPTData()
841 cerr << "\aCaution: invalid main GPT header, but valid backup; regenerating main header\n" in ForceLoadGPTData()
842 << "from backup!\n\n"; in ForceLoadGPTData()
845 mainCrcOk = secondCrcOk; // Since copied, use CRC validity of backup in ForceLoadGPTData()
850 // backup header's CRC is not OK.... in ForceLoadGPTData()
854 } else { // bad main header CRC and backup header CRC is OK in ForceLoadGPTData()
858 cerr << "\aWarning: Invalid CRC on main header data; loaded backup partition table.\n"; in ForceLoadGPTData()
859 } else { // backup table bad, bad main header CRC, but try main table in desperation.... in ForceLoadGPTData()
863 cerr << "\a\aWarning! Unable to load either main or backup partition table!\n"; in ForceLoadGPTData()
875 // Problem with main partition table; if backup is OK, use it instead.... in ForceLoadGPTData()
880 cerr << "\aWarning! Main partition table CRC mismatch! Loaded backup " in ForceLoadGPTData()
904 // Load the second (backup) partition table as the primary partition
912 // Load a single GPT header (main or backup) from the specified disk device and
1012 … cerr << "Warning! Main and backup partition tables differ! Use the 'c' and 'e' options\n" in CheckTable()
1120 … cerr << "Unable to save backup partition table! Perhaps the 'e' option on the experts'\n" in SaveGPTData()
1168 // Save GPT data to a backup file. This function does much less error
1171 // the main GPT header, the backup GPT header, and the main partition
1172 // table; it discards the backup partition table, since it should be
1182 // backup. I'm favoring misses over false alarms.... in SaveGPTBackup()
1203 cerr << "Warning! An error was reported when writing the backup file.\n" in SaveGPTBackup()
1214 // Write a GPT header (main or backup) to the specified sector. Used by both
1254 // Load GPT data from a backup file created by SaveGPTBackup(). This function
1270 // Check backup file size and rebuild second header if file is right in LoadGPTBackup()
1272 // table; if other size, treat it like a GPT fdisk-generated backup in LoadGPTBackup()
1284 // good, backup bad; 2 = backup header good, main header bad; in LoadGPTBackup()
1289 if (val == 2) { // only backup header seems to be good in LoadGPTBackup()
1296 cout << "Warning! Current disk size doesn't match that of the backup!\n" in LoadGPTBackup()
1309 cerr << "Improper backup file! Clearing all partition data!\n"; in LoadGPTBackup()
1364 cerr << "Warning! GPT backup partition table not overwritten! Error is " in DestroyGPT()
1373 cerr << "Warning! GPT backup header not overwritten! Error is " << errno << "\n"; in DestroyGPT()
1865 // Copy main header to backup header in ClearGPTData()