Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Migrating from MBR to GPT
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
CaptainBlood
Veteran
Veteran


Joined: 24 Jan 2010
Posts: 1109

PostPosted: Sun Jan 10, 2016 7:03 pm    Post subject: Migrating from MBR to GPT Reply with quote

Hi,
I have a single partition gentoo system that I need to migrate to a GPT partitioned disk (new).

The original partition includes grub which therefore hasn't been installed in mbr.

The new environment will remain in CSM BIOS config.

Is there anything I should worry about, or should a simple partition copy to the new disk be sufficient?

Thks 4 ur attention.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43437
Location: 56N 3W

PostPosted: Sun Jan 10, 2016 7:12 pm    Post subject: Reply with quote

CaptainBlood,

Some BIOSes don't play nicely booting from GPT.
If you need to set the bootable flag, it goes on the protective MSDOS partition, which you get for free with GPT.
The BIOS cannot read GPT, so setting the bootable flag there won't help.

You only need to use GPT if your HDD is bigger than 2.2Tb. (2TiB)
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
CaptainBlood
Veteran
Veteran


Joined: 24 Jan 2010
Posts: 1109

PostPosted: Sun Jan 10, 2016 8:07 pm    Post subject: Reply with quote

Dear NeddySeagoon,
What I didn't say is all that happens 'cause I need to go dual boot with an OS that requires GPT because EFI Bios is detected (despite CSM is activated).

So in this case my guess is that I'have no other choice than to go GPT.

Needless to say I expect further complications, only speculating yet.

Thks 4 ur attention, interest & support.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43437
Location: 56N 3W

PostPosted: Sun Jan 10, 2016 8:10 pm    Post subject: Reply with quote

CaptainBlood,

In that case, go EFI all round.
I still don't have any EFI systems, so I can't help much further.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
P.Kosunen
Guru
Guru


Joined: 21 Nov 2005
Posts: 309
Location: Finland

PostPosted: Mon Jan 11, 2016 3:21 pm    Post subject: Reply with quote

I have made tar backup and restore from BIOS mode installed virtual machine to new UEFI machines couple times.

Code:
# grep -i grub /etc/portage/make.conf
GRUB_PLATFORMS=efi-64

grub2-install --target=x86_64-efi --efi-directory=/boot/efi
grub2-mkconfig -o /boot/grub/grub.cfg


Removed and reinstalled grub in chroot booted from SystemRescueCd in new machine, efi boot partition is mounted /boot/efi. grubx64.efi is only file need to go efi partition, other grub files can be on Gentoo root partition.

Code:
efibootmgr -c -d /dev/sda -p 2 -L "Gentoo" -l "\EFI\gentoo\grubx64.efi"


Try to run efibootmgr in chroot, but if problems might need to run /EFI/gentoo/grubx64.efi from UEFI shell to boot and run it from new system.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum