Hi all
When booting I see ‘Invalid Partition Table!’, I then press enter and it boots grub2 and all is fine.
How can I get rid of this. I get it on hibernation also.
it was prefect before I messed it up with an ubuntu 14.04 LTS install that silently choose uefi even laptop was i legacy boot mode.
I believe it to be the disklabels and mbr that is messed up, how do I rewrite those
Disklabel type: gpt
Disk identifier: 6C8D497C-22F3-4496-8036-11AD5BB62506
Device Start End Sectors Size Type
/dev/sda1 2048 16771071 16769024 8G Microsoft basic data
/dev/sda2 16771072 500117503 483346432 230.5G Microsoft basic data
grub2-install /dev/sda
Installing for i386-pc platform.
grub2-install: warning: 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.
I tried a grub2-install /dev/sda --force
and now it just stands still in boot showing GRUB in the console
Thanks
You can not mix boot mode. Ok you can but it is a true pain and each UEFI may handle it different
Show fdisk -l
and
gdisk -l /dev/sda
since it appears GPT partitioned.
Multi-booting is much easier using EFI rather then legacy
That’s not actually possible. You could not have installed ubuntu for UEFI booting unless you booted the installer with UEFI. So the system was not in “legacy boot mode”. It was in some kind of compatibility mode where either uefi booting or legacy booting would work.
In any case, at this stage your simplest solution is to switch to UEFI booting. Except that if you have Windows installed for legacy booting, that will be a problem.
I think what you tried to do with “–force” won’t work if you are using “btrfs” for the partition containing “/boot”. In that case you would need to create a bios_boot partition (sometimes called a bios_grub) partition if you still want to use legacy booting (you can fit that between sectors 34 and 2047 if you know what you are doing). But UEFI booting will solve that for you.
I believe it to be the disklabels and mbr that is messed up, how do I rewrite those
Maybe you have a legacy “active” flag set for the protective MBR, and your BIOS doesn’t like that.
I’ll wait for a further response before saying more.
So you have GRUB boot block in your MBR but it has problem loading and launching second stage. Hard to tell what is wrong with so little information. Output of GitHub - arvidjaar/bootinfoscript may be helpful (boot from any live Linux, run script, upload RESULTS.txt to http://susepaste.org/).
It should have failed then, as btrfs is set to not allow blocklist install. Actually it would never come to this message, it aborts before.