Motherboard replaced - How can I recover GRUB?
I had a dual boot setup on my Dell laptop with Ubuntu 16.04 and Windows 10. The tech replaced the motherboard and now I'm not able to boot. I am trying to restore GRUB - I installed a version of Ubuntu 16.04 on an USB stick, following the instructions on this site. Then I tried to boot from USB, but received this message:
Missing operating system
Selected boot device failed.
Can somebody tell me how to proceed?
grub2 mbr unetbootin
add a comment |
I had a dual boot setup on my Dell laptop with Ubuntu 16.04 and Windows 10. The tech replaced the motherboard and now I'm not able to boot. I am trying to restore GRUB - I installed a version of Ubuntu 16.04 on an USB stick, following the instructions on this site. Then I tried to boot from USB, but received this message:
Missing operating system
Selected boot device failed.
Can somebody tell me how to proceed?
grub2 mbr unetbootin
UEFI stores its boot info in its NVRAM. So your now motherboard knows nothing about booting anything. Most auto find the Windows entry or the hard drive/fallback entry, but not Ubuntu entry. Can you boot Windows directly from UEFI boot menu often f10 or f12? If you cannot UEFI boot flash drive then it may not be correctly configured. Check that you downloaded it correctly. Or try a different installer: ubuntu.com/download/desktop
– oldfred
Feb 7 '17 at 13:36
add a comment |
I had a dual boot setup on my Dell laptop with Ubuntu 16.04 and Windows 10. The tech replaced the motherboard and now I'm not able to boot. I am trying to restore GRUB - I installed a version of Ubuntu 16.04 on an USB stick, following the instructions on this site. Then I tried to boot from USB, but received this message:
Missing operating system
Selected boot device failed.
Can somebody tell me how to proceed?
grub2 mbr unetbootin
I had a dual boot setup on my Dell laptop with Ubuntu 16.04 and Windows 10. The tech replaced the motherboard and now I'm not able to boot. I am trying to restore GRUB - I installed a version of Ubuntu 16.04 on an USB stick, following the instructions on this site. Then I tried to boot from USB, but received this message:
Missing operating system
Selected boot device failed.
Can somebody tell me how to proceed?
grub2 mbr unetbootin
grub2 mbr unetbootin
edited Feb 7 '17 at 10:30
cl-netbox
26.2k577114
26.2k577114
asked Feb 7 '17 at 5:35
Leo SimonLeo Simon
5592924
5592924
UEFI stores its boot info in its NVRAM. So your now motherboard knows nothing about booting anything. Most auto find the Windows entry or the hard drive/fallback entry, but not Ubuntu entry. Can you boot Windows directly from UEFI boot menu often f10 or f12? If you cannot UEFI boot flash drive then it may not be correctly configured. Check that you downloaded it correctly. Or try a different installer: ubuntu.com/download/desktop
– oldfred
Feb 7 '17 at 13:36
add a comment |
UEFI stores its boot info in its NVRAM. So your now motherboard knows nothing about booting anything. Most auto find the Windows entry or the hard drive/fallback entry, but not Ubuntu entry. Can you boot Windows directly from UEFI boot menu often f10 or f12? If you cannot UEFI boot flash drive then it may not be correctly configured. Check that you downloaded it correctly. Or try a different installer: ubuntu.com/download/desktop
– oldfred
Feb 7 '17 at 13:36
UEFI stores its boot info in its NVRAM. So your now motherboard knows nothing about booting anything. Most auto find the Windows entry or the hard drive/fallback entry, but not Ubuntu entry. Can you boot Windows directly from UEFI boot menu often f10 or f12? If you cannot UEFI boot flash drive then it may not be correctly configured. Check that you downloaded it correctly. Or try a different installer: ubuntu.com/download/desktop
– oldfred
Feb 7 '17 at 13:36
UEFI stores its boot info in its NVRAM. So your now motherboard knows nothing about booting anything. Most auto find the Windows entry or the hard drive/fallback entry, but not Ubuntu entry. Can you boot Windows directly from UEFI boot menu often f10 or f12? If you cannot UEFI boot flash drive then it may not be correctly configured. Check that you downloaded it correctly. Or try a different installer: ubuntu.com/download/desktop
– oldfred
Feb 7 '17 at 13:36
add a comment |
2 Answers
2
active
oldest
votes
Part 1 - Creating the installation media
3rd party installation media creation tools like Unetbootin are not creating the USB installation media properly in many cases. A tool to create a correctly working installation media is GNOME Disks, it's available in the repositories of nearly every Linux distribution.
Open Disks - select Restore Disk Image from the menu on the top right.
Choose the ISO file and the USB drive to write it to, then start restoring.
In case you have no access to a Linux operating system and have to do it from within Windows, you can create the installation media with the diskpart
tool from a running Windows system.
Open Command prompt as administrator and execute :
diskpart
list disk
select disk *
clean
create partition primary
active
format fs=fat32 quick
assign letter=**
exit
Note : * = number of USB drive | ** = select a free drive letter
Now mount the ISO file and copy the content to the USB disk.
Part 2 - Reinstalling the GRUB boot loader
Boot from the Ubuntu installation media - select the option Try Ubuntu without installing.
Once you are on the Live desktop ... open a terminal and execute the following commands.
Important information concerning the USB boot options :
Choose the USB entry with UEFI in front, in case the systems are installed in EFI mode and
the USB entry without UEFI in front, in case the systems are installed in legacy BIOS mode.
In case your computer has UEFI BIOS execute these commands :
sudo mount /dev/sdXXX /mnt
sudo mount /dev/sdXX /mnt/boot/efi
for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done
sudo chroot /mnt
grub-install /dev/sdX
update-grub
exit
Note : sdX
= disk | sdXX
= EFI partition | sdXXX
= system partition
In case your computer has legacy BIOS execute these commands :
sudo mount /dev/sdXX /mnt
sudo grub-install --boot-directory=/mnt/boot /dev/sdX
for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done
sudo chroot /mnt
update-grub
exit
Note : sdX
= disk | sdXX
= system partition
You can identify disk and partition numbers by using GParted (included in the installation media).
Additional information : Do not forget to disable hibernation and Fast startup in Windows !
Then shutdown the PC completely, do NOT restart - otherwise it will always start Windows.
Thanks for this. gnome-disk worked perfectly, so I can boot into ubuntu, and choose the try ubuntu option. I have EUFI Bios so used the first option you proposed. I got one error/warning:EFIBOOTMGR: EFI variables are not supported in this system
. I don't know if this problem was critical, but when I restarted, I booted straight back into windows, i.e., the grub-loader didn't take over. Could you advise next steps please?
– Leo Simon
Feb 7 '17 at 16:09
@LeoSimon It looks as if you have installed the operating systems in either different modes (maybe) ... or Ubuntu in MBR (CSM) mode ... both systems have to be installed either in MBR (CSM) or UEFI mode ... also important : when you boot from the USB drive, select the USB entry with UEFI in front in case the systems are installed in EFI mode. Don't forget to disable hibernation and Fast startup in Windows before and then shutdown the PC completely - do NOT restart ! :)
– cl-netbox
Feb 7 '17 at 16:17
Fabulous, @cl-netbox, for the benefit of other people in my predicament could you perhaps edit your original answer, to specify explicitly which USB option to select when loading the iso? I tried to make this edit but didn't think I could be clear enough. There were two USB options, and I simply chose the first of them. I can imagine others might make the same mistake!
– Leo Simon
Feb 7 '17 at 16:34
Fantastic answer; you certainly saved my installation. I was confused by yoursdX
,sdXX
, andsdXXX
terminology, so I would add some clarification such as the following:sdX
is the disk which is typically named in the first line of thesudo fdisk -l
command. Examples includesda
, ornvme0n1
. The system partitionsdXX
should be reported asLinux filesystem
byfdisk
, e.g.sda2
ornvme0n1p2
. The EFI partition is reported asEFI System
byfdisk
; e.g.sda1
ornvme0n1p1
.
– Paul Brodersen
Aug 7 '18 at 16:01
add a comment |
This is a different answer, as I've just had the same problem.
My logic if you just replaced the MotherBoard then your hard drive (including its boot sector) should be the same so those recovery steps shouldn't be necessary.
Part A:
Ensure that you have the correct boot type. Legacy / UEFI your error message above seems to imply you have the wrong one. Try changing this option
For me UEFI was the correct one.
Part B (UEFI only):
In bios find your boot sequence options.
Add a boot option (your bios should be similar to mine)
browse until you can find the correct EFI file for grub.
example:
Boot Option Name: grub
File System List: ~DID NOT CHANGE~
File Name: EFIubuntugrubx64.efi
Part C
Choose boot order. Put your preferred boot as the first option.
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
});
}
});
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%2f880662%2fmotherboard-replaced-how-can-i-recover-grub%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Part 1 - Creating the installation media
3rd party installation media creation tools like Unetbootin are not creating the USB installation media properly in many cases. A tool to create a correctly working installation media is GNOME Disks, it's available in the repositories of nearly every Linux distribution.
Open Disks - select Restore Disk Image from the menu on the top right.
Choose the ISO file and the USB drive to write it to, then start restoring.
In case you have no access to a Linux operating system and have to do it from within Windows, you can create the installation media with the diskpart
tool from a running Windows system.
Open Command prompt as administrator and execute :
diskpart
list disk
select disk *
clean
create partition primary
active
format fs=fat32 quick
assign letter=**
exit
Note : * = number of USB drive | ** = select a free drive letter
Now mount the ISO file and copy the content to the USB disk.
Part 2 - Reinstalling the GRUB boot loader
Boot from the Ubuntu installation media - select the option Try Ubuntu without installing.
Once you are on the Live desktop ... open a terminal and execute the following commands.
Important information concerning the USB boot options :
Choose the USB entry with UEFI in front, in case the systems are installed in EFI mode and
the USB entry without UEFI in front, in case the systems are installed in legacy BIOS mode.
In case your computer has UEFI BIOS execute these commands :
sudo mount /dev/sdXXX /mnt
sudo mount /dev/sdXX /mnt/boot/efi
for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done
sudo chroot /mnt
grub-install /dev/sdX
update-grub
exit
Note : sdX
= disk | sdXX
= EFI partition | sdXXX
= system partition
In case your computer has legacy BIOS execute these commands :
sudo mount /dev/sdXX /mnt
sudo grub-install --boot-directory=/mnt/boot /dev/sdX
for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done
sudo chroot /mnt
update-grub
exit
Note : sdX
= disk | sdXX
= system partition
You can identify disk and partition numbers by using GParted (included in the installation media).
Additional information : Do not forget to disable hibernation and Fast startup in Windows !
Then shutdown the PC completely, do NOT restart - otherwise it will always start Windows.
Thanks for this. gnome-disk worked perfectly, so I can boot into ubuntu, and choose the try ubuntu option. I have EUFI Bios so used the first option you proposed. I got one error/warning:EFIBOOTMGR: EFI variables are not supported in this system
. I don't know if this problem was critical, but when I restarted, I booted straight back into windows, i.e., the grub-loader didn't take over. Could you advise next steps please?
– Leo Simon
Feb 7 '17 at 16:09
@LeoSimon It looks as if you have installed the operating systems in either different modes (maybe) ... or Ubuntu in MBR (CSM) mode ... both systems have to be installed either in MBR (CSM) or UEFI mode ... also important : when you boot from the USB drive, select the USB entry with UEFI in front in case the systems are installed in EFI mode. Don't forget to disable hibernation and Fast startup in Windows before and then shutdown the PC completely - do NOT restart ! :)
– cl-netbox
Feb 7 '17 at 16:17
Fabulous, @cl-netbox, for the benefit of other people in my predicament could you perhaps edit your original answer, to specify explicitly which USB option to select when loading the iso? I tried to make this edit but didn't think I could be clear enough. There were two USB options, and I simply chose the first of them. I can imagine others might make the same mistake!
– Leo Simon
Feb 7 '17 at 16:34
Fantastic answer; you certainly saved my installation. I was confused by yoursdX
,sdXX
, andsdXXX
terminology, so I would add some clarification such as the following:sdX
is the disk which is typically named in the first line of thesudo fdisk -l
command. Examples includesda
, ornvme0n1
. The system partitionsdXX
should be reported asLinux filesystem
byfdisk
, e.g.sda2
ornvme0n1p2
. The EFI partition is reported asEFI System
byfdisk
; e.g.sda1
ornvme0n1p1
.
– Paul Brodersen
Aug 7 '18 at 16:01
add a comment |
Part 1 - Creating the installation media
3rd party installation media creation tools like Unetbootin are not creating the USB installation media properly in many cases. A tool to create a correctly working installation media is GNOME Disks, it's available in the repositories of nearly every Linux distribution.
Open Disks - select Restore Disk Image from the menu on the top right.
Choose the ISO file and the USB drive to write it to, then start restoring.
In case you have no access to a Linux operating system and have to do it from within Windows, you can create the installation media with the diskpart
tool from a running Windows system.
Open Command prompt as administrator and execute :
diskpart
list disk
select disk *
clean
create partition primary
active
format fs=fat32 quick
assign letter=**
exit
Note : * = number of USB drive | ** = select a free drive letter
Now mount the ISO file and copy the content to the USB disk.
Part 2 - Reinstalling the GRUB boot loader
Boot from the Ubuntu installation media - select the option Try Ubuntu without installing.
Once you are on the Live desktop ... open a terminal and execute the following commands.
Important information concerning the USB boot options :
Choose the USB entry with UEFI in front, in case the systems are installed in EFI mode and
the USB entry without UEFI in front, in case the systems are installed in legacy BIOS mode.
In case your computer has UEFI BIOS execute these commands :
sudo mount /dev/sdXXX /mnt
sudo mount /dev/sdXX /mnt/boot/efi
for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done
sudo chroot /mnt
grub-install /dev/sdX
update-grub
exit
Note : sdX
= disk | sdXX
= EFI partition | sdXXX
= system partition
In case your computer has legacy BIOS execute these commands :
sudo mount /dev/sdXX /mnt
sudo grub-install --boot-directory=/mnt/boot /dev/sdX
for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done
sudo chroot /mnt
update-grub
exit
Note : sdX
= disk | sdXX
= system partition
You can identify disk and partition numbers by using GParted (included in the installation media).
Additional information : Do not forget to disable hibernation and Fast startup in Windows !
Then shutdown the PC completely, do NOT restart - otherwise it will always start Windows.
Thanks for this. gnome-disk worked perfectly, so I can boot into ubuntu, and choose the try ubuntu option. I have EUFI Bios so used the first option you proposed. I got one error/warning:EFIBOOTMGR: EFI variables are not supported in this system
. I don't know if this problem was critical, but when I restarted, I booted straight back into windows, i.e., the grub-loader didn't take over. Could you advise next steps please?
– Leo Simon
Feb 7 '17 at 16:09
@LeoSimon It looks as if you have installed the operating systems in either different modes (maybe) ... or Ubuntu in MBR (CSM) mode ... both systems have to be installed either in MBR (CSM) or UEFI mode ... also important : when you boot from the USB drive, select the USB entry with UEFI in front in case the systems are installed in EFI mode. Don't forget to disable hibernation and Fast startup in Windows before and then shutdown the PC completely - do NOT restart ! :)
– cl-netbox
Feb 7 '17 at 16:17
Fabulous, @cl-netbox, for the benefit of other people in my predicament could you perhaps edit your original answer, to specify explicitly which USB option to select when loading the iso? I tried to make this edit but didn't think I could be clear enough. There were two USB options, and I simply chose the first of them. I can imagine others might make the same mistake!
– Leo Simon
Feb 7 '17 at 16:34
Fantastic answer; you certainly saved my installation. I was confused by yoursdX
,sdXX
, andsdXXX
terminology, so I would add some clarification such as the following:sdX
is the disk which is typically named in the first line of thesudo fdisk -l
command. Examples includesda
, ornvme0n1
. The system partitionsdXX
should be reported asLinux filesystem
byfdisk
, e.g.sda2
ornvme0n1p2
. The EFI partition is reported asEFI System
byfdisk
; e.g.sda1
ornvme0n1p1
.
– Paul Brodersen
Aug 7 '18 at 16:01
add a comment |
Part 1 - Creating the installation media
3rd party installation media creation tools like Unetbootin are not creating the USB installation media properly in many cases. A tool to create a correctly working installation media is GNOME Disks, it's available in the repositories of nearly every Linux distribution.
Open Disks - select Restore Disk Image from the menu on the top right.
Choose the ISO file and the USB drive to write it to, then start restoring.
In case you have no access to a Linux operating system and have to do it from within Windows, you can create the installation media with the diskpart
tool from a running Windows system.
Open Command prompt as administrator and execute :
diskpart
list disk
select disk *
clean
create partition primary
active
format fs=fat32 quick
assign letter=**
exit
Note : * = number of USB drive | ** = select a free drive letter
Now mount the ISO file and copy the content to the USB disk.
Part 2 - Reinstalling the GRUB boot loader
Boot from the Ubuntu installation media - select the option Try Ubuntu without installing.
Once you are on the Live desktop ... open a terminal and execute the following commands.
Important information concerning the USB boot options :
Choose the USB entry with UEFI in front, in case the systems are installed in EFI mode and
the USB entry without UEFI in front, in case the systems are installed in legacy BIOS mode.
In case your computer has UEFI BIOS execute these commands :
sudo mount /dev/sdXXX /mnt
sudo mount /dev/sdXX /mnt/boot/efi
for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done
sudo chroot /mnt
grub-install /dev/sdX
update-grub
exit
Note : sdX
= disk | sdXX
= EFI partition | sdXXX
= system partition
In case your computer has legacy BIOS execute these commands :
sudo mount /dev/sdXX /mnt
sudo grub-install --boot-directory=/mnt/boot /dev/sdX
for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done
sudo chroot /mnt
update-grub
exit
Note : sdX
= disk | sdXX
= system partition
You can identify disk and partition numbers by using GParted (included in the installation media).
Additional information : Do not forget to disable hibernation and Fast startup in Windows !
Then shutdown the PC completely, do NOT restart - otherwise it will always start Windows.
Part 1 - Creating the installation media
3rd party installation media creation tools like Unetbootin are not creating the USB installation media properly in many cases. A tool to create a correctly working installation media is GNOME Disks, it's available in the repositories of nearly every Linux distribution.
Open Disks - select Restore Disk Image from the menu on the top right.
Choose the ISO file and the USB drive to write it to, then start restoring.
In case you have no access to a Linux operating system and have to do it from within Windows, you can create the installation media with the diskpart
tool from a running Windows system.
Open Command prompt as administrator and execute :
diskpart
list disk
select disk *
clean
create partition primary
active
format fs=fat32 quick
assign letter=**
exit
Note : * = number of USB drive | ** = select a free drive letter
Now mount the ISO file and copy the content to the USB disk.
Part 2 - Reinstalling the GRUB boot loader
Boot from the Ubuntu installation media - select the option Try Ubuntu without installing.
Once you are on the Live desktop ... open a terminal and execute the following commands.
Important information concerning the USB boot options :
Choose the USB entry with UEFI in front, in case the systems are installed in EFI mode and
the USB entry without UEFI in front, in case the systems are installed in legacy BIOS mode.
In case your computer has UEFI BIOS execute these commands :
sudo mount /dev/sdXXX /mnt
sudo mount /dev/sdXX /mnt/boot/efi
for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done
sudo chroot /mnt
grub-install /dev/sdX
update-grub
exit
Note : sdX
= disk | sdXX
= EFI partition | sdXXX
= system partition
In case your computer has legacy BIOS execute these commands :
sudo mount /dev/sdXX /mnt
sudo grub-install --boot-directory=/mnt/boot /dev/sdX
for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done
sudo chroot /mnt
update-grub
exit
Note : sdX
= disk | sdXX
= system partition
You can identify disk and partition numbers by using GParted (included in the installation media).
Additional information : Do not forget to disable hibernation and Fast startup in Windows !
Then shutdown the PC completely, do NOT restart - otherwise it will always start Windows.
edited Feb 16 '17 at 7:32
answered Feb 7 '17 at 9:23
cl-netboxcl-netbox
26.2k577114
26.2k577114
Thanks for this. gnome-disk worked perfectly, so I can boot into ubuntu, and choose the try ubuntu option. I have EUFI Bios so used the first option you proposed. I got one error/warning:EFIBOOTMGR: EFI variables are not supported in this system
. I don't know if this problem was critical, but when I restarted, I booted straight back into windows, i.e., the grub-loader didn't take over. Could you advise next steps please?
– Leo Simon
Feb 7 '17 at 16:09
@LeoSimon It looks as if you have installed the operating systems in either different modes (maybe) ... or Ubuntu in MBR (CSM) mode ... both systems have to be installed either in MBR (CSM) or UEFI mode ... also important : when you boot from the USB drive, select the USB entry with UEFI in front in case the systems are installed in EFI mode. Don't forget to disable hibernation and Fast startup in Windows before and then shutdown the PC completely - do NOT restart ! :)
– cl-netbox
Feb 7 '17 at 16:17
Fabulous, @cl-netbox, for the benefit of other people in my predicament could you perhaps edit your original answer, to specify explicitly which USB option to select when loading the iso? I tried to make this edit but didn't think I could be clear enough. There were two USB options, and I simply chose the first of them. I can imagine others might make the same mistake!
– Leo Simon
Feb 7 '17 at 16:34
Fantastic answer; you certainly saved my installation. I was confused by yoursdX
,sdXX
, andsdXXX
terminology, so I would add some clarification such as the following:sdX
is the disk which is typically named in the first line of thesudo fdisk -l
command. Examples includesda
, ornvme0n1
. The system partitionsdXX
should be reported asLinux filesystem
byfdisk
, e.g.sda2
ornvme0n1p2
. The EFI partition is reported asEFI System
byfdisk
; e.g.sda1
ornvme0n1p1
.
– Paul Brodersen
Aug 7 '18 at 16:01
add a comment |
Thanks for this. gnome-disk worked perfectly, so I can boot into ubuntu, and choose the try ubuntu option. I have EUFI Bios so used the first option you proposed. I got one error/warning:EFIBOOTMGR: EFI variables are not supported in this system
. I don't know if this problem was critical, but when I restarted, I booted straight back into windows, i.e., the grub-loader didn't take over. Could you advise next steps please?
– Leo Simon
Feb 7 '17 at 16:09
@LeoSimon It looks as if you have installed the operating systems in either different modes (maybe) ... or Ubuntu in MBR (CSM) mode ... both systems have to be installed either in MBR (CSM) or UEFI mode ... also important : when you boot from the USB drive, select the USB entry with UEFI in front in case the systems are installed in EFI mode. Don't forget to disable hibernation and Fast startup in Windows before and then shutdown the PC completely - do NOT restart ! :)
– cl-netbox
Feb 7 '17 at 16:17
Fabulous, @cl-netbox, for the benefit of other people in my predicament could you perhaps edit your original answer, to specify explicitly which USB option to select when loading the iso? I tried to make this edit but didn't think I could be clear enough. There were two USB options, and I simply chose the first of them. I can imagine others might make the same mistake!
– Leo Simon
Feb 7 '17 at 16:34
Fantastic answer; you certainly saved my installation. I was confused by yoursdX
,sdXX
, andsdXXX
terminology, so I would add some clarification such as the following:sdX
is the disk which is typically named in the first line of thesudo fdisk -l
command. Examples includesda
, ornvme0n1
. The system partitionsdXX
should be reported asLinux filesystem
byfdisk
, e.g.sda2
ornvme0n1p2
. The EFI partition is reported asEFI System
byfdisk
; e.g.sda1
ornvme0n1p1
.
– Paul Brodersen
Aug 7 '18 at 16:01
Thanks for this. gnome-disk worked perfectly, so I can boot into ubuntu, and choose the try ubuntu option. I have EUFI Bios so used the first option you proposed. I got one error/warning:
EFIBOOTMGR: EFI variables are not supported in this system
. I don't know if this problem was critical, but when I restarted, I booted straight back into windows, i.e., the grub-loader didn't take over. Could you advise next steps please?– Leo Simon
Feb 7 '17 at 16:09
Thanks for this. gnome-disk worked perfectly, so I can boot into ubuntu, and choose the try ubuntu option. I have EUFI Bios so used the first option you proposed. I got one error/warning:
EFIBOOTMGR: EFI variables are not supported in this system
. I don't know if this problem was critical, but when I restarted, I booted straight back into windows, i.e., the grub-loader didn't take over. Could you advise next steps please?– Leo Simon
Feb 7 '17 at 16:09
@LeoSimon It looks as if you have installed the operating systems in either different modes (maybe) ... or Ubuntu in MBR (CSM) mode ... both systems have to be installed either in MBR (CSM) or UEFI mode ... also important : when you boot from the USB drive, select the USB entry with UEFI in front in case the systems are installed in EFI mode. Don't forget to disable hibernation and Fast startup in Windows before and then shutdown the PC completely - do NOT restart ! :)
– cl-netbox
Feb 7 '17 at 16:17
@LeoSimon It looks as if you have installed the operating systems in either different modes (maybe) ... or Ubuntu in MBR (CSM) mode ... both systems have to be installed either in MBR (CSM) or UEFI mode ... also important : when you boot from the USB drive, select the USB entry with UEFI in front in case the systems are installed in EFI mode. Don't forget to disable hibernation and Fast startup in Windows before and then shutdown the PC completely - do NOT restart ! :)
– cl-netbox
Feb 7 '17 at 16:17
Fabulous, @cl-netbox, for the benefit of other people in my predicament could you perhaps edit your original answer, to specify explicitly which USB option to select when loading the iso? I tried to make this edit but didn't think I could be clear enough. There were two USB options, and I simply chose the first of them. I can imagine others might make the same mistake!
– Leo Simon
Feb 7 '17 at 16:34
Fabulous, @cl-netbox, for the benefit of other people in my predicament could you perhaps edit your original answer, to specify explicitly which USB option to select when loading the iso? I tried to make this edit but didn't think I could be clear enough. There were two USB options, and I simply chose the first of them. I can imagine others might make the same mistake!
– Leo Simon
Feb 7 '17 at 16:34
Fantastic answer; you certainly saved my installation. I was confused by your
sdX
, sdXX
, and sdXXX
terminology, so I would add some clarification such as the following: sdX
is the disk which is typically named in the first line of the sudo fdisk -l
command. Examples include sda
, or nvme0n1
. The system partition sdXX
should be reported as Linux filesystem
by fdisk
, e.g. sda2
or nvme0n1p2
. The EFI partition is reported as EFI System
by fdisk
; e.g. sda1
or nvme0n1p1
.– Paul Brodersen
Aug 7 '18 at 16:01
Fantastic answer; you certainly saved my installation. I was confused by your
sdX
, sdXX
, and sdXXX
terminology, so I would add some clarification such as the following: sdX
is the disk which is typically named in the first line of the sudo fdisk -l
command. Examples include sda
, or nvme0n1
. The system partition sdXX
should be reported as Linux filesystem
by fdisk
, e.g. sda2
or nvme0n1p2
. The EFI partition is reported as EFI System
by fdisk
; e.g. sda1
or nvme0n1p1
.– Paul Brodersen
Aug 7 '18 at 16:01
add a comment |
This is a different answer, as I've just had the same problem.
My logic if you just replaced the MotherBoard then your hard drive (including its boot sector) should be the same so those recovery steps shouldn't be necessary.
Part A:
Ensure that you have the correct boot type. Legacy / UEFI your error message above seems to imply you have the wrong one. Try changing this option
For me UEFI was the correct one.
Part B (UEFI only):
In bios find your boot sequence options.
Add a boot option (your bios should be similar to mine)
browse until you can find the correct EFI file for grub.
example:
Boot Option Name: grub
File System List: ~DID NOT CHANGE~
File Name: EFIubuntugrubx64.efi
Part C
Choose boot order. Put your preferred boot as the first option.
add a comment |
This is a different answer, as I've just had the same problem.
My logic if you just replaced the MotherBoard then your hard drive (including its boot sector) should be the same so those recovery steps shouldn't be necessary.
Part A:
Ensure that you have the correct boot type. Legacy / UEFI your error message above seems to imply you have the wrong one. Try changing this option
For me UEFI was the correct one.
Part B (UEFI only):
In bios find your boot sequence options.
Add a boot option (your bios should be similar to mine)
browse until you can find the correct EFI file for grub.
example:
Boot Option Name: grub
File System List: ~DID NOT CHANGE~
File Name: EFIubuntugrubx64.efi
Part C
Choose boot order. Put your preferred boot as the first option.
add a comment |
This is a different answer, as I've just had the same problem.
My logic if you just replaced the MotherBoard then your hard drive (including its boot sector) should be the same so those recovery steps shouldn't be necessary.
Part A:
Ensure that you have the correct boot type. Legacy / UEFI your error message above seems to imply you have the wrong one. Try changing this option
For me UEFI was the correct one.
Part B (UEFI only):
In bios find your boot sequence options.
Add a boot option (your bios should be similar to mine)
browse until you can find the correct EFI file for grub.
example:
Boot Option Name: grub
File System List: ~DID NOT CHANGE~
File Name: EFIubuntugrubx64.efi
Part C
Choose boot order. Put your preferred boot as the first option.
This is a different answer, as I've just had the same problem.
My logic if you just replaced the MotherBoard then your hard drive (including its boot sector) should be the same so those recovery steps shouldn't be necessary.
Part A:
Ensure that you have the correct boot type. Legacy / UEFI your error message above seems to imply you have the wrong one. Try changing this option
For me UEFI was the correct one.
Part B (UEFI only):
In bios find your boot sequence options.
Add a boot option (your bios should be similar to mine)
browse until you can find the correct EFI file for grub.
example:
Boot Option Name: grub
File System List: ~DID NOT CHANGE~
File Name: EFIubuntugrubx64.efi
Part C
Choose boot order. Put your preferred boot as the first option.
answered Feb 19 at 12:09
WesWes
18811
18811
add a comment |
add a comment |
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%2f880662%2fmotherboard-replaced-how-can-i-recover-grub%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
UEFI stores its boot info in its NVRAM. So your now motherboard knows nothing about booting anything. Most auto find the Windows entry or the hard drive/fallback entry, but not Ubuntu entry. Can you boot Windows directly from UEFI boot menu often f10 or f12? If you cannot UEFI boot flash drive then it may not be correctly configured. Check that you downloaded it correctly. Or try a different installer: ubuntu.com/download/desktop
– oldfred
Feb 7 '17 at 13:36