Accidently deleted my EFI partion
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
0
down vote
favorite
I had Windows 10 and Ubuntu Gnome 16.04 installed in my laptop. Due to some problem occurring in Windows I decided to delete it during the process I accidentally deleted the EFI partition for Ubuntu. How can I restore it without reinstalling whole Ubuntu??
dual-boot grub-efi
add a comment |Â
up vote
0
down vote
favorite
I had Windows 10 and Ubuntu Gnome 16.04 installed in my laptop. Due to some problem occurring in Windows I decided to delete it during the process I accidentally deleted the EFI partition for Ubuntu. How can I restore it without reinstalling whole Ubuntu??
dual-boot grub-efi
try this link help.ubuntu.com/community/â¦
â Arun
Aug 23 '17 at 20:16
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I had Windows 10 and Ubuntu Gnome 16.04 installed in my laptop. Due to some problem occurring in Windows I decided to delete it during the process I accidentally deleted the EFI partition for Ubuntu. How can I restore it without reinstalling whole Ubuntu??
dual-boot grub-efi
I had Windows 10 and Ubuntu Gnome 16.04 installed in my laptop. Due to some problem occurring in Windows I decided to delete it during the process I accidentally deleted the EFI partition for Ubuntu. How can I restore it without reinstalling whole Ubuntu??
dual-boot grub-efi
asked Aug 23 '17 at 20:08
ad_03
1
1
try this link help.ubuntu.com/community/â¦
â Arun
Aug 23 '17 at 20:16
add a comment |Â
try this link help.ubuntu.com/community/â¦
â Arun
Aug 23 '17 at 20:16
try this link help.ubuntu.com/community/â¦
â Arun
Aug 23 '17 at 20:16
try this link help.ubuntu.com/community/â¦
â Arun
Aug 23 '17 at 20:16
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
1
down vote
If you haven't re-used the disk space, you should be able to recover the partition with TestDisk. After recovering the partition in this way, the NVRAM-based boot manager references might or might not work any more, so you may need to recover the system to bootability in one way or another. One way would be to use my rEFInd boot manager on a USB flash drive or CD-R to do a one-time boot and then create a new boot entry with efibootmgr
. The command would be something like this:
sudo efibootmgr -c -d /dev/sda -p 1 -l \EFI\ubuntu\shimx64.efi -L ubuntu
This creates a new boot entry for the EFI/ubuntu/shimx64.efi
boot loader file on /dev/sda1
. Change the -d
, -p
, and -l
options as necessary for your system.
A caveat: The rEFInd USB flash drive and CD-R images I provide do not support Secure Boot. If it's enabled, you'll need to either disable it or jump through some hoops to get rEFInd to work with Secure Boot active. You can temporarily disable Secure Boot and then re-enable it later, if you like.
If you have overwritten the part of the disk that used to hold the ESP, your task is harder. You can still do a one-time boot using rEFInd, but you'll then need to create a new ESP and populate it with boot loaders for both Ubuntu (probably GRUB, but you could use rEFInd or something else) and Windows. If you have a backup of the ESP, restoring it should work. If not, you could use Boot Repair to install a fresh GRUB or install rEFInd from its Debian package or PPA. For Windows boot recovery, you'll have to ask about this on a Windows forum. If possible, do the Windows recovery first, since Windows will set its boot loader as the default, and it won't provide an option to chainload to Ubuntu. GRUB and rEFInd, by contrast, both provide options to boot either Ubuntu or Windows. (Or they should; sometimes this doesn't work correctly.)
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
If you haven't re-used the disk space, you should be able to recover the partition with TestDisk. After recovering the partition in this way, the NVRAM-based boot manager references might or might not work any more, so you may need to recover the system to bootability in one way or another. One way would be to use my rEFInd boot manager on a USB flash drive or CD-R to do a one-time boot and then create a new boot entry with efibootmgr
. The command would be something like this:
sudo efibootmgr -c -d /dev/sda -p 1 -l \EFI\ubuntu\shimx64.efi -L ubuntu
This creates a new boot entry for the EFI/ubuntu/shimx64.efi
boot loader file on /dev/sda1
. Change the -d
, -p
, and -l
options as necessary for your system.
A caveat: The rEFInd USB flash drive and CD-R images I provide do not support Secure Boot. If it's enabled, you'll need to either disable it or jump through some hoops to get rEFInd to work with Secure Boot active. You can temporarily disable Secure Boot and then re-enable it later, if you like.
If you have overwritten the part of the disk that used to hold the ESP, your task is harder. You can still do a one-time boot using rEFInd, but you'll then need to create a new ESP and populate it with boot loaders for both Ubuntu (probably GRUB, but you could use rEFInd or something else) and Windows. If you have a backup of the ESP, restoring it should work. If not, you could use Boot Repair to install a fresh GRUB or install rEFInd from its Debian package or PPA. For Windows boot recovery, you'll have to ask about this on a Windows forum. If possible, do the Windows recovery first, since Windows will set its boot loader as the default, and it won't provide an option to chainload to Ubuntu. GRUB and rEFInd, by contrast, both provide options to boot either Ubuntu or Windows. (Or they should; sometimes this doesn't work correctly.)
add a comment |Â
up vote
1
down vote
If you haven't re-used the disk space, you should be able to recover the partition with TestDisk. After recovering the partition in this way, the NVRAM-based boot manager references might or might not work any more, so you may need to recover the system to bootability in one way or another. One way would be to use my rEFInd boot manager on a USB flash drive or CD-R to do a one-time boot and then create a new boot entry with efibootmgr
. The command would be something like this:
sudo efibootmgr -c -d /dev/sda -p 1 -l \EFI\ubuntu\shimx64.efi -L ubuntu
This creates a new boot entry for the EFI/ubuntu/shimx64.efi
boot loader file on /dev/sda1
. Change the -d
, -p
, and -l
options as necessary for your system.
A caveat: The rEFInd USB flash drive and CD-R images I provide do not support Secure Boot. If it's enabled, you'll need to either disable it or jump through some hoops to get rEFInd to work with Secure Boot active. You can temporarily disable Secure Boot and then re-enable it later, if you like.
If you have overwritten the part of the disk that used to hold the ESP, your task is harder. You can still do a one-time boot using rEFInd, but you'll then need to create a new ESP and populate it with boot loaders for both Ubuntu (probably GRUB, but you could use rEFInd or something else) and Windows. If you have a backup of the ESP, restoring it should work. If not, you could use Boot Repair to install a fresh GRUB or install rEFInd from its Debian package or PPA. For Windows boot recovery, you'll have to ask about this on a Windows forum. If possible, do the Windows recovery first, since Windows will set its boot loader as the default, and it won't provide an option to chainload to Ubuntu. GRUB and rEFInd, by contrast, both provide options to boot either Ubuntu or Windows. (Or they should; sometimes this doesn't work correctly.)
add a comment |Â
up vote
1
down vote
up vote
1
down vote
If you haven't re-used the disk space, you should be able to recover the partition with TestDisk. After recovering the partition in this way, the NVRAM-based boot manager references might or might not work any more, so you may need to recover the system to bootability in one way or another. One way would be to use my rEFInd boot manager on a USB flash drive or CD-R to do a one-time boot and then create a new boot entry with efibootmgr
. The command would be something like this:
sudo efibootmgr -c -d /dev/sda -p 1 -l \EFI\ubuntu\shimx64.efi -L ubuntu
This creates a new boot entry for the EFI/ubuntu/shimx64.efi
boot loader file on /dev/sda1
. Change the -d
, -p
, and -l
options as necessary for your system.
A caveat: The rEFInd USB flash drive and CD-R images I provide do not support Secure Boot. If it's enabled, you'll need to either disable it or jump through some hoops to get rEFInd to work with Secure Boot active. You can temporarily disable Secure Boot and then re-enable it later, if you like.
If you have overwritten the part of the disk that used to hold the ESP, your task is harder. You can still do a one-time boot using rEFInd, but you'll then need to create a new ESP and populate it with boot loaders for both Ubuntu (probably GRUB, but you could use rEFInd or something else) and Windows. If you have a backup of the ESP, restoring it should work. If not, you could use Boot Repair to install a fresh GRUB or install rEFInd from its Debian package or PPA. For Windows boot recovery, you'll have to ask about this on a Windows forum. If possible, do the Windows recovery first, since Windows will set its boot loader as the default, and it won't provide an option to chainload to Ubuntu. GRUB and rEFInd, by contrast, both provide options to boot either Ubuntu or Windows. (Or they should; sometimes this doesn't work correctly.)
If you haven't re-used the disk space, you should be able to recover the partition with TestDisk. After recovering the partition in this way, the NVRAM-based boot manager references might or might not work any more, so you may need to recover the system to bootability in one way or another. One way would be to use my rEFInd boot manager on a USB flash drive or CD-R to do a one-time boot and then create a new boot entry with efibootmgr
. The command would be something like this:
sudo efibootmgr -c -d /dev/sda -p 1 -l \EFI\ubuntu\shimx64.efi -L ubuntu
This creates a new boot entry for the EFI/ubuntu/shimx64.efi
boot loader file on /dev/sda1
. Change the -d
, -p
, and -l
options as necessary for your system.
A caveat: The rEFInd USB flash drive and CD-R images I provide do not support Secure Boot. If it's enabled, you'll need to either disable it or jump through some hoops to get rEFInd to work with Secure Boot active. You can temporarily disable Secure Boot and then re-enable it later, if you like.
If you have overwritten the part of the disk that used to hold the ESP, your task is harder. You can still do a one-time boot using rEFInd, but you'll then need to create a new ESP and populate it with boot loaders for both Ubuntu (probably GRUB, but you could use rEFInd or something else) and Windows. If you have a backup of the ESP, restoring it should work. If not, you could use Boot Repair to install a fresh GRUB or install rEFInd from its Debian package or PPA. For Windows boot recovery, you'll have to ask about this on a Windows forum. If possible, do the Windows recovery first, since Windows will set its boot loader as the default, and it won't provide an option to chainload to Ubuntu. GRUB and rEFInd, by contrast, both provide options to boot either Ubuntu or Windows. (Or they should; sometimes this doesn't work correctly.)
answered Aug 23 '17 at 21:01
Rod Smith
34.2k43166
34.2k43166
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f949182%2faccidently-deleted-my-efi-partion%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
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
try this link help.ubuntu.com/community/â¦
â Arun
Aug 23 '17 at 20:16