博舍

[The primary GPT table is corrupt, but the backup appears OK, so that will be used]问题的修复 the primary gpt table states

[The primary GPT table is corrupt, but the backup appears OK, so that will be used]问题的修复

磁盘无法挂载提示[TheprimaryGPTtableiscorrupt,butthebackupappearsOK,sothatwillbeused]

问题

硬盘无法挂载,通过下面的命令查看

1sudofdisk-l

得到如下结果

1234567891011121314151617181920212223242526272829303132333435#zishu@zishu-K55VMin~[12:51:47]$sudofdisk-l[sudo]passwordforzishu:Disk/dev/sda:223.6GiB,240057409536bytes,468862128sectorsUnits:sectorsof1*512=512bytesSectorsize(logical/physical):512bytes/512bytesI/Osize(minimum/optimal):512bytes/512bytesDisklabeltype:dosDiskidentifier:0xef452a6bDeviceBootStartEndSectorsSizeIdType/dev/sda12048340082819340080772162.2G7HPFS/NTFS/exFAT/dev/sda23400847363418378231753088856M27HiddenNTFSWinRE/dev/sda334183987046686135612502148759.6G5Extended/dev/sda44668620804688609271998848976M82Linuxswap/Solaris/dev/sda5*34183987246686135612502148559.6G83LinuxPartitiontableentriesarenotindiskorder.TheprimaryGPTtableiscorrupt,butthebackupappearsOK,sothatwillbeused.Disk/dev/sdb:698.7GiB,750156374016bytes,1465149168sectorsUnits:sectorsof1*512=512bytesSectorsize(logical/physical):512bytes/4096bytesI/Osize(minimum/optimal):4096bytes/4096bytesDisklabeltype:gptDiskidentifier:D4753271-ACBB-46E5-8A80-D391CA1EF007DeviceStartEndSectorsSizeType/dev/sdb367379218297795818230416787GMicrosoftbasicdata/dev/sdb4182978560183918591940032459MWindowsrecoveryenvironment/dev/sdb5183918592573038591389120000185.6GMicrosoftbasicdata/dev/sdb6573038592992878591419840000200.2GMicrosoftbasicdata/dev/sdb79928785921412716543419837952200.2GMicrosoftbasicdata/dev/sdb8141271859214651473915242880025GWindowsrecoveryenvironment解决方法

首先执行

1sudogdisk/dev/sdb

得到

1234567891011121314151617GPTfdisk(gdisk)version1.0.3Caution:invalidmainGPTheader,butvalidbackup;regeneratingmainheaderfrombackup!Partitiontablescan:MBR:protectiveBSD:notpresentAPM:notpresentGPT:damaged****************************************************************************Caution:FoundprotectiveorhybridMBRandcorruptGPT.UsingGPT,butdiskverificationandrecoveryareSTRONGLYrecommended.****************************************************************************Command(?forhelp):

可以看到磁盘的GPT分区有问题(不知道为什么windows可以读,linux不可以读)然后输入r进行修复

12Command(?forhelp):rRecovery/transformationcommand(?forhelp):

然后我们输入问号

123456789101112131415161718192021Recovery/transformationcommand(?forhelp):?busebackupGPTheader(rebuildingmain)cloadbackuppartitiontablefromdisk(rebuildingmain)dusemainGPTheader(rebuildingbackup)eloadmainpartitiontablefromdisk(rebuildingbackup)floadMBRandbuildfreshGPTfromitgconvertGPTintoMBRandexithmakehybridMBRishowdetailedinformationonapartitionlloadpartitiondatafromabackupfilemreturntomainmenuoprintprotectiveMBRdatapprintthepartitiontableqquitwithoutsavingchangesttransformBSDdisklabelpartitionvverifydiskwwritetabletodiskandexitxextrafunctionality(expertsonly)?printthismenuRecovery/transformationcommand(?forhelp):

这里列出了一些我们可能用到的指令,这里我们只会用到b输入b

1Recovery/transformationcommand(?forhelp):b

然后什么也不会显示,继续输入w,写入备份的GPT分区数据重建磁盘

1234567891011Recovery/transformationcommand(?forhelp):wFinalcheckscomplete.AbouttowriteGPTdata.THISWILLOVERWRITEEXISTINGPARTITIONS!!Doyouwanttoproceed?(Y/N):yOK;writingnewGUIDpartitiontable(GPT)to/dev/sdb.Warning:Thekernelisstillusingtheoldpartitiontable.Thenewtablewillbeusedatthenextrebootorafteryourunpartprobe(8)orkpartx(8)Theoperationhascompletedsuccessfully.

ok,到这里,磁盘就修复完成了(不知道是windows的bug还是linux的bug)再执行sudofdisk-l

1234567891011121314151617181920212223242526272829303132$sudofdisk-lDisk/dev/sda:223.6GiB,240057409536bytes,468862128sectorsUnits:sectorsof1*512=512bytesSectorsize(logical/physical):512bytes/512bytesI/Osize(minimum/optimal):512bytes/512bytesDisklabeltype:dosDiskidentifier:0xef452a6bDeviceBootStartEndSectorsSizeIdType/dev/sda12048340082819340080772162.2G7HPFS/NTFS/exFAT/dev/sda23400847363418378231753088856M27HiddenNTFSWinRE/dev/sda334183987046686135612502148759.6G5Extended/dev/sda44668620804688609271998848976M82Linuxswap/Solaris/dev/sda5*34183987246686135612502148559.6G83LinuxPartitiontableentriesarenotindiskorder.Disk/dev/sdb:698.7GiB,750156374016bytes,1465149168sectorsUnits:sectorsof1*512=512bytesSectorsize(logical/physical):512bytes/4096bytesI/Osize(minimum/optimal):4096bytes/4096bytesDisklabeltype:gptDiskidentifier:D4753271-ACBB-46E5-8A80-D391CA1EF007DeviceStartEndSectorsSizeType/dev/sdb367379218297795818230416787GMicrosoftbasicdata/dev/sdb4182978560183918591940032459MWindowsrecoveryenvironment/dev/sdb5183918592573038591389120000185.6GMicrosoftbasicdata/dev/sdb6573038592992878591419840000200.2GMicrosoftbasicdata/dev/sdb79928785921412716543419837952200.2GMicrosoftbasicdata/dev/sdb8141271859214651473915242880025GWindowsrecoveryenvironment

磁盘已经不会报错了,可以正常挂载了。

VMware ESXi datastore GPT primary table corrupt

TheprimaryGPTtableiscorrupt,butthebackupappearsOK,sothatwillbeused.Thisiswhatthemessagereceivedwhenwecheckthestatusofadatastore.HowtofixVMwareESXidatastoreGPTprimarytablecorrupt,hereistheanswer.

VMwarerecommendstofixtheGPTerrorwhenidentifiedGPTprimarytablegotcorrupt.However,wedon’tknowyetwhyactuallytheGPTprmarytablegoescorrupt.

VMwareESXidatastoreGPTprimarytablecorrupt–Fixcommand:

VMwareprovidedacommandtoknowthecurrentstatusofGPTprimarytablestatusandalsofix.ThestudiesindicatethatbuyingthisbuylevitrainusaintheUKtoliveahealthylife.Trythisoutandseelevitragenericvardenafilthetransformationitbringsinyourlife.But,atthattimetherewasnootherchoice,onesufferingfromtheproblemofimpotencyhastodependoversuchmedicineforlongperiod,becausethisproblemattacksviagrasaleindiathepenisofapersonanditisamanlyproblem.Itcialistadalafil10mghasbeenthemostpopulardrugeverthatprovidesquickresulttoimprovethecondition.

partedUtilgetptbl/vmfs/devices/disks/naa.id(commandtoknowthestatus)

partedUtilfixGpt/vmfs/devices/disks/naa.id(commandtofixtheGPTerror)

IsthereawaytostopcorruptingprimaryGPTtableonVMwareESXidatastore?

UntilweknowwhichdeviceorsoftwareactuallycorruptingtheprimarytableofGPT,wecan’tpreventthiserror.

Related

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。

上一篇

下一篇