Starý disk na novém motherboardu nebootuje, protože umí jen UEFI.

Disk /dev/sda Number Start (sector) End (sector) Size Code Name

 1            2048         1026047   500.0 MiB   8300  Linux filesystem
 2         1026048        11511807   5.0 GiB     8200  Linux swap
 3        11511808       468658175   218.0 GiB   8300  Linux filesystem

Pomoci gdisk /dev/sda ktery se jen spusti a pak „w“ ulozi GPT

Pokud se objevi nasledujici chyba:

Warning! Secondary partition table overlaps the last partition by 33 blocks!
You will need to delete this partition or resize it in another utility.

tak opravit bootnutim do boot-repair-disk-64bit.iso

a potom

[root@barka ~]# gdisk /dev/sda
GPT fdisk (gdisk) version 1.0.9

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!
***************************************************************


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 or after you
run partprobe(8) or kpartx(8)
The operation has completed successfully.

Vysledek je GPT disk

Pak zmenit EF00 pro prvni partition v pomoci gdisk /dev/sda

Nasledne vytvorit fat filesystem na sda1 mkfs.fat /dev/sda1

Instalovat grub2 stale nejde:

[root@barka ~]# grub2-install /dev/sda
Installing for i386-pc platform.
grub2-install: warning: ../grub-core/partmap/gpt.c:194:this GPT partition label contains no BIOS Boot Partition; embedding won't be possible.
grub2-install: warning: Embedding is not possible.  GRUB can only be installed in this setup by using blocklists.  However, blocklists are UNRELIABLE and their use is 
discouraged..
grub2-install: error: will not proceed with blocklists.

Ale to se opravi pomoci parted /dev/sda

parted /dev/sda
set 1 boot off
set 1 bios_grub on
q

Pak uz jde grub2-install /dev/sda

[root@barka ~]# grub2-install /dev/sda
Installing for i386-pc platform.
Installation finished. No error reported.
Tisk/export