MWI – Hardisk Eksternal adalah tempat cadangan file-file penting yang kita miliki, terkadang karena satu dan lain hal HDD yang kita miliki menjadi lambat dibuka, terkadang malah error dan tidak dapt dibuka sama sekali. Terkadang jug amuncul pesan error seperti ini “GPT PMBR size mismatch (1953525167 != 1953525166) will be corrected by write. The backup GPT table is corrupt, but the primary appears OK, so that will be used”. Beberapa hal yang menyebabkan ini terjadi adlah karena:
- Kabel HD yang kurang bagus
- Pasokan listrik yang kurang dari port atau kabel USB
- langsung cabut atau karena tercabut tanpa prosedur yang benar
Setelah mencari muncul solusi dari Fixing corrupt backup GPT table? yang didapat dari Ask Ubuntu dot com, solusinya menggunakan perintah gdisk. Secara rinci yang saya lakukan adalah
cek HD yang masuk di laptop/PC/Komputer kita, caranya (asumsi posisi pada user biasa $ dan punya hak sudo – Super User DO, jika pada posisi root # hilangkan perintah sudo)
sudo df -h
musa@msthink:backup$ sudo df -h
Filesystem Size Used Avail Use% Mounted on
udev 3,8G 0 3,8G 0% /dev
tmpfs 784M 1,8M 782M 1% /run
/dev/nvme0n1p5 201G 74G 117G 39% /
tmpfs 3,9G 103M 3,8G 3% /dev/shm
tmpfs 5,0M 4,0K 5,0M 1% /run/lock
tmpfs 3,9G 0 3,9G 0% /sys/fs/cgroup
/dev/nvme0n1p6 199G 123G 67G 65% /media/data
/dev/nvme0n1p2 96M 31M 66M 32% /boot/efi
tmpfs 784M 20K 784M 1% /run/user/1000
/dev/sda10 665G 312G 353G 47% /media/musa/data1
/dev/sda9 144G 103G 34G 76% /media/musa/2681443e-e49a-4b33-86e4-55b1676e3e04
/dev/sda4 80G 52G 29G 65% /media/musa/Windows
Lanjutkan dengan membackup GPT yang error (jaga-jaga jika ada hal yang tak diinginkan terjadi), dengan perintah (sesuaikan sda dengan sdb atau lainnya sesuai hasil dari perintah sebelumnya
sudo sfdisk -d /dev/sda > musa_sda.txt
musa@msthink:backup$ sudo sfdisk -d /dev/sda > PT_sda.txt
GPT PMBR size mismatch (1953525167 != 1953525166) will be corrected by write.
The backup GPT table is corrupt, but the primary appears OK, so that will be used.
Berikan perintah gdisk untuk memperbaiki GPT yang corrupt dengan perintah
sudo gdisk /dev/sda
Command (? for help):
b
back up GPT data to a filec
change a partition’s named
delete a partitioni
show detailed information on a partitionl
list known partition typesn
add a new partitiono
create a new empty GUID partition table (GPT)p
print the partition tableq
quit without saving changesr
recovery and transformation options (experts only)s
sort partitionst
change a partition’s type codev
verify diskw
write table to disk and exitx
extra functionality (experts only)?
print this menu
pilih p untuk print the partition table lalu v untuk verify disk lanjutkan dengan w untuk write table lalu q untuk quit, yang dikerjakan ditempat penulis seperti ini
musa@msthink:backup$ sudo gdisk /dev/sda
GPT fdisk (gdisk) version 1.0.5
Warning! Disk size is smaller than the main header indicates! Loading
secondary header from the last sector of the disk! You should use 'v' to
verify disk integrity, and perhaps options on the experts' menu to repair
the disk.
Caution: invalid backup GPT header, but valid main header; regenerating
backup header from main header.
Warning! One or more CRCs don't match. You should repair the disk!
Main header: OK
Backup header: ERROR
Main partition table: OK
Backup partition table: OK
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: damaged
****************************************************************************
Caution: Found protective or hybrid MBR and corrupt GPT. Using GPT, but disk
verification and recovery are STRONGLY recommended.
****************************************************************************
Command (? for help): p
Disk /dev/sda: 1953525167 sectors, 931.5 GiB
Model: External
Sector size (logical/physical): 512/512 bytes
Disk identifier (GUID): 9469E2DA-479E-4AD5-A870-BADCF2B1D4EB
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 1953525134
Partitions will be aligned on 2048-sector boundaries
Total free space is 3437 sectors (1.7 MiB)
Number Start (sector) End (sector) Size Code Name
1 2048 1333247 650.0 MiB 2700 Basic data partition
2 1333248 1865727 260.0 MiB EF00 EFI system partition
3 1865728 2127871 128.0 MiB 0C01 Microsoft reserved ...
4 2127872 169900031 80.0 GiB 0700 Basic data partition
5 169900032 170844159 461.0 MiB 2700
6 213286912 213503999 106.0 MiB EF00 primary
7 170844160 213286911 20.2 GiB 0700 Basic data partition
8 213504000 229316607 7.5 GiB 8200
9 229316608 536459263 146.5 GiB 8300
10 536459264 1953523711 675.7 GiB 0700 data
Command (? for help): w
Caution! Secondary header was placed beyond the disk's limits! Moving the
header, but other problems may occur!
Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
PARTITIONS!!
Do you want to proceed? (Y/N): y
OK; writing new GUID partition table (GPT) to /dev/sda.
Warning: The kernel is still using the old partition table.
The new table will be used at the next reboot or after you
run partprobe(8) or kpartx(8)
The operation has completed successfully.
Demikian sedikit tulisan tentang linux kali ini, semoga bermanfaat dan sukses untuk kita semua. (ms)
Referensi:
AskUbuntu.com