Install fails on grub install
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
I have a dual booting desktop for some time.
- /dev/sda - SSD drive containing Windows
- /dev/sdb - SSD drive containing Ubuntu
- /dev/sdc - HDD drive with data for both OSes
Recently I switched the SSD drives from MBR to GPT and switched off the legacy modus in my BIOS, so it is UEFI now.
Since then, the GRUB disappeared and I cannot get it to install again.
First I tried the "regular" way of booting from live USB, chrooting into the system on /dev/sdb and running grub-install. This results in the error:
grub-install: warning: this GPT partition label contains no BIOS Boot Partition: embedding won't be possible
grub-install: error: embedding is not possible, but this is required for cross-disk install
Installing it to /dev/sdb is possible but then, depending on which device gets boot priority, there is no choice in OS (so boot from sda and you boot directly to Windows, boot from sdb and you boot directly to Ubuntu).
Then I tried wiping /dev/sdb and reinstalling from a live USB, but upon completing the setup, I get an error that the grub cannot be installed. Not on sda, not on sdb. I does not help if I first boot into "Try Ubuntu" and update, it keeps failing on this step. I tried lvm and regular, I tried manually setting the devices partition actions and just letting the setup do this.
I tried repairing Windows boot before reinstalling but nothing changed (to be fair, Windows was booting alright, so there might not be much to repair). I tried all options of bootrec.exe, I tried bcdboot and I tried Startup Repair.
Any idea what else I can try?
dual-boot grub2 gpt
New contributor
TacoV is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
I have a dual booting desktop for some time.
- /dev/sda - SSD drive containing Windows
- /dev/sdb - SSD drive containing Ubuntu
- /dev/sdc - HDD drive with data for both OSes
Recently I switched the SSD drives from MBR to GPT and switched off the legacy modus in my BIOS, so it is UEFI now.
Since then, the GRUB disappeared and I cannot get it to install again.
First I tried the "regular" way of booting from live USB, chrooting into the system on /dev/sdb and running grub-install. This results in the error:
grub-install: warning: this GPT partition label contains no BIOS Boot Partition: embedding won't be possible
grub-install: error: embedding is not possible, but this is required for cross-disk install
Installing it to /dev/sdb is possible but then, depending on which device gets boot priority, there is no choice in OS (so boot from sda and you boot directly to Windows, boot from sdb and you boot directly to Ubuntu).
Then I tried wiping /dev/sdb and reinstalling from a live USB, but upon completing the setup, I get an error that the grub cannot be installed. Not on sda, not on sdb. I does not help if I first boot into "Try Ubuntu" and update, it keeps failing on this step. I tried lvm and regular, I tried manually setting the devices partition actions and just letting the setup do this.
I tried repairing Windows boot before reinstalling but nothing changed (to be fair, Windows was booting alright, so there might not be much to repair). I tried all options of bootrec.exe, I tried bcdboot and I tried Startup Repair.
Any idea what else I can try?
dual-boot grub2 gpt
New contributor
TacoV is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Windows only boots from gpt with UEFI. So did you also convert to UEFI booting. If so then you need an ESP - efi system partition (FAT32 wiht boot flag). I like to have one on every drive, as repartitioning to add one later is a hassle. But grub only uses ESP on drive seen first, normally sda & then Windows' ESP. If BIOS, then answer befow is correct, but you need to install with Something Else if new install and install grub to same drive as Ubuntu.
– oldfred
Apr 6 at 19:23
I thought I switched fully to UEFI but found it was still in Legacy mode. Now I switched this off and have the ESP EFI partition, and it works well (installer handles it mostly)
– TacoV
2 days ago
add a comment |
I have a dual booting desktop for some time.
- /dev/sda - SSD drive containing Windows
- /dev/sdb - SSD drive containing Ubuntu
- /dev/sdc - HDD drive with data for both OSes
Recently I switched the SSD drives from MBR to GPT and switched off the legacy modus in my BIOS, so it is UEFI now.
Since then, the GRUB disappeared and I cannot get it to install again.
First I tried the "regular" way of booting from live USB, chrooting into the system on /dev/sdb and running grub-install. This results in the error:
grub-install: warning: this GPT partition label contains no BIOS Boot Partition: embedding won't be possible
grub-install: error: embedding is not possible, but this is required for cross-disk install
Installing it to /dev/sdb is possible but then, depending on which device gets boot priority, there is no choice in OS (so boot from sda and you boot directly to Windows, boot from sdb and you boot directly to Ubuntu).
Then I tried wiping /dev/sdb and reinstalling from a live USB, but upon completing the setup, I get an error that the grub cannot be installed. Not on sda, not on sdb. I does not help if I first boot into "Try Ubuntu" and update, it keeps failing on this step. I tried lvm and regular, I tried manually setting the devices partition actions and just letting the setup do this.
I tried repairing Windows boot before reinstalling but nothing changed (to be fair, Windows was booting alright, so there might not be much to repair). I tried all options of bootrec.exe, I tried bcdboot and I tried Startup Repair.
Any idea what else I can try?
dual-boot grub2 gpt
New contributor
TacoV is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
I have a dual booting desktop for some time.
- /dev/sda - SSD drive containing Windows
- /dev/sdb - SSD drive containing Ubuntu
- /dev/sdc - HDD drive with data for both OSes
Recently I switched the SSD drives from MBR to GPT and switched off the legacy modus in my BIOS, so it is UEFI now.
Since then, the GRUB disappeared and I cannot get it to install again.
First I tried the "regular" way of booting from live USB, chrooting into the system on /dev/sdb and running grub-install. This results in the error:
grub-install: warning: this GPT partition label contains no BIOS Boot Partition: embedding won't be possible
grub-install: error: embedding is not possible, but this is required for cross-disk install
Installing it to /dev/sdb is possible but then, depending on which device gets boot priority, there is no choice in OS (so boot from sda and you boot directly to Windows, boot from sdb and you boot directly to Ubuntu).
Then I tried wiping /dev/sdb and reinstalling from a live USB, but upon completing the setup, I get an error that the grub cannot be installed. Not on sda, not on sdb. I does not help if I first boot into "Try Ubuntu" and update, it keeps failing on this step. I tried lvm and regular, I tried manually setting the devices partition actions and just letting the setup do this.
I tried repairing Windows boot before reinstalling but nothing changed (to be fair, Windows was booting alright, so there might not be much to repair). I tried all options of bootrec.exe, I tried bcdboot and I tried Startup Repair.
Any idea what else I can try?
dual-boot grub2 gpt
dual-boot grub2 gpt
New contributor
TacoV is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
TacoV is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
TacoV is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked Apr 6 at 16:49
TacoVTacoV
1032
1032
New contributor
TacoV is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
TacoV is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
TacoV is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Windows only boots from gpt with UEFI. So did you also convert to UEFI booting. If so then you need an ESP - efi system partition (FAT32 wiht boot flag). I like to have one on every drive, as repartitioning to add one later is a hassle. But grub only uses ESP on drive seen first, normally sda & then Windows' ESP. If BIOS, then answer befow is correct, but you need to install with Something Else if new install and install grub to same drive as Ubuntu.
– oldfred
Apr 6 at 19:23
I thought I switched fully to UEFI but found it was still in Legacy mode. Now I switched this off and have the ESP EFI partition, and it works well (installer handles it mostly)
– TacoV
2 days ago
add a comment |
Windows only boots from gpt with UEFI. So did you also convert to UEFI booting. If so then you need an ESP - efi system partition (FAT32 wiht boot flag). I like to have one on every drive, as repartitioning to add one later is a hassle. But grub only uses ESP on drive seen first, normally sda & then Windows' ESP. If BIOS, then answer befow is correct, but you need to install with Something Else if new install and install grub to same drive as Ubuntu.
– oldfred
Apr 6 at 19:23
I thought I switched fully to UEFI but found it was still in Legacy mode. Now I switched this off and have the ESP EFI partition, and it works well (installer handles it mostly)
– TacoV
2 days ago
Windows only boots from gpt with UEFI. So did you also convert to UEFI booting. If so then you need an ESP - efi system partition (FAT32 wiht boot flag). I like to have one on every drive, as repartitioning to add one later is a hassle. But grub only uses ESP on drive seen first, normally sda & then Windows' ESP. If BIOS, then answer befow is correct, but you need to install with Something Else if new install and install grub to same drive as Ubuntu.
– oldfred
Apr 6 at 19:23
Windows only boots from gpt with UEFI. So did you also convert to UEFI booting. If so then you need an ESP - efi system partition (FAT32 wiht boot flag). I like to have one on every drive, as repartitioning to add one later is a hassle. But grub only uses ESP on drive seen first, normally sda & then Windows' ESP. If BIOS, then answer befow is correct, but you need to install with Something Else if new install and install grub to same drive as Ubuntu.
– oldfred
Apr 6 at 19:23
I thought I switched fully to UEFI but found it was still in Legacy mode. Now I switched this off and have the ESP EFI partition, and it works well (installer handles it mostly)
– TacoV
2 days ago
I thought I switched fully to UEFI but found it was still in Legacy mode. Now I switched this off and have the ESP EFI partition, and it works well (installer handles it mostly)
– TacoV
2 days ago
add a comment |
1 Answer
1
active
oldest
votes
In GPT disk in BIOS mode a separate partition is needed.
Create 1 to 2 MB partition in the beginning of disk with a flag "bios_grub"
Mount point: none
Type: no filesystem
then install grub.
BIOS-Boot or EFI partition (required on GPT disks)
If you want to install Ubuntu on a GPT disk (you can check it via the 'sudo parted -l' command), you will need either an EFI partition (if your BIOS is set up in EFI mode) or a BIOS-Boot partition (if your BIOS is set up in Legacy mode).
BIOS-Boot partition:
Mount point: none
Type: no filesystem
Description: the BIOS-boot partition contains GRUB 2's core. It is necessary if you install Ubuntu on a GPT disk, and if the firmware (BIOS) is set up in Legacy (not EFI) mode. It must be located at the start of a GPT disk, and have a "bios_grub" flag.
Size: 1MB.
Source
Thanks to your answer I found my BIOS was still in Legacy mode instead of EFI (contrary to what I thought). Switched this and now the installer works. Thanks!
– TacoV
2 days ago
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
TacoV is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1131710%2finstall-fails-on-grub-install%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
In GPT disk in BIOS mode a separate partition is needed.
Create 1 to 2 MB partition in the beginning of disk with a flag "bios_grub"
Mount point: none
Type: no filesystem
then install grub.
BIOS-Boot or EFI partition (required on GPT disks)
If you want to install Ubuntu on a GPT disk (you can check it via the 'sudo parted -l' command), you will need either an EFI partition (if your BIOS is set up in EFI mode) or a BIOS-Boot partition (if your BIOS is set up in Legacy mode).
BIOS-Boot partition:
Mount point: none
Type: no filesystem
Description: the BIOS-boot partition contains GRUB 2's core. It is necessary if you install Ubuntu on a GPT disk, and if the firmware (BIOS) is set up in Legacy (not EFI) mode. It must be located at the start of a GPT disk, and have a "bios_grub" flag.
Size: 1MB.
Source
Thanks to your answer I found my BIOS was still in Legacy mode instead of EFI (contrary to what I thought). Switched this and now the installer works. Thanks!
– TacoV
2 days ago
add a comment |
In GPT disk in BIOS mode a separate partition is needed.
Create 1 to 2 MB partition in the beginning of disk with a flag "bios_grub"
Mount point: none
Type: no filesystem
then install grub.
BIOS-Boot or EFI partition (required on GPT disks)
If you want to install Ubuntu on a GPT disk (you can check it via the 'sudo parted -l' command), you will need either an EFI partition (if your BIOS is set up in EFI mode) or a BIOS-Boot partition (if your BIOS is set up in Legacy mode).
BIOS-Boot partition:
Mount point: none
Type: no filesystem
Description: the BIOS-boot partition contains GRUB 2's core. It is necessary if you install Ubuntu on a GPT disk, and if the firmware (BIOS) is set up in Legacy (not EFI) mode. It must be located at the start of a GPT disk, and have a "bios_grub" flag.
Size: 1MB.
Source
Thanks to your answer I found my BIOS was still in Legacy mode instead of EFI (contrary to what I thought). Switched this and now the installer works. Thanks!
– TacoV
2 days ago
add a comment |
In GPT disk in BIOS mode a separate partition is needed.
Create 1 to 2 MB partition in the beginning of disk with a flag "bios_grub"
Mount point: none
Type: no filesystem
then install grub.
BIOS-Boot or EFI partition (required on GPT disks)
If you want to install Ubuntu on a GPT disk (you can check it via the 'sudo parted -l' command), you will need either an EFI partition (if your BIOS is set up in EFI mode) or a BIOS-Boot partition (if your BIOS is set up in Legacy mode).
BIOS-Boot partition:
Mount point: none
Type: no filesystem
Description: the BIOS-boot partition contains GRUB 2's core. It is necessary if you install Ubuntu on a GPT disk, and if the firmware (BIOS) is set up in Legacy (not EFI) mode. It must be located at the start of a GPT disk, and have a "bios_grub" flag.
Size: 1MB.
Source
In GPT disk in BIOS mode a separate partition is needed.
Create 1 to 2 MB partition in the beginning of disk with a flag "bios_grub"
Mount point: none
Type: no filesystem
then install grub.
BIOS-Boot or EFI partition (required on GPT disks)
If you want to install Ubuntu on a GPT disk (you can check it via the 'sudo parted -l' command), you will need either an EFI partition (if your BIOS is set up in EFI mode) or a BIOS-Boot partition (if your BIOS is set up in Legacy mode).
BIOS-Boot partition:
Mount point: none
Type: no filesystem
Description: the BIOS-boot partition contains GRUB 2's core. It is necessary if you install Ubuntu on a GPT disk, and if the firmware (BIOS) is set up in Legacy (not EFI) mode. It must be located at the start of a GPT disk, and have a "bios_grub" flag.
Size: 1MB.
Source
answered Apr 6 at 17:09
VijayVijay
2,1041822
2,1041822
Thanks to your answer I found my BIOS was still in Legacy mode instead of EFI (contrary to what I thought). Switched this and now the installer works. Thanks!
– TacoV
2 days ago
add a comment |
Thanks to your answer I found my BIOS was still in Legacy mode instead of EFI (contrary to what I thought). Switched this and now the installer works. Thanks!
– TacoV
2 days ago
Thanks to your answer I found my BIOS was still in Legacy mode instead of EFI (contrary to what I thought). Switched this and now the installer works. Thanks!
– TacoV
2 days ago
Thanks to your answer I found my BIOS was still in Legacy mode instead of EFI (contrary to what I thought). Switched this and now the installer works. Thanks!
– TacoV
2 days ago
add a comment |
TacoV is a new contributor. Be nice, and check out our Code of Conduct.
TacoV is a new contributor. Be nice, and check out our Code of Conduct.
TacoV is a new contributor. Be nice, and check out our Code of Conduct.
TacoV is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1131710%2finstall-fails-on-grub-install%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Windows only boots from gpt with UEFI. So did you also convert to UEFI booting. If so then you need an ESP - efi system partition (FAT32 wiht boot flag). I like to have one on every drive, as repartitioning to add one later is a hassle. But grub only uses ESP on drive seen first, normally sda & then Windows' ESP. If BIOS, then answer befow is correct, but you need to install with Something Else if new install and install grub to same drive as Ubuntu.
– oldfred
Apr 6 at 19:23
I thought I switched fully to UEFI but found it was still in Legacy mode. Now I switched this off and have the ESP EFI partition, and it works well (installer handles it mostly)
– TacoV
2 days ago