Particijski format Master Boot Record (MBR) nadomešča novejši standard GUID Partition Table (GPT), vendar se MBR še vedno pogosto uporablja kot privzeti format. Format GPT ima za particijske tabele v primerjavi z MBR številne prednosti. Poleg podpore za bistveno večje diske (2T+) omogoča hitrejši in stabilnejši zagon sistema.
Preklopi na uporabnika root (ali se prijavi kot root)
sudo su -
Če orodje gdisk še ni nameščeno, ga namesti.
yum install gdisk
Zaženi particijsko orodje za GPT, pripomoček gdisk. Kot parameter mu podaj pot do diska, npr. če je tvoj disk sda, takole:
gdisk /dev/sda
Po zagonu izpiše trenutno stanje, v tem primeru je našel samo MBR.
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!
***************************************************************
Preveri, ali je pred prvo particijo dovolj prostora za ustvarjanje zagonske particije BIOS. Če se prvi sektor prve particije začne pri sektorju 2048 (ali višje), je vse v redu. S pritiskom na »p« in Enter izpiše particijsko tabelo.
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
Ustvari zagonsko particijo BIOS pred obstoječo prvo particijo. Začetni sektor bo 34, končni 2047, tip pa 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'
Spremembe shrani s tipko 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.
Nato znova naloži particijsko tabelo, da Linux upošteva spremembe
partprobe
Na koncu znova namesti grub na disk sda
grub2-install /dev/sda
Nazadnje znova zaženi Linux.