“grub-install /dev/sda failed” for dual-boot with Windows 10
I've tried many things in previous threads, including every suggestion in (I receive the error 'grub-install /dev/sda failed' while attempting to install Ubuntu as the computer's only OS.).
I'm a first timer (obvy). I want to dual boot with Windows 10. It's a Dell machine with some mysterious partitions. Originally I installed Ubuntu 16.04.2 successfully, but with legacy on in BIOS/UEFI. Learned that I'd have to go into 'bios' each time I wanted to run it.
Attempt to reinstall with legacy off, repeatedly get
executing grub-install /dev/sda failed
Boot-repair throws an error too, with the txt file apparently having some invalid characters - pastebin.
Boot-repair error says:
If your computer reboots directly into Windows, [which it does]
try to change the boot order in your BIOS.
If your BIOS does not allow to change the boot order, [which it doesn't, at least it doesn't provide an Ubuntu option]
change the default boot entry of the Windows bootloader. [which looks way too advanced for me].
Ideally I want to choose which OS to launch on boot.
Something's not right here, but I've tried:
- Running ubuntu live USB and then launching from desktop.
- Multiple attempts to manually create partitions (with /boot partitions in both EFI and FAT32 formats, and none at all using this guide How to use manual partitioning during installation?)
- Multiple attempts using the replace existing Ubuntu installation option.
Always the same grub-install error. Assume it's something to do with the original legacy-enabled install and, erm, me. Partitions after my latest failed attempt are thus (I manually created partitions from sda7+).
I have NO idea where to from here.
boot dual-boot grub2 uefi windows-10
add a comment |
I've tried many things in previous threads, including every suggestion in (I receive the error 'grub-install /dev/sda failed' while attempting to install Ubuntu as the computer's only OS.).
I'm a first timer (obvy). I want to dual boot with Windows 10. It's a Dell machine with some mysterious partitions. Originally I installed Ubuntu 16.04.2 successfully, but with legacy on in BIOS/UEFI. Learned that I'd have to go into 'bios' each time I wanted to run it.
Attempt to reinstall with legacy off, repeatedly get
executing grub-install /dev/sda failed
Boot-repair throws an error too, with the txt file apparently having some invalid characters - pastebin.
Boot-repair error says:
If your computer reboots directly into Windows, [which it does]
try to change the boot order in your BIOS.
If your BIOS does not allow to change the boot order, [which it doesn't, at least it doesn't provide an Ubuntu option]
change the default boot entry of the Windows bootloader. [which looks way too advanced for me].
Ideally I want to choose which OS to launch on boot.
Something's not right here, but I've tried:
- Running ubuntu live USB and then launching from desktop.
- Multiple attempts to manually create partitions (with /boot partitions in both EFI and FAT32 formats, and none at all using this guide How to use manual partitioning during installation?)
- Multiple attempts using the replace existing Ubuntu installation option.
Always the same grub-install error. Assume it's something to do with the original legacy-enabled install and, erm, me. Partitions after my latest failed attempt are thus (I manually created partitions from sda7+).
I have NO idea where to from here.
boot dual-boot grub2 uefi windows-10
add a comment |
I've tried many things in previous threads, including every suggestion in (I receive the error 'grub-install /dev/sda failed' while attempting to install Ubuntu as the computer's only OS.).
I'm a first timer (obvy). I want to dual boot with Windows 10. It's a Dell machine with some mysterious partitions. Originally I installed Ubuntu 16.04.2 successfully, but with legacy on in BIOS/UEFI. Learned that I'd have to go into 'bios' each time I wanted to run it.
Attempt to reinstall with legacy off, repeatedly get
executing grub-install /dev/sda failed
Boot-repair throws an error too, with the txt file apparently having some invalid characters - pastebin.
Boot-repair error says:
If your computer reboots directly into Windows, [which it does]
try to change the boot order in your BIOS.
If your BIOS does not allow to change the boot order, [which it doesn't, at least it doesn't provide an Ubuntu option]
change the default boot entry of the Windows bootloader. [which looks way too advanced for me].
Ideally I want to choose which OS to launch on boot.
Something's not right here, but I've tried:
- Running ubuntu live USB and then launching from desktop.
- Multiple attempts to manually create partitions (with /boot partitions in both EFI and FAT32 formats, and none at all using this guide How to use manual partitioning during installation?)
- Multiple attempts using the replace existing Ubuntu installation option.
Always the same grub-install error. Assume it's something to do with the original legacy-enabled install and, erm, me. Partitions after my latest failed attempt are thus (I manually created partitions from sda7+).
I have NO idea where to from here.
boot dual-boot grub2 uefi windows-10
I've tried many things in previous threads, including every suggestion in (I receive the error 'grub-install /dev/sda failed' while attempting to install Ubuntu as the computer's only OS.).
I'm a first timer (obvy). I want to dual boot with Windows 10. It's a Dell machine with some mysterious partitions. Originally I installed Ubuntu 16.04.2 successfully, but with legacy on in BIOS/UEFI. Learned that I'd have to go into 'bios' each time I wanted to run it.
Attempt to reinstall with legacy off, repeatedly get
executing grub-install /dev/sda failed
Boot-repair throws an error too, with the txt file apparently having some invalid characters - pastebin.
Boot-repair error says:
If your computer reboots directly into Windows, [which it does]
try to change the boot order in your BIOS.
If your BIOS does not allow to change the boot order, [which it doesn't, at least it doesn't provide an Ubuntu option]
change the default boot entry of the Windows bootloader. [which looks way too advanced for me].
Ideally I want to choose which OS to launch on boot.
Something's not right here, but I've tried:
- Running ubuntu live USB and then launching from desktop.
- Multiple attempts to manually create partitions (with /boot partitions in both EFI and FAT32 formats, and none at all using this guide How to use manual partitioning during installation?)
- Multiple attempts using the replace existing Ubuntu installation option.
Always the same grub-install error. Assume it's something to do with the original legacy-enabled install and, erm, me. Partitions after my latest failed attempt are thus (I manually created partitions from sda7+).
I have NO idea where to from here.
boot dual-boot grub2 uefi windows-10
boot dual-boot grub2 uefi windows-10
edited Apr 13 '17 at 12:24
Community♦
1
1
asked Feb 23 '17 at 4:53
A-raycoA-rayco
613
613
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
I ended up fixing it by re-installing in Legacy mode (successfully) and manually install grub-efi by doing the following from Can I install in UEFI mode with the alternate installer?
After the installation, reboot the computer into a live CD or any
Linux CD that can mount the hard drive partitions. Then, do the
following: (replace # with appropriate partition numbers)
### Mounting ###
sudo mount /dev/sda# /mnt #Mount root (/) partition
sudo mount /dev/sda# /mnt/boot #Mount boot (/boot) partition
(if separate from root partition)
sudo mkdir -p /mnt/boot/efi #Create EFI partition mount point
sudo mount /dev/sda1 /mnt/boot/efi #Mount EFI partition
sudo mount --bind /dev /mnt/dev
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/sys
sudo chroot /mnt #Chroot to your installation
### Installing ###
apt-get install grub-efi-amd64 #Install grub EFI bootloader
grub-install --recheck --no-floppy --force
#Install grub bootloader in EFI partition
echo "configfile (hd0,gpt#)/boot/grub.cfg" > /boot/efi/ubuntu/grub.cfg
#Tell grub to load grub.cfg from /boot
update-grub #Create grub menu list
exit #Exit chroot
### Unmounting ###
sudo umount /mnt/dev
sudo umount /mnt/proc
sudo umount /mnt/sys
sudo umount /mnt/boot/efi
sudo umount /mnt/boot
sudo umount /mnt
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%2f886367%2fgrub-install-dev-sda-failed-for-dual-boot-with-windows-10%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
I ended up fixing it by re-installing in Legacy mode (successfully) and manually install grub-efi by doing the following from Can I install in UEFI mode with the alternate installer?
After the installation, reboot the computer into a live CD or any
Linux CD that can mount the hard drive partitions. Then, do the
following: (replace # with appropriate partition numbers)
### Mounting ###
sudo mount /dev/sda# /mnt #Mount root (/) partition
sudo mount /dev/sda# /mnt/boot #Mount boot (/boot) partition
(if separate from root partition)
sudo mkdir -p /mnt/boot/efi #Create EFI partition mount point
sudo mount /dev/sda1 /mnt/boot/efi #Mount EFI partition
sudo mount --bind /dev /mnt/dev
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/sys
sudo chroot /mnt #Chroot to your installation
### Installing ###
apt-get install grub-efi-amd64 #Install grub EFI bootloader
grub-install --recheck --no-floppy --force
#Install grub bootloader in EFI partition
echo "configfile (hd0,gpt#)/boot/grub.cfg" > /boot/efi/ubuntu/grub.cfg
#Tell grub to load grub.cfg from /boot
update-grub #Create grub menu list
exit #Exit chroot
### Unmounting ###
sudo umount /mnt/dev
sudo umount /mnt/proc
sudo umount /mnt/sys
sudo umount /mnt/boot/efi
sudo umount /mnt/boot
sudo umount /mnt
add a comment |
I ended up fixing it by re-installing in Legacy mode (successfully) and manually install grub-efi by doing the following from Can I install in UEFI mode with the alternate installer?
After the installation, reboot the computer into a live CD or any
Linux CD that can mount the hard drive partitions. Then, do the
following: (replace # with appropriate partition numbers)
### Mounting ###
sudo mount /dev/sda# /mnt #Mount root (/) partition
sudo mount /dev/sda# /mnt/boot #Mount boot (/boot) partition
(if separate from root partition)
sudo mkdir -p /mnt/boot/efi #Create EFI partition mount point
sudo mount /dev/sda1 /mnt/boot/efi #Mount EFI partition
sudo mount --bind /dev /mnt/dev
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/sys
sudo chroot /mnt #Chroot to your installation
### Installing ###
apt-get install grub-efi-amd64 #Install grub EFI bootloader
grub-install --recheck --no-floppy --force
#Install grub bootloader in EFI partition
echo "configfile (hd0,gpt#)/boot/grub.cfg" > /boot/efi/ubuntu/grub.cfg
#Tell grub to load grub.cfg from /boot
update-grub #Create grub menu list
exit #Exit chroot
### Unmounting ###
sudo umount /mnt/dev
sudo umount /mnt/proc
sudo umount /mnt/sys
sudo umount /mnt/boot/efi
sudo umount /mnt/boot
sudo umount /mnt
add a comment |
I ended up fixing it by re-installing in Legacy mode (successfully) and manually install grub-efi by doing the following from Can I install in UEFI mode with the alternate installer?
After the installation, reboot the computer into a live CD or any
Linux CD that can mount the hard drive partitions. Then, do the
following: (replace # with appropriate partition numbers)
### Mounting ###
sudo mount /dev/sda# /mnt #Mount root (/) partition
sudo mount /dev/sda# /mnt/boot #Mount boot (/boot) partition
(if separate from root partition)
sudo mkdir -p /mnt/boot/efi #Create EFI partition mount point
sudo mount /dev/sda1 /mnt/boot/efi #Mount EFI partition
sudo mount --bind /dev /mnt/dev
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/sys
sudo chroot /mnt #Chroot to your installation
### Installing ###
apt-get install grub-efi-amd64 #Install grub EFI bootloader
grub-install --recheck --no-floppy --force
#Install grub bootloader in EFI partition
echo "configfile (hd0,gpt#)/boot/grub.cfg" > /boot/efi/ubuntu/grub.cfg
#Tell grub to load grub.cfg from /boot
update-grub #Create grub menu list
exit #Exit chroot
### Unmounting ###
sudo umount /mnt/dev
sudo umount /mnt/proc
sudo umount /mnt/sys
sudo umount /mnt/boot/efi
sudo umount /mnt/boot
sudo umount /mnt
I ended up fixing it by re-installing in Legacy mode (successfully) and manually install grub-efi by doing the following from Can I install in UEFI mode with the alternate installer?
After the installation, reboot the computer into a live CD or any
Linux CD that can mount the hard drive partitions. Then, do the
following: (replace # with appropriate partition numbers)
### Mounting ###
sudo mount /dev/sda# /mnt #Mount root (/) partition
sudo mount /dev/sda# /mnt/boot #Mount boot (/boot) partition
(if separate from root partition)
sudo mkdir -p /mnt/boot/efi #Create EFI partition mount point
sudo mount /dev/sda1 /mnt/boot/efi #Mount EFI partition
sudo mount --bind /dev /mnt/dev
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/sys
sudo chroot /mnt #Chroot to your installation
### Installing ###
apt-get install grub-efi-amd64 #Install grub EFI bootloader
grub-install --recheck --no-floppy --force
#Install grub bootloader in EFI partition
echo "configfile (hd0,gpt#)/boot/grub.cfg" > /boot/efi/ubuntu/grub.cfg
#Tell grub to load grub.cfg from /boot
update-grub #Create grub menu list
exit #Exit chroot
### Unmounting ###
sudo umount /mnt/dev
sudo umount /mnt/proc
sudo umount /mnt/sys
sudo umount /mnt/boot/efi
sudo umount /mnt/boot
sudo umount /mnt
edited Apr 13 '17 at 12:24
Community♦
1
1
answered Mar 19 '17 at 23:58
A-raycoA-rayco
613
613
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%2f886367%2fgrub-install-dev-sda-failed-for-dual-boot-with-windows-10%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