UEFI not recognising EFI partition: no booting options
I messed up the EFI partition and now when I boot my computer it opens the BIOS interface without any boot option, as if my disk has been erased.
However using a live USB (which is correctly recognised and booted) and using grub command line I've been able to boot my principal OS (Ubuntu).
However I don't know how to fix this problem.
I've tried running grub-install /dev/sda but it didn't changed anything.
The EFI partition seems completely fine: it has the correct flag (esp, boot) and there are all the correct files inside.
tree /boot/efi/
└── EFI
├── Boot
│ └── bootx64.efi
├── Microsoft
│ ├── Boot
│ .....
└── ubuntu
├── fbx64.efi
├── fw
├── fwupx64.efi
├── grub.cfg
├── grubx64.efi
├── mmx64.efi
└── shimx64.efi
What I should check? What I'm missing?
This is my partition table:
parted /dev/sda print
Model: ATA Crucial_CT525MX3 (scsi)
Disk /dev/sda: 525GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 1612MB 1611MB fat32 EFI System Partition boot, esp
2 1612MB 87.9GB 86.3GB ext4 Ubuntu
3 87.9GB 281GB 193GB ext4 Home
5 290GB 290GB 16.8MB Microsoft reserved partition msftres
6 290GB 405GB 115GB ntfs Basic data partition msftdata
8 405GB 500GB 94.4GB ntfs Data msftdata
9 500GB 525GB 25.3GB ext4 Backup OS
boot grub2 uefi
add a comment |
I messed up the EFI partition and now when I boot my computer it opens the BIOS interface without any boot option, as if my disk has been erased.
However using a live USB (which is correctly recognised and booted) and using grub command line I've been able to boot my principal OS (Ubuntu).
However I don't know how to fix this problem.
I've tried running grub-install /dev/sda but it didn't changed anything.
The EFI partition seems completely fine: it has the correct flag (esp, boot) and there are all the correct files inside.
tree /boot/efi/
└── EFI
├── Boot
│ └── bootx64.efi
├── Microsoft
│ ├── Boot
│ .....
└── ubuntu
├── fbx64.efi
├── fw
├── fwupx64.efi
├── grub.cfg
├── grubx64.efi
├── mmx64.efi
└── shimx64.efi
What I should check? What I'm missing?
This is my partition table:
parted /dev/sda print
Model: ATA Crucial_CT525MX3 (scsi)
Disk /dev/sda: 525GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 1612MB 1611MB fat32 EFI System Partition boot, esp
2 1612MB 87.9GB 86.3GB ext4 Ubuntu
3 87.9GB 281GB 193GB ext4 Home
5 290GB 290GB 16.8MB Microsoft reserved partition msftres
6 290GB 405GB 115GB ntfs Basic data partition msftdata
8 405GB 500GB 94.4GB ntfs Data msftdata
9 500GB 525GB 25.3GB ext4 Backup OS
boot grub2 uefi
Can you post the output fromparted /dev/sda print
plz?
– 0xSheepdog
Apr 20 '17 at 22:12
@0xSheepdog I added it
– skdys
Apr 20 '17 at 22:17
add a comment |
I messed up the EFI partition and now when I boot my computer it opens the BIOS interface without any boot option, as if my disk has been erased.
However using a live USB (which is correctly recognised and booted) and using grub command line I've been able to boot my principal OS (Ubuntu).
However I don't know how to fix this problem.
I've tried running grub-install /dev/sda but it didn't changed anything.
The EFI partition seems completely fine: it has the correct flag (esp, boot) and there are all the correct files inside.
tree /boot/efi/
└── EFI
├── Boot
│ └── bootx64.efi
├── Microsoft
│ ├── Boot
│ .....
└── ubuntu
├── fbx64.efi
├── fw
├── fwupx64.efi
├── grub.cfg
├── grubx64.efi
├── mmx64.efi
└── shimx64.efi
What I should check? What I'm missing?
This is my partition table:
parted /dev/sda print
Model: ATA Crucial_CT525MX3 (scsi)
Disk /dev/sda: 525GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 1612MB 1611MB fat32 EFI System Partition boot, esp
2 1612MB 87.9GB 86.3GB ext4 Ubuntu
3 87.9GB 281GB 193GB ext4 Home
5 290GB 290GB 16.8MB Microsoft reserved partition msftres
6 290GB 405GB 115GB ntfs Basic data partition msftdata
8 405GB 500GB 94.4GB ntfs Data msftdata
9 500GB 525GB 25.3GB ext4 Backup OS
boot grub2 uefi
I messed up the EFI partition and now when I boot my computer it opens the BIOS interface without any boot option, as if my disk has been erased.
However using a live USB (which is correctly recognised and booted) and using grub command line I've been able to boot my principal OS (Ubuntu).
However I don't know how to fix this problem.
I've tried running grub-install /dev/sda but it didn't changed anything.
The EFI partition seems completely fine: it has the correct flag (esp, boot) and there are all the correct files inside.
tree /boot/efi/
└── EFI
├── Boot
│ └── bootx64.efi
├── Microsoft
│ ├── Boot
│ .....
└── ubuntu
├── fbx64.efi
├── fw
├── fwupx64.efi
├── grub.cfg
├── grubx64.efi
├── mmx64.efi
└── shimx64.efi
What I should check? What I'm missing?
This is my partition table:
parted /dev/sda print
Model: ATA Crucial_CT525MX3 (scsi)
Disk /dev/sda: 525GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 1612MB 1611MB fat32 EFI System Partition boot, esp
2 1612MB 87.9GB 86.3GB ext4 Ubuntu
3 87.9GB 281GB 193GB ext4 Home
5 290GB 290GB 16.8MB Microsoft reserved partition msftres
6 290GB 405GB 115GB ntfs Basic data partition msftdata
8 405GB 500GB 94.4GB ntfs Data msftdata
9 500GB 525GB 25.3GB ext4 Backup OS
boot grub2 uefi
boot grub2 uefi
edited Apr 20 '17 at 22:16
skdys
asked Apr 20 '17 at 21:20
skdysskdys
10114
10114
Can you post the output fromparted /dev/sda print
plz?
– 0xSheepdog
Apr 20 '17 at 22:12
@0xSheepdog I added it
– skdys
Apr 20 '17 at 22:17
add a comment |
Can you post the output fromparted /dev/sda print
plz?
– 0xSheepdog
Apr 20 '17 at 22:12
@0xSheepdog I added it
– skdys
Apr 20 '17 at 22:17
Can you post the output from
parted /dev/sda print
plz?– 0xSheepdog
Apr 20 '17 at 22:12
Can you post the output from
parted /dev/sda print
plz?– 0xSheepdog
Apr 20 '17 at 22:12
@0xSheepdog I added it
– skdys
Apr 20 '17 at 22:17
@0xSheepdog I added it
– skdys
Apr 20 '17 at 22:17
add a comment |
3 Answers
3
active
oldest
votes
My guess is your EFI system variables aren't being set to point to the right bootloader. The program you want to check this is efibootmgr
. This will show you all of the boot entries stored in NVRAM.
In theory, grub-install
should handle this, but you may not be passing the right options. This sample command SHOULD work:
grub-install --target=x86_64-efi --efi-directory=ESP_MOUNT_PATH --bootloader-id=grub
Change ESP_MOUNT_PATH
to the path of your EFI dir.
If this doesn't work, you can try using efibootmgr
directly:
efibootmgr --create --disk /dev/sda --part 1 --loader /EFI/ubuntu/grubx64.efi --label "GRUB"
I think on some systems you may have to use /EFI/ubuntu/shimx64.efi
. So try something like this and see what works.
I've tried both the commands: they worked correctly (the second had created a new boot entry which i can display trough efibootmgr ) however when I turn on my pc I get to the BIOS screen with no boot options
– skdys
Apr 21 '17 at 9:46
Couple things: * it LOOKS ok, but can you print /dev/sda's partition table in gdisk, to make sure that has the correct partition type: EF00? * Also, check in your BIOS settings for things like 'Legacy Boot', or CSM (Compatability Support Module) - try disabling those, to force the BIOS to ONLY go for GPT/EFI boot, and totally skip its MBR booting logic - see if that helps. * Do you have any other hard drives, that may have another EFI system partition on them?
– ceezy
Apr 21 '17 at 22:06
add a comment |
I resolved the problem simply formatting the partition (FAT32 with boot flag as obviously), mounting it and running grub-install
. Then I had only to update the UUID in /etc/fstab
. For Windows I had to use a USB with the installer and use the utility bcdboot
to rewrite the EFI.
add a comment |
There is another issue that can cause this, which I have recently hit.
To detect this issue, boot from a Linux live and run gdisk /dev/sd[whatever-your-disk-is] , usually /dev/sda or /dev/sdb or /dev/sdc .
Give the p command to ensure you see the right list of partitions (if not, this might not be your disk).
Then give the v command. And it might respond with this:
Warning: The 0xEE protective partition in the MBR is marked as active. This is
technically a violation of the GPT specification, and can cause some EFIs to
ignore the disk, but it is required to boot from a GPT disk on some BIOS-based
computers. You can clear this flag by creating a fresh protective MBR using
the 'n' option on the experts' menu.
If this is the response, use the commands: e, n, w. Then reboot and you might have your EFI back!
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
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: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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%2funix.stackexchange.com%2fquestions%2f360305%2fuefi-not-recognising-efi-partition-no-booting-options%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
My guess is your EFI system variables aren't being set to point to the right bootloader. The program you want to check this is efibootmgr
. This will show you all of the boot entries stored in NVRAM.
In theory, grub-install
should handle this, but you may not be passing the right options. This sample command SHOULD work:
grub-install --target=x86_64-efi --efi-directory=ESP_MOUNT_PATH --bootloader-id=grub
Change ESP_MOUNT_PATH
to the path of your EFI dir.
If this doesn't work, you can try using efibootmgr
directly:
efibootmgr --create --disk /dev/sda --part 1 --loader /EFI/ubuntu/grubx64.efi --label "GRUB"
I think on some systems you may have to use /EFI/ubuntu/shimx64.efi
. So try something like this and see what works.
I've tried both the commands: they worked correctly (the second had created a new boot entry which i can display trough efibootmgr ) however when I turn on my pc I get to the BIOS screen with no boot options
– skdys
Apr 21 '17 at 9:46
Couple things: * it LOOKS ok, but can you print /dev/sda's partition table in gdisk, to make sure that has the correct partition type: EF00? * Also, check in your BIOS settings for things like 'Legacy Boot', or CSM (Compatability Support Module) - try disabling those, to force the BIOS to ONLY go for GPT/EFI boot, and totally skip its MBR booting logic - see if that helps. * Do you have any other hard drives, that may have another EFI system partition on them?
– ceezy
Apr 21 '17 at 22:06
add a comment |
My guess is your EFI system variables aren't being set to point to the right bootloader. The program you want to check this is efibootmgr
. This will show you all of the boot entries stored in NVRAM.
In theory, grub-install
should handle this, but you may not be passing the right options. This sample command SHOULD work:
grub-install --target=x86_64-efi --efi-directory=ESP_MOUNT_PATH --bootloader-id=grub
Change ESP_MOUNT_PATH
to the path of your EFI dir.
If this doesn't work, you can try using efibootmgr
directly:
efibootmgr --create --disk /dev/sda --part 1 --loader /EFI/ubuntu/grubx64.efi --label "GRUB"
I think on some systems you may have to use /EFI/ubuntu/shimx64.efi
. So try something like this and see what works.
I've tried both the commands: they worked correctly (the second had created a new boot entry which i can display trough efibootmgr ) however when I turn on my pc I get to the BIOS screen with no boot options
– skdys
Apr 21 '17 at 9:46
Couple things: * it LOOKS ok, but can you print /dev/sda's partition table in gdisk, to make sure that has the correct partition type: EF00? * Also, check in your BIOS settings for things like 'Legacy Boot', or CSM (Compatability Support Module) - try disabling those, to force the BIOS to ONLY go for GPT/EFI boot, and totally skip its MBR booting logic - see if that helps. * Do you have any other hard drives, that may have another EFI system partition on them?
– ceezy
Apr 21 '17 at 22:06
add a comment |
My guess is your EFI system variables aren't being set to point to the right bootloader. The program you want to check this is efibootmgr
. This will show you all of the boot entries stored in NVRAM.
In theory, grub-install
should handle this, but you may not be passing the right options. This sample command SHOULD work:
grub-install --target=x86_64-efi --efi-directory=ESP_MOUNT_PATH --bootloader-id=grub
Change ESP_MOUNT_PATH
to the path of your EFI dir.
If this doesn't work, you can try using efibootmgr
directly:
efibootmgr --create --disk /dev/sda --part 1 --loader /EFI/ubuntu/grubx64.efi --label "GRUB"
I think on some systems you may have to use /EFI/ubuntu/shimx64.efi
. So try something like this and see what works.
My guess is your EFI system variables aren't being set to point to the right bootloader. The program you want to check this is efibootmgr
. This will show you all of the boot entries stored in NVRAM.
In theory, grub-install
should handle this, but you may not be passing the right options. This sample command SHOULD work:
grub-install --target=x86_64-efi --efi-directory=ESP_MOUNT_PATH --bootloader-id=grub
Change ESP_MOUNT_PATH
to the path of your EFI dir.
If this doesn't work, you can try using efibootmgr
directly:
efibootmgr --create --disk /dev/sda --part 1 --loader /EFI/ubuntu/grubx64.efi --label "GRUB"
I think on some systems you may have to use /EFI/ubuntu/shimx64.efi
. So try something like this and see what works.
answered Apr 20 '17 at 23:08
ceezyceezy
5112
5112
I've tried both the commands: they worked correctly (the second had created a new boot entry which i can display trough efibootmgr ) however when I turn on my pc I get to the BIOS screen with no boot options
– skdys
Apr 21 '17 at 9:46
Couple things: * it LOOKS ok, but can you print /dev/sda's partition table in gdisk, to make sure that has the correct partition type: EF00? * Also, check in your BIOS settings for things like 'Legacy Boot', or CSM (Compatability Support Module) - try disabling those, to force the BIOS to ONLY go for GPT/EFI boot, and totally skip its MBR booting logic - see if that helps. * Do you have any other hard drives, that may have another EFI system partition on them?
– ceezy
Apr 21 '17 at 22:06
add a comment |
I've tried both the commands: they worked correctly (the second had created a new boot entry which i can display trough efibootmgr ) however when I turn on my pc I get to the BIOS screen with no boot options
– skdys
Apr 21 '17 at 9:46
Couple things: * it LOOKS ok, but can you print /dev/sda's partition table in gdisk, to make sure that has the correct partition type: EF00? * Also, check in your BIOS settings for things like 'Legacy Boot', or CSM (Compatability Support Module) - try disabling those, to force the BIOS to ONLY go for GPT/EFI boot, and totally skip its MBR booting logic - see if that helps. * Do you have any other hard drives, that may have another EFI system partition on them?
– ceezy
Apr 21 '17 at 22:06
I've tried both the commands: they worked correctly (the second had created a new boot entry which i can display trough efibootmgr ) however when I turn on my pc I get to the BIOS screen with no boot options
– skdys
Apr 21 '17 at 9:46
I've tried both the commands: they worked correctly (the second had created a new boot entry which i can display trough efibootmgr ) however when I turn on my pc I get to the BIOS screen with no boot options
– skdys
Apr 21 '17 at 9:46
Couple things: * it LOOKS ok, but can you print /dev/sda's partition table in gdisk, to make sure that has the correct partition type: EF00? * Also, check in your BIOS settings for things like 'Legacy Boot', or CSM (Compatability Support Module) - try disabling those, to force the BIOS to ONLY go for GPT/EFI boot, and totally skip its MBR booting logic - see if that helps. * Do you have any other hard drives, that may have another EFI system partition on them?
– ceezy
Apr 21 '17 at 22:06
Couple things: * it LOOKS ok, but can you print /dev/sda's partition table in gdisk, to make sure that has the correct partition type: EF00? * Also, check in your BIOS settings for things like 'Legacy Boot', or CSM (Compatability Support Module) - try disabling those, to force the BIOS to ONLY go for GPT/EFI boot, and totally skip its MBR booting logic - see if that helps. * Do you have any other hard drives, that may have another EFI system partition on them?
– ceezy
Apr 21 '17 at 22:06
add a comment |
I resolved the problem simply formatting the partition (FAT32 with boot flag as obviously), mounting it and running grub-install
. Then I had only to update the UUID in /etc/fstab
. For Windows I had to use a USB with the installer and use the utility bcdboot
to rewrite the EFI.
add a comment |
I resolved the problem simply formatting the partition (FAT32 with boot flag as obviously), mounting it and running grub-install
. Then I had only to update the UUID in /etc/fstab
. For Windows I had to use a USB with the installer and use the utility bcdboot
to rewrite the EFI.
add a comment |
I resolved the problem simply formatting the partition (FAT32 with boot flag as obviously), mounting it and running grub-install
. Then I had only to update the UUID in /etc/fstab
. For Windows I had to use a USB with the installer and use the utility bcdboot
to rewrite the EFI.
I resolved the problem simply formatting the partition (FAT32 with boot flag as obviously), mounting it and running grub-install
. Then I had only to update the UUID in /etc/fstab
. For Windows I had to use a USB with the installer and use the utility bcdboot
to rewrite the EFI.
answered Apr 22 '17 at 8:36
skdysskdys
10114
10114
add a comment |
add a comment |
There is another issue that can cause this, which I have recently hit.
To detect this issue, boot from a Linux live and run gdisk /dev/sd[whatever-your-disk-is] , usually /dev/sda or /dev/sdb or /dev/sdc .
Give the p command to ensure you see the right list of partitions (if not, this might not be your disk).
Then give the v command. And it might respond with this:
Warning: The 0xEE protective partition in the MBR is marked as active. This is
technically a violation of the GPT specification, and can cause some EFIs to
ignore the disk, but it is required to boot from a GPT disk on some BIOS-based
computers. You can clear this flag by creating a fresh protective MBR using
the 'n' option on the experts' menu.
If this is the response, use the commands: e, n, w. Then reboot and you might have your EFI back!
add a comment |
There is another issue that can cause this, which I have recently hit.
To detect this issue, boot from a Linux live and run gdisk /dev/sd[whatever-your-disk-is] , usually /dev/sda or /dev/sdb or /dev/sdc .
Give the p command to ensure you see the right list of partitions (if not, this might not be your disk).
Then give the v command. And it might respond with this:
Warning: The 0xEE protective partition in the MBR is marked as active. This is
technically a violation of the GPT specification, and can cause some EFIs to
ignore the disk, but it is required to boot from a GPT disk on some BIOS-based
computers. You can clear this flag by creating a fresh protective MBR using
the 'n' option on the experts' menu.
If this is the response, use the commands: e, n, w. Then reboot and you might have your EFI back!
add a comment |
There is another issue that can cause this, which I have recently hit.
To detect this issue, boot from a Linux live and run gdisk /dev/sd[whatever-your-disk-is] , usually /dev/sda or /dev/sdb or /dev/sdc .
Give the p command to ensure you see the right list of partitions (if not, this might not be your disk).
Then give the v command. And it might respond with this:
Warning: The 0xEE protective partition in the MBR is marked as active. This is
technically a violation of the GPT specification, and can cause some EFIs to
ignore the disk, but it is required to boot from a GPT disk on some BIOS-based
computers. You can clear this flag by creating a fresh protective MBR using
the 'n' option on the experts' menu.
If this is the response, use the commands: e, n, w. Then reboot and you might have your EFI back!
There is another issue that can cause this, which I have recently hit.
To detect this issue, boot from a Linux live and run gdisk /dev/sd[whatever-your-disk-is] , usually /dev/sda or /dev/sdb or /dev/sdc .
Give the p command to ensure you see the right list of partitions (if not, this might not be your disk).
Then give the v command. And it might respond with this:
Warning: The 0xEE protective partition in the MBR is marked as active. This is
technically a violation of the GPT specification, and can cause some EFIs to
ignore the disk, but it is required to boot from a GPT disk on some BIOS-based
computers. You can clear this flag by creating a fresh protective MBR using
the 'n' option on the experts' menu.
If this is the response, use the commands: e, n, w. Then reboot and you might have your EFI back!
answered 23 mins ago
Mikhail RamendikMikhail Ramendik
19610
19610
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- 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%2funix.stackexchange.com%2fquestions%2f360305%2fuefi-not-recognising-efi-partition-no-booting-options%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
Can you post the output from
parted /dev/sda print
plz?– 0xSheepdog
Apr 20 '17 at 22:12
@0xSheepdog I added it
– skdys
Apr 20 '17 at 22:17