Das Partitionsformat Master Boot Record (MBR) wird vom neueren Standard GUID Partition Table (GPT) abgelöst, doch MBR ist noch immer als Standardformat weit verbreitet. Für Partitionstabellen bietet das GPT-Format gegenüber MBR zahlreiche Vorteile. Neben der Unterstützung deutlich größerer Festplatten (ab 2 TB) ermöglicht es einen schnelleren und stabileren Systemstart.
Wechseln Sie zum Benutzer root (oder melden Sie sich als root an)
sudo su -
Falls die Anwendung gdisk noch nicht installiert ist, installieren Sie sie.
yum install gdisk
Starten Sie das GPT-Partitionierungsprogramm, das Werkzeug gdisk. Als Parameter geben Sie den Pfad der Festplatte an, z. B. so, wenn Ihre Festplatte sda ist:
gdisk /dev/sda
Nach dem Start zeigt es den aktuellen Zustand an; in diesem Fall hat es nur MBR gefunden.
GPT fdisk (gdisk) version 0.8.10
Partition table scan:
MBR: MBR only
BSD: not present
APM: not present
GPT: not present
***************************************************************
Found invalid GPT and valid MBR; converting MBR to GPT format
in memory. THIS OPERATION IS POTENTIALLY DESTRUCTIVE! Exit by
typing 'q' if you don't want to convert your MBR partitions
to GPT format!
***************************************************************
Prüfen Sie, ob vor der ersten Partition genügend Platz für die BIOS-Boot-Partition ist. Wenn der erste Sektor der ersten Partition bei Sektor 2048 (oder höher) beginnt, ist alles in Ordnung. Mit „p“ und Enter wird die Partitionstabelle ausgegeben.
Command (? for help): p
Disk /dev/sda: 52428800 sectors, 25.0 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 71DD2E79-BD1C-4713-9880-22664C87E57B
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 52428766
Partitions will be aligned on 2048-sector boundaries
Total free space is 20973501 sectors (10.0 GiB)
Number Start (sector) End (sector) Size Code Name
1 2048 2099199 1024.0 MiB 8300 Linux filesystem
2 2099200 16777215 7.0 GiB 8E00 Linux LVM
3 16777216 20971519 2.0 GiB 8E00 Linux LVM
4 20971520 31457279 5.0 GiB 8E00 Linux LVM
Legen Sie die BIOS-Boot-Partition vor der vorhandenen ersten Partition an. Der Startsektor ist 34, der Endsektor 2047 und der Typ ef02
Command (? for help): n
Partition number (5-128, default 5):
First sector (34-52428766, default = 31457280) or {+-}size{KMGTP}: 34
Last sector (34-2047, default = 2047) or {+-}size{KMGTP}:
Current type is 'Linux filesystem'
Hex code or GUID (L to show codes, Enter = 8300): ef02
Changed type of partition to 'BIOS boot partition'
Speichern Sie die Änderungen mit der Taste w.
Command (? for help): w
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.
The operation has completed successfully.
Laden Sie anschließend die Partitionstabelle neu, damit Linux die Änderungen übernimmt
partprobe
Installieren Sie zum Schluss grub erneut auf der Festplatte sda
grub2-install /dev/sda
Starten Sie dann abschließend Linux neu.