grub-install: warning: this GPT partition label contains no BIOS Boot Partition; embedding won't be possible
when boot, I hit "grub rescue" and can boot with "set root=(hd1,gpt1) ..."
after boot, ran "sudo update-grub" and then ran "sudo grub-install /dev/sda", but facing error below
on /boot/grub/grub.cfg, I can see "set root='hd0,gpt1'",
so if I can modify it to hd1, I suppose my boot issue will be resolved.
(I have checked /etc/grub.d/* and /etc/default/grub, but I did not find how to edit hd(x))
my cmos says "UEFI" FYI,
please advise.
sudo grub-install /dev/sda
Installing for i386-pc platform.
**grub-install: warning: this GPT partition label contains no BIOS Boot Partition; embedding won't be possible.**
grub-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..
**grub-install: error: will not proceed with blocklists.**
Disk /dev/sda: 2.7 TiB, 3000592982016 bytes, 5860533168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: EB47D80D-DD29-474D-8267-A6CFE06F828A
Device Start End Sectors Size Type
/dev/sda1 5078124544 5860532223 782407680 373.1G Linux filesystem
/dev/sda2 2048 62500863 62498816 29.8G Linux swap
/dev/sda3 62500864 5078124543 5015623680 2.3T Linux filesystem
grub
add a comment |
when boot, I hit "grub rescue" and can boot with "set root=(hd1,gpt1) ..."
after boot, ran "sudo update-grub" and then ran "sudo grub-install /dev/sda", but facing error below
on /boot/grub/grub.cfg, I can see "set root='hd0,gpt1'",
so if I can modify it to hd1, I suppose my boot issue will be resolved.
(I have checked /etc/grub.d/* and /etc/default/grub, but I did not find how to edit hd(x))
my cmos says "UEFI" FYI,
please advise.
sudo grub-install /dev/sda
Installing for i386-pc platform.
**grub-install: warning: this GPT partition label contains no BIOS Boot Partition; embedding won't be possible.**
grub-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..
**grub-install: error: will not proceed with blocklists.**
Disk /dev/sda: 2.7 TiB, 3000592982016 bytes, 5860533168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: EB47D80D-DD29-474D-8267-A6CFE06F828A
Device Start End Sectors Size Type
/dev/sda1 5078124544 5860532223 782407680 373.1G Linux filesystem
/dev/sda2 2048 62500863 62498816 29.8G Linux swap
/dev/sda3 62500864 5078124543 5015623680 2.3T Linux filesystem
grub
Sorry can you try to be a little clearer with what you are asking? Please see How to Ask and take our tour.
– Burgi
Jan 4 at 8:59
add a comment |
when boot, I hit "grub rescue" and can boot with "set root=(hd1,gpt1) ..."
after boot, ran "sudo update-grub" and then ran "sudo grub-install /dev/sda", but facing error below
on /boot/grub/grub.cfg, I can see "set root='hd0,gpt1'",
so if I can modify it to hd1, I suppose my boot issue will be resolved.
(I have checked /etc/grub.d/* and /etc/default/grub, but I did not find how to edit hd(x))
my cmos says "UEFI" FYI,
please advise.
sudo grub-install /dev/sda
Installing for i386-pc platform.
**grub-install: warning: this GPT partition label contains no BIOS Boot Partition; embedding won't be possible.**
grub-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..
**grub-install: error: will not proceed with blocklists.**
Disk /dev/sda: 2.7 TiB, 3000592982016 bytes, 5860533168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: EB47D80D-DD29-474D-8267-A6CFE06F828A
Device Start End Sectors Size Type
/dev/sda1 5078124544 5860532223 782407680 373.1G Linux filesystem
/dev/sda2 2048 62500863 62498816 29.8G Linux swap
/dev/sda3 62500864 5078124543 5015623680 2.3T Linux filesystem
grub
when boot, I hit "grub rescue" and can boot with "set root=(hd1,gpt1) ..."
after boot, ran "sudo update-grub" and then ran "sudo grub-install /dev/sda", but facing error below
on /boot/grub/grub.cfg, I can see "set root='hd0,gpt1'",
so if I can modify it to hd1, I suppose my boot issue will be resolved.
(I have checked /etc/grub.d/* and /etc/default/grub, but I did not find how to edit hd(x))
my cmos says "UEFI" FYI,
please advise.
sudo grub-install /dev/sda
Installing for i386-pc platform.
**grub-install: warning: this GPT partition label contains no BIOS Boot Partition; embedding won't be possible.**
grub-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..
**grub-install: error: will not proceed with blocklists.**
Disk /dev/sda: 2.7 TiB, 3000592982016 bytes, 5860533168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: EB47D80D-DD29-474D-8267-A6CFE06F828A
Device Start End Sectors Size Type
/dev/sda1 5078124544 5860532223 782407680 373.1G Linux filesystem
/dev/sda2 2048 62500863 62498816 29.8G Linux swap
/dev/sda3 62500864 5078124543 5015623680 2.3T Linux filesystem
grub
grub
edited Jan 4 at 9:03
grawity
236k37500556
236k37500556
asked Jan 4 at 8:53
ShawnShawn
1
1
Sorry can you try to be a little clearer with what you are asking? Please see How to Ask and take our tour.
– Burgi
Jan 4 at 8:59
add a comment |
Sorry can you try to be a little clearer with what you are asking? Please see How to Ask and take our tour.
– Burgi
Jan 4 at 8:59
Sorry can you try to be a little clearer with what you are asking? Please see How to Ask and take our tour.
– Burgi
Jan 4 at 8:59
Sorry can you try to be a little clearer with what you are asking? Please see How to Ask and take our tour.
– Burgi
Jan 4 at 8:59
add a comment |
1 Answer
1
active
oldest
votes
If you want to use UEFI boot mode, then you're installing the wrong GRUB variant to the wrong place.
UEFI systems do not hold their bootloader directly in the 'MBR' of /dev/sda. They require a special partition, called the "EFI system partition", which holds files that comprise the bootloader. (For example, installing GRUB2 would copy a "grubx64.efi" file to that partition.)
So you must first create that partition, set the correct "partition type" in fdisk, format it with the correct filesystem, and mount it on e.g. /boot/efi.
(The EFI system partition should be ~200 MB, with partition type C12A7328-F81F-11D2-BA4B-00A0C93EC93B
on GPT disks, and must be formatted as FAT32 using mkfs.vfat
. It can be anywhere on the disk, so just shrink one of your existing partitions to make some space.)
After creating and mounting the partition, tell grub-install to install everything into /boot/efi and do not specify a disk name:
sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi
sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --removable
More detailed instructions can be found in:
- https://wiki.archlinux.org/index.php/GRUB#UEFI_systems
Note: The error message is shown because grub-install is currently trying to install GRUB2 for BIOS, not for UEFI. This might be because your system has currently been booted in "legacy mode" (e.g. from an UEFI-incompatible .iso image).
If you're in this situation but want the main system to use UEFI, ignore the error messages and just follow the above instructions. You may need to use grub-install with --removable
at first, then reboot into your freshly-installed system, and install grub again (but this time without --removable
) to set up the NVRAM entries as they should be.
However, if you actually want to install the BIOS GRUB variant, you still need a special partition because of the BIOS+GPT combination. This time, the "BIOS boot partition" (as the name says, only used in BIOS mode) needs to be ~2 MB, not formatted, and – I think – somewhere within the first 2 TiB of the disk.
Again, more information can be found at:
- https://wiki.archlinux.org/index.php/GRUB#BIOS_systems
- https://www.gnu.org/software/grub/manual/grub/html_node/BIOS-installation.html
thanks for the explanation, actually I don't care BIOS or UEFI, only what I want is boot without "grub rescue", from your comment BIOS+GPT looks simpler than UEFI.., let me try to find instructions for "BIOS+GPT"..
– Shawn
Jan 4 at 9:29
I belief you must sudo grub-install if you get:grub-install: warning: disk does not exist, so falling back to partition device /dev/sdb1.
– janat08
yesterday
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
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
});
}
});
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%2fsuperuser.com%2fquestions%2f1390428%2fgrub-install-warning-this-gpt-partition-label-contains-no-bios-boot-partition%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
If you want to use UEFI boot mode, then you're installing the wrong GRUB variant to the wrong place.
UEFI systems do not hold their bootloader directly in the 'MBR' of /dev/sda. They require a special partition, called the "EFI system partition", which holds files that comprise the bootloader. (For example, installing GRUB2 would copy a "grubx64.efi" file to that partition.)
So you must first create that partition, set the correct "partition type" in fdisk, format it with the correct filesystem, and mount it on e.g. /boot/efi.
(The EFI system partition should be ~200 MB, with partition type C12A7328-F81F-11D2-BA4B-00A0C93EC93B
on GPT disks, and must be formatted as FAT32 using mkfs.vfat
. It can be anywhere on the disk, so just shrink one of your existing partitions to make some space.)
After creating and mounting the partition, tell grub-install to install everything into /boot/efi and do not specify a disk name:
sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi
sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --removable
More detailed instructions can be found in:
- https://wiki.archlinux.org/index.php/GRUB#UEFI_systems
Note: The error message is shown because grub-install is currently trying to install GRUB2 for BIOS, not for UEFI. This might be because your system has currently been booted in "legacy mode" (e.g. from an UEFI-incompatible .iso image).
If you're in this situation but want the main system to use UEFI, ignore the error messages and just follow the above instructions. You may need to use grub-install with --removable
at first, then reboot into your freshly-installed system, and install grub again (but this time without --removable
) to set up the NVRAM entries as they should be.
However, if you actually want to install the BIOS GRUB variant, you still need a special partition because of the BIOS+GPT combination. This time, the "BIOS boot partition" (as the name says, only used in BIOS mode) needs to be ~2 MB, not formatted, and – I think – somewhere within the first 2 TiB of the disk.
Again, more information can be found at:
- https://wiki.archlinux.org/index.php/GRUB#BIOS_systems
- https://www.gnu.org/software/grub/manual/grub/html_node/BIOS-installation.html
thanks for the explanation, actually I don't care BIOS or UEFI, only what I want is boot without "grub rescue", from your comment BIOS+GPT looks simpler than UEFI.., let me try to find instructions for "BIOS+GPT"..
– Shawn
Jan 4 at 9:29
I belief you must sudo grub-install if you get:grub-install: warning: disk does not exist, so falling back to partition device /dev/sdb1.
– janat08
yesterday
add a comment |
If you want to use UEFI boot mode, then you're installing the wrong GRUB variant to the wrong place.
UEFI systems do not hold their bootloader directly in the 'MBR' of /dev/sda. They require a special partition, called the "EFI system partition", which holds files that comprise the bootloader. (For example, installing GRUB2 would copy a "grubx64.efi" file to that partition.)
So you must first create that partition, set the correct "partition type" in fdisk, format it with the correct filesystem, and mount it on e.g. /boot/efi.
(The EFI system partition should be ~200 MB, with partition type C12A7328-F81F-11D2-BA4B-00A0C93EC93B
on GPT disks, and must be formatted as FAT32 using mkfs.vfat
. It can be anywhere on the disk, so just shrink one of your existing partitions to make some space.)
After creating and mounting the partition, tell grub-install to install everything into /boot/efi and do not specify a disk name:
sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi
sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --removable
More detailed instructions can be found in:
- https://wiki.archlinux.org/index.php/GRUB#UEFI_systems
Note: The error message is shown because grub-install is currently trying to install GRUB2 for BIOS, not for UEFI. This might be because your system has currently been booted in "legacy mode" (e.g. from an UEFI-incompatible .iso image).
If you're in this situation but want the main system to use UEFI, ignore the error messages and just follow the above instructions. You may need to use grub-install with --removable
at first, then reboot into your freshly-installed system, and install grub again (but this time without --removable
) to set up the NVRAM entries as they should be.
However, if you actually want to install the BIOS GRUB variant, you still need a special partition because of the BIOS+GPT combination. This time, the "BIOS boot partition" (as the name says, only used in BIOS mode) needs to be ~2 MB, not formatted, and – I think – somewhere within the first 2 TiB of the disk.
Again, more information can be found at:
- https://wiki.archlinux.org/index.php/GRUB#BIOS_systems
- https://www.gnu.org/software/grub/manual/grub/html_node/BIOS-installation.html
thanks for the explanation, actually I don't care BIOS or UEFI, only what I want is boot without "grub rescue", from your comment BIOS+GPT looks simpler than UEFI.., let me try to find instructions for "BIOS+GPT"..
– Shawn
Jan 4 at 9:29
I belief you must sudo grub-install if you get:grub-install: warning: disk does not exist, so falling back to partition device /dev/sdb1.
– janat08
yesterday
add a comment |
If you want to use UEFI boot mode, then you're installing the wrong GRUB variant to the wrong place.
UEFI systems do not hold their bootloader directly in the 'MBR' of /dev/sda. They require a special partition, called the "EFI system partition", which holds files that comprise the bootloader. (For example, installing GRUB2 would copy a "grubx64.efi" file to that partition.)
So you must first create that partition, set the correct "partition type" in fdisk, format it with the correct filesystem, and mount it on e.g. /boot/efi.
(The EFI system partition should be ~200 MB, with partition type C12A7328-F81F-11D2-BA4B-00A0C93EC93B
on GPT disks, and must be formatted as FAT32 using mkfs.vfat
. It can be anywhere on the disk, so just shrink one of your existing partitions to make some space.)
After creating and mounting the partition, tell grub-install to install everything into /boot/efi and do not specify a disk name:
sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi
sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --removable
More detailed instructions can be found in:
- https://wiki.archlinux.org/index.php/GRUB#UEFI_systems
Note: The error message is shown because grub-install is currently trying to install GRUB2 for BIOS, not for UEFI. This might be because your system has currently been booted in "legacy mode" (e.g. from an UEFI-incompatible .iso image).
If you're in this situation but want the main system to use UEFI, ignore the error messages and just follow the above instructions. You may need to use grub-install with --removable
at first, then reboot into your freshly-installed system, and install grub again (but this time without --removable
) to set up the NVRAM entries as they should be.
However, if you actually want to install the BIOS GRUB variant, you still need a special partition because of the BIOS+GPT combination. This time, the "BIOS boot partition" (as the name says, only used in BIOS mode) needs to be ~2 MB, not formatted, and – I think – somewhere within the first 2 TiB of the disk.
Again, more information can be found at:
- https://wiki.archlinux.org/index.php/GRUB#BIOS_systems
- https://www.gnu.org/software/grub/manual/grub/html_node/BIOS-installation.html
If you want to use UEFI boot mode, then you're installing the wrong GRUB variant to the wrong place.
UEFI systems do not hold their bootloader directly in the 'MBR' of /dev/sda. They require a special partition, called the "EFI system partition", which holds files that comprise the bootloader. (For example, installing GRUB2 would copy a "grubx64.efi" file to that partition.)
So you must first create that partition, set the correct "partition type" in fdisk, format it with the correct filesystem, and mount it on e.g. /boot/efi.
(The EFI system partition should be ~200 MB, with partition type C12A7328-F81F-11D2-BA4B-00A0C93EC93B
on GPT disks, and must be formatted as FAT32 using mkfs.vfat
. It can be anywhere on the disk, so just shrink one of your existing partitions to make some space.)
After creating and mounting the partition, tell grub-install to install everything into /boot/efi and do not specify a disk name:
sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi
sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --removable
More detailed instructions can be found in:
- https://wiki.archlinux.org/index.php/GRUB#UEFI_systems
Note: The error message is shown because grub-install is currently trying to install GRUB2 for BIOS, not for UEFI. This might be because your system has currently been booted in "legacy mode" (e.g. from an UEFI-incompatible .iso image).
If you're in this situation but want the main system to use UEFI, ignore the error messages and just follow the above instructions. You may need to use grub-install with --removable
at first, then reboot into your freshly-installed system, and install grub again (but this time without --removable
) to set up the NVRAM entries as they should be.
However, if you actually want to install the BIOS GRUB variant, you still need a special partition because of the BIOS+GPT combination. This time, the "BIOS boot partition" (as the name says, only used in BIOS mode) needs to be ~2 MB, not formatted, and – I think – somewhere within the first 2 TiB of the disk.
Again, more information can be found at:
- https://wiki.archlinux.org/index.php/GRUB#BIOS_systems
- https://www.gnu.org/software/grub/manual/grub/html_node/BIOS-installation.html
edited 19 hours ago
janat08
1032
1032
answered Jan 4 at 9:03
grawitygrawity
236k37500556
236k37500556
thanks for the explanation, actually I don't care BIOS or UEFI, only what I want is boot without "grub rescue", from your comment BIOS+GPT looks simpler than UEFI.., let me try to find instructions for "BIOS+GPT"..
– Shawn
Jan 4 at 9:29
I belief you must sudo grub-install if you get:grub-install: warning: disk does not exist, so falling back to partition device /dev/sdb1.
– janat08
yesterday
add a comment |
thanks for the explanation, actually I don't care BIOS or UEFI, only what I want is boot without "grub rescue", from your comment BIOS+GPT looks simpler than UEFI.., let me try to find instructions for "BIOS+GPT"..
– Shawn
Jan 4 at 9:29
I belief you must sudo grub-install if you get:grub-install: warning: disk does not exist, so falling back to partition device /dev/sdb1.
– janat08
yesterday
thanks for the explanation, actually I don't care BIOS or UEFI, only what I want is boot without "grub rescue", from your comment BIOS+GPT looks simpler than UEFI.., let me try to find instructions for "BIOS+GPT"..
– Shawn
Jan 4 at 9:29
thanks for the explanation, actually I don't care BIOS or UEFI, only what I want is boot without "grub rescue", from your comment BIOS+GPT looks simpler than UEFI.., let me try to find instructions for "BIOS+GPT"..
– Shawn
Jan 4 at 9:29
I belief you must sudo grub-install if you get:
grub-install: warning: disk does not exist, so falling back to partition device /dev/sdb1.
– janat08
yesterday
I belief you must sudo grub-install if you get:
grub-install: warning: disk does not exist, so falling back to partition device /dev/sdb1.
– janat08
yesterday
add a comment |
Thanks for contributing an answer to Super User!
- 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%2fsuperuser.com%2fquestions%2f1390428%2fgrub-install-warning-this-gpt-partition-label-contains-no-bios-boot-partition%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
Sorry can you try to be a little clearer with what you are asking? Please see How to Ask and take our tour.
– Burgi
Jan 4 at 8:59