I recently bought a shiny new Lenovo Yoga 2 Pro and I want to dual boot it with Ubuntu for studying purposes. Its built-in OS is Windows 8.1 and it has a 256GB SSD.
I’ve made a separate 90GB partition just for Ubuntu and a live USB to install it.
The first time everything seemed to work great, I solved the wifi issued by blacklisting ideapad_laptop, the installation went flawlessly and Ubuntu worked fine.
When I got up the next morning and turned on my laptop it booted into Windows right away without ever showing the GRUB menu. So I tried to reset, and checked my partitions with the Disk Manager and everything looked fine. Since I couldn’t find a solution online I went ahead and formatted the partition to try and install again. This time and every time since, the installation was aborted and I got a fatal error saying:
Unable to install GRUB in /dev/sda
Executing `grub-install /dev/sda` failed.
This is a fatal error.
Can anyone please suggest a solution to this problem?
If any further information is needed I would be happy to provide it.
Thanks.
When installing I get the following in details:
ubuntu kernel: [ 1946.372741] FAT-fs (sda2): error, fat_get_cluster: invalid cluster chain (i_pos 0).
ubuntu grub-installer: error: Running 'grub-install --force failed.
Braiam
66.2k30 gold badges174 silver badges262 bronze badges
asked May 2, 2014 at 16:56
3
I just had this problem installing Ubuntu 14.04 from a USB stick to a hard drive.
The problem was the USB stick was /dev/sda
, installing to the hard drive /dev/sdb
Even though the installer knew to install to /dev/sdb
, it then tried to install grub to the MBR on /dev/sda
, and failed. The workaround was to go back to the menu, try again, say NO to automatically install to MBR of first hard drive and manually tell it /dev/sdb
.
Then everything worked.
Zanna♦
68.2k55 gold badges210 silver badges320 bronze badges
answered Jan 9, 2015 at 5:16
dricketdricket
3593 silver badges2 bronze badges
7
I finally got it working, not sure which of the following did the trick but I:
- Disabled Lenovo Fast Boot in BIOS.
- Disabled Secure Boot in BIOS.
- Booted from Live USB.
- In boot menu Added
backlight=vendor
in Try Ubuntu configuration text just beforequiet splash
. - Chose Try Ubuntu.
- In terminal ran
sudo rmmod ideapad_laptop
to enable wifi. - Ran installation and chose to install updates during installation.
- EFI partition was selected automatically so I assigned 9700MB for swap space and 80GB for Ubuntu.
- After installation completed added
backlight=vendor
to/etc/default/grub
beforequiet splash
and then ransudo update-grub
. - Blacklisted
ideapad_laptop
to enable wifi. - Works fine so far. Thanks to everyone for the help!
Zanna♦
68.2k55 gold badges210 silver badges320 bronze badges
answered May 10, 2014 at 7:55
vicban3dvicban3d
7562 gold badges7 silver badges12 bronze badges
I got the same error while installing Ubuntu 20.04. Turned out that I had created «logical» instead of «primary» partitions during the installation process for both my EFI and root partition. I ran the installation again, this time configuring both partitions as a «primary» partition, and the error was gone this time.
answered Apr 27, 2020 at 16:33
3
I had a similar problem. What I did was to leave the installation as it was, then I made sure my drive was in UEFI mode and booted from a live CD and installed boot-repair
.
To do this I had to add the yannubuntu
repository and then download it with apt-get
. This was done the following way:
sudo apt-add-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install boot-repair
boot-repair
Then, when the program was launched, I checked all the options in Advanced Options > Main Options and clicked Apply.
Zanna♦
68.2k55 gold badges210 silver badges320 bronze badges
answered Feb 4, 2016 at 20:55
1
I had this issue when installing Ubuntu (not dual-boot) in my new build. None of the boot options described above would work for me.
I had to disconnect my SSD and all USB devices so that Ubuntu would only recognize the 1T HDD for installation.
Zanna♦
68.2k55 gold badges210 silver badges320 bronze badges
answered Dec 13, 2015 at 13:46
1
I don’t have a Lenovo Yoga but I had the same issue on my desktop.
It has SSD and HDD drivers, it was listed like this:
SATA#1 HDD /dev/sda
SATA#2 SSD /dev/sdb
As always I’m trying to install the OS on my SSD. The installer is installing Ubuntu (or Linux Mint) on /dev/sdb
but then is trying to install GRUB on /dev/sda
. That is a problem.
The solution was to swap the SATA connections, like this:
SATA#1 SSD /dev/sda
SATA#2 HDD /dev/sdb
answered Jun 24, 2018 at 16:49
megasmegas
2,4877 gold badges27 silver badges35 bronze badges
- Check installation media for corruption
- Check BIOS and disable Secure boot
- Disable Lenovo fast boot
I assume you are installing in UEFI mode, so it might be nescessary to unlock System lock in BIOS. If neither works, I would assume that problem lies in dual boot. I myself am running Ubuntu on Y2P as I type without any problems.
As for blacklisting ideapad_laptop module, you may want to check github.com/pfps/yoga-laptop, as there are some Y2P specific drivers. Still work in progres tho.
answered May 2, 2014 at 17:32
BuriBuri
112 bronze badges
1
Ran into this very issue while installing on a Poweredge with scsi raid. I found that pulling out the USB drive prior to installing GRUB did the trick.
answered Aug 21, 2015 at 16:04
1
I have the same laptop and for me everything works fine — but I installed the grub loader into the already existing EFI partition, which had the index 2 at the end of its name — it certainly wasn’t the sda partition though, which was chosen by default. (So I chose my partition for installation above and below, there was the possibility to change the partition for grub installation.)
I used an SD card for installation and started it in UEFI mode, because Windows 8.1 was pre-installed that way, too. (I’m sorry if I’m expressing this in a wrong way, but I only know about all this from reading in different forums before installing Ubuntu 14.04 about three days ago.)
Anyway, everything works fine if you do it this way. Start installation medium in UEFI mode, choose the partition freed for the installation, install grub into the existing EFI partition.
Oh, and also, I didn’t really have to change anything in the BIOS, I had disabled fast boot before and left it that way. It automatically changed something else, I can look that up again, if you want to know.
answered May 10, 2014 at 7:26
menowmenow
1191 bronze badge
I had a plethora of devices on a bare install and got this on 12.04 (last alternate manual install). Rather than track down where you specify to GRUB, I just acquiesced and moved the boot SSD to the sata-0 port so it would show up as sda.
answered Nov 30, 2015 at 15:14
1
This problem occured when i tried to give new life to my VERY old hp pavilion dm4. It said it couldn’t install grub and none of the buttons to do anything worked. I freaked out, and force shutdown my computer in the MIDDLE of installation. Luckily, I was able to boot on to the pen drive again. I later figured out that the pen drive had been pulled out a little bit, causing the installer to go nuts. It turned out for me it was a really simple little solution.
edwinksl
23.3k16 gold badges73 silver badges100 bronze badges
answered Aug 9, 2016 at 4:37
I had the same problem when installing Ubuntu 15.10 desktop (dual boot on separate partition in Lenovo G40-45 laptop where Windows 10 is already installed and activated).
I had already disabled secure boot (as per my earlier experiences with dual boot — Linux and Windows).
Finally I decided that I would try with secure boot enabled (as I expected things to have improved since 14.xx). AND IT WORKED!!! — without any other adjustments (and without internet connection).
(I installed Windows 10 while secure boot was disabled and then installed Ubuntu with secure boot enabled).
Zanna♦
68.2k55 gold badges210 silver badges320 bronze badges
answered Nov 11, 2015 at 16:43
1
It can’t be /dev/sda itself, it have to be some partiton of it. As usual windows make one NTFS, one recovery and one UEFI for boot parition. We have to first identify this UEFI boot partition as to get dual boot working.
My bios is of ASRock. This is how I was able to make it grub install for dual booting.
I think issue was I was trying to use just usb as bootable in the bootable drive options.
Once I chose usb uefi as bootable, I saw immediate change in partitions seen on parition layout GUI.
I was able to see uefi windows boot manager partition at /dev/sda2, (which I identified from windows disk partitons as the one with EFI layout), this was not shown when I was choosing usb without uefi option as bootable drive. I chose this uefi partition as boot partition for my install.
After that grub installed on windows boot manager partition and it and dual boot started working.
answered Mar 1, 2020 at 15:58
NVram Locked
sounds like there might be some problems writing into the UEFI NVRAM variables, which are accessible in Linux via /sys/firmware/efivars
or using the efibootmgr
tool.
If you are accessing the failed installation by mounting it under /mnt/chrootdir
and chroot
ing into it as suggested in answers to the AskUbuntu question you linked, I would suggest using mount --rbind
instead of mount --bind
for both /dev
and /sys
, as both include separate sub-filesystems that can be important for grub-install
functionality:
- if
/dev/pts
is not available in the chrooted environment, it would cause theunable to allocate pty: No such device
error - if
/sys/firmware/efi/efivars
is not available in the chrooted environment, it would cause the attempts to write into UEFI NVRAM variables to fail… which is exactly your primary issue.
But if this does not help, you might want to read this excellent webpage by Roderick W. Smith, which explains certain problems other OSs or buggy UEFI firmware implementations can cause, and gives methods for working around them.
On your sda1
disk, there is apparently a efi/ubuntu/grub.cfg
file, with the following contents:
search.fs_uuid 2D07-0F0A root hd0,gpt1
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg
This seems incorrect: it is looking for the ESP partition (sda1
) by filesystem UUID, and then assuming it should be a Linux root filesystem that contains /boot/grub
… which is not true, as sda1
is the UEFI ESP, not the Linux root filesystem.
That file should instead have the following contents:
search.fs_uuid 25f0e88-f20a-4350-9df0-ee8c57ecc455 root hd0,gpt2
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg
You might want to copy this efi/ubuntu/grub.cfg
to efi/BOOT/grub.cfg
(also on sda1
) too, to allow GRUB to find a valid configuration even if started as efi/BOOT/BOOTx64.efi
.
This configuration file would cause the grubx64.efi
on the ESP to seek the real Ubuntu root partition (sda2
) by filesystem UUID, and then load any necessary GRUB modules from there, and also load the true GRUB configuration from /boot/grub/grub.cfg
on sda2
.
You might also want to copy efi/ubuntu/grubx64.efi
into efi/BOOT/grubx64.efi
on sda1
, to ensure the full set of boot files are also available on the UEFI fallback/removable media boot path.
This part of the boot-repair output is actually produced by efibootmgr -v
:
BootCurrent: 0003
Timeout: 1 seconds
BootOrder: 0003,0004
Boot0003* UEFI: TOSHIBA TransMemory 1.00 PciRoot(0x0)/Pci(0x14,0x0)/USB(1,0)/HD(2,GPT,9240a165-d190-4ab6-8a12-46dc207b42ee,0x71e8a0,0x2130)..BO
Boot0004* UEFI: ST2000DM001-1ER164 HD(1,GPT,22c1dbaf-a26e-4408-a6f9-d1fc06b0d615,0x800,0x100000)/File(EFIbootbootx64.efi)..BO
It indicates that although you’ve currently booted from USB, your system firmware is prepared to boot from sda1
(identified by PARTUUID 2c1dbaf-a26e-4408-a6f9-d1fc06b0d615
using the file fallback/removable media boot path EFI/boot/bootx64.efi
(the filesystem on ESP is vfat
, so it should be case-insensitive… but some UEFI firmware implementations aren’t). So if you can perform the above-mentioned changes to the ESP, the system might be able to boot from sda1
.
If you can get a regular Ubuntu system running in UEFI mode, you could retry sudo grub-install /dev/sda
to rewrite the bootloader and automatically re-write the NVRAM boot variable for Ubuntu. Or alternatively, you could use the efibootmgr
command to try and precision-fix just the boot variable issue yourself:
sudo efibootmgr -c -d /dev/sda -p 1 -l \EFI\ubuntu\grubx64.efi -L Ubuntu
(This command requires that /dev/sda1
is mounted as /boot/efi
and the efivarfs
filesystem is mounted at /sys/firmware/efi/efivars
. Both of these conditions should be handled automatically by a normal Ubuntu boot process.)
If this still fails with «NVram Locked» or similar, you might have a buggy UEFI implementation, but at least it allows you to boot into Ubuntu by using the fallback/removable media path.
- Печать
Страницы: [1] Вниз
Тема: Это неисправимая ошибка [Решено] (Прочитано 1717 раз)
0 Пользователей и 1 Гость просматривают эту тему.

Rakkot
Добрый день! Уже не первый год пользуюсь ubuntu но как рядовой пользователь, просто замена винды.
Взял ноут Lenovo ideapad 320 celeron 4200n radeon 530 2gb 4gb RAM 500HDD и докупил SDD kingston
Ноут с UEFI. Не могу поставить линукс, ни Ubuntu ни элементраи.
Пишет Это не удалось выполнить команду grub-install/dev/sda1 неисправимая ошибка.
ПРОШУ НЕ СПЕШИТЕ КИДАТЬ КАМНЯМИ!
Я перепробовал все методы лечения ошибки. Через жипартед корректно разметил диск, все по гайду.
Однако чтобы я не делал ничего не работает.
в bios
boot mode uefi
fast boot disable
secure boot disable
Систему пытаюсь ставить на SSD уже на сам ссдшник грешу, может в нем проблема.
Пользователь добавил сообщение 03 Июля 2020, 16:00:09:
пытался восстановить через бут репэир и вот что он мне пишет
GPT обнаружена. Пожалуйста, создайте раздел BIOS-Boot (>1MB, файловая система неотформаторована, Флаг bios_grub). Выполнить это вы можете с помощью инструмента Gparted. Затем попробуйте снова.
Или вы можете повторить после задействования параметра [Отдельный раздел /boot/efi:]
Цитировать самому себя не нужно. Оверквотинг удален. Отправлено уведомление пользователю о допущенном нарушении в ЛС.
—zg_nico
ТС не появлялся на Форуме более трех месяцев по состоянию на 19/03/2021 (последняя явка: 04/07/2020). Модератором раздела принято решение закрыть тему.
—zg_nico
« Последнее редактирование: 19 Марта 2021, 14:25:29 от zg_nico »
Dzhoser
Вы команду вручную вводите или как?
При разбитии автоматом тоже не ставится?
Покажите скрин gparted

Morisson
grub-install/dev/sda1
grub-install /dev/sda

Morisson
grub-install --target=x86_64-efi --efi-directory=/путь/до/EFIраздела --bootloader-id=GRUB
--efi-directory=/boot/EFI
скорее всего у вас будет
efi- раздел должен быть примонтирован в /boot/EFI

Rakkot
А по верхней галке не пробовали? Или есть ценная инфа на диске?
конечно пробовал в автоматическом режиме, все тоже самое
Пользователь добавил сообщение 03 Июля 2020, 16:37:39:
Покажите скрин gparted
эмммм а как прикрепить картинку? ))
пишет что не умеет прикреплять jpg png
Оверквотинг удален.
—zg_nico
« Последнее редактирование: 03 Июля 2020, 18:34:57 от zg_nico »

Morisson
итак, диск с разметкой gpt у Вас и в автоматическом режиме тоже не устанавливается?

Rakkot
В общем победа
что я сделал
я разметил диск следующим образом:
/dev/sda1 /dev/sda1 EFI System
/dev/sda2 Linux Swap
/dev/sda3 Linux Filesystem система с точкой монтирования /
/dev/sda4 BIOS Boot
/dev/sda5 Linux Filesystem с точкой монтирования /home
но мне опять вывело ошибку граб инсталер
я повторно через лайф сиди запустил граб репеир, прошел процедуру восстановления и все заработало.
Может кому-то мой опыт пригодится.

zg_nico
Ноут с UEFI. Не могу поставить линукс, ни Ubuntu ни элементраи.
Пишет Это не удалось выполнить команду grub-install/dev/sda1 неисправимая ошибка.
Если при обновлении ядра или еще в дальнейшем при использовании системы столкнетесь с ошибками (при обновлении ядра вызывается upgate-grub, и на проблемных машинах может быть сбой аналогичный тому, что Вы видели при установке):
1. убедиться что отключены SecureBoot, fastboot и прочая виндузятная ерунда в настройках UEFI.
2. если та же ошибка, что и ранее, то отказаться от использования grub2 (на этапе установки системы это делается через запуск установщика с ключом -b). Вместо него, ИМХО, на проблемных машинах неплохо себя зарекомендовал rEFInd (у самого сейчас он стоит и проблем не знаю от слова «совсем»). Пример установки системы в этом посте или поиском по форуму. Если система уже установлена — можно обойтись установкой пакета refind через apt. После того, как он установлен — в настройках BIOS переместить его на первое место. Загрузиться через него, удалить grub2, вычистить от конфигов систему, после чего вместо grub2 подготовить и установить пакет-заглушку, чтобы система не притащила его с очередным обновлением. Пример конфигурирования: тыц. Пример подготовки пакета-заглушки: тыц.
« Последнее редактирование: 03 Июля 2020, 18:49:03 от zg_nico »
Thunderobot G150-D2: Intel SkyLake Core i7-6700HQ 2.60GHz, 8Gb DDR4 2133 MHz, Intel HD530, NVidia GeForce GTX 960M 2Gb. Ubuntu 16.04 64x [Unity], KUbuntu 18.04 64x.

vladimirzhuravlev
Может кому-то мой опыт пригодится.
Упаси Бог от такого опыта, /dev/sda4 BIOS Boot… это что, раздел под загрузчик заделал ? Работает и ладно, но советовать такой «опыт» другим ?

andytux
«Выиграл битву, но проиграл войну.»
кому-то мой опыт пригодится…
…чтобы не повторять этих ошибок.
разметил диск следующим образом
Разметка более чем бредовая, хотя видал и пострашнее.
повторно через лайф сиди запустил граб репеир
Ты редкий счастливчик, тебе повезло. Можешь играть в наперстки.
- Печать
Страницы: [1] Вверх
Forum rules
Before you post please read how to get help. Topics in this forum are automatically closed 6 months after creation.
-
Keo
- Level 1
- Posts: 9
- Joined: Wed Jan 20, 2016 9:30 pm
[Solved] Linux Mint 17.3 Mate 64 Install GRUB-Install Failed
Hi,
I’m trying to install Linux Mint 17.3 (64) on an HP 2000 Notebook PC with a SanDisk SSD Plus 240 GB. I installed Windows 10 Home without a problem. I’m using UEFI. I tried two different USB installation sticks with and without secure boot. It always gets stuck at the same spot.
When I try to install Mint it gets stuck after the GRUB2 install. The actual error is:
Unable to install GRUB in /dev/sda
Executing ‘grub-install /dev/sda’ failed
This is a fatal error
I installed Windows 10 and Mint on a Lenovo laptop with the same SanDisk SSD. It works great. Please help I’m not sure what else to do…
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
-
Keo
- Level 1
- Posts: 9
- Joined: Wed Jan 20, 2016 9:30 pm
Re: Linux Mint 17.3 Mate 64 Install GRUB-Install Failed
Post
by Keo » Sat Jan 23, 2016 1:53 pm
Tex,
Thanks for the link. I have followed it in great detail without success after many hours working on this issue. I tried many different distros and USB formats. It seems like the BIOS for HPNotebook PC 2000-2b19WM does not fully confirm to UEFI standards that Linux expects. There are other posts in UBUNTU forums solving the problem in other manner such as transferring the hard-drive to another laptop for the actual Linux installation and then returning the hard-drive to the HP. I think Linux Mint is installed but I can’t boot into it. I tried re-installing GRUB2 and below is my error message in Terminal:
Code: Select all
$ sudo grub-install --root-directory=/mnt /dev/sda
grub-probe: error: failed to get canonical path of `/cow'.
Installing for i386-pc platform.
grub-install.real: warning: this GPT partition label contains no BIOS Boot Partition; embedding won't be possible.
grub-install.real: warning: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged..
grub-install.real: error: will not proceed with blocklists.
I don’t understand what that is saying. Please help…
- Attachments
-
- This is my drives partitions during the install
-
austin.texas
- Level 20
- Posts: 12003
- Joined: Tue Nov 17, 2009 3:57 pm
- Location: at /home
Re: Linux Mint 17.3 Mate 64 Install GRUB-Install Failed
Post
by austin.texas » Sat Jan 23, 2016 2:20 pm
You used the command «sudo grub-install —root-directory=/mnt /dev/sda»
The reason I mentioned:
austin.texas wrote:Grub is installed to the ESP, not to the MBR.
was so that you would know not to do that.
You install Grub to the ESP (EFI System Partition) which is normally /dev/sda1 — check to see if that is true on your hard drive:
Then you install Grub to the ESP:
Code: Select all
sudo grub-install --root-directory=/mnt /dev/sda1
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2018
-
austin.texas
- Level 20
- Posts: 12003
- Joined: Tue Nov 17, 2009 3:57 pm
- Location: at /home
Re: Linux Mint 17.3 Mate 64 Install GRUB-Install Failed
Post
by austin.texas » Sat Jan 23, 2016 3:43 pm
Keo wrote:I have a photo of my partitions attached to the last post — sda2 shows efi. Are you saying I should install on sda1? Please confirm.
No, I said check to see if it is sda1 on your hard drive.
But, you are correct — I should have seen that in your screenshot. It is sda2
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2018
-
Keo
- Level 1
- Posts: 9
- Joined: Wed Jan 20, 2016 9:30 pm
Re: Linux Mint 17.3 Mate 64 Install GRUB-Install Failed
Post
by Keo » Sun Jan 24, 2016 3:27 pm
Ok, I tried what you said, it still does not work.
Code: Select all
$ sudo grub-install --root-directory=/mnt /dev/sda2
grub-probe: error: failed to get canonical path of `/cow'.
Installing for i386-pc platform.
grub-install.real: error: failed to get canonical path of `/cow'.
I’m new to this, but I think these are the actual commands. It still did not work.
Code: Select all
$ sudo mount /dev/sda2 /mnt
$ sudo grub-install --root-directory=/mnt /dev/sda
grub-probe: error: failed to get canonical path of `/cow'.
Installing for i386-pc platform.
grub-install.real: warning: this GPT partition label contains no BIOS Boot Partition; embedding won't be possible.
grub-install.real: warning: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged..
grub-install.real: error: will not proceed with blockli
-
Keo
- Level 1
- Posts: 9
- Joined: Wed Jan 20, 2016 9:30 pm
Re: Linux Mint 17.3 Mate 64 Install GRUB-Install Failed
Post
by Keo » Sun Jan 24, 2016 8:48 pm
I tried both Solution 1 and 2. I did not receive any errors but it boots directly into Win10.
SOLUTION 1:
Code: Select all
mint@mint ~ $ sudo apt-get install grub-efi-amd64
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
efibootmgr grub-efi-amd64-bin
The following packages will be REMOVED:
grub-gfxpayload-lists grub-pc
The following NEW packages will be installed:
efibootmgr grub-efi-amd64 grub-efi-amd64-bin
0 upgraded, 3 newly installed, 2 to remove and 0 not upgraded.
Need to get 0 B/722 kB of archives.
After this operation, 2,399 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Preconfiguring packages ...
(Reading database ... 183987 files and directories currently installed.)
Removing grub-gfxpayload-lists (0.6) ...
Removing grub-pc (2.02~beta2-9ubuntu1.3) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Selecting previously unselected package efibootmgr.
(Reading database ... 183968 files and directories currently installed.)
Preparing to unpack .../efibootmgr_0.5.4-7ubuntu1.2_amd64.deb ...
Unpacking efibootmgr (0.5.4-7ubuntu1.2) ...
Selecting previously unselected package grub-efi-amd64-bin.
Preparing to unpack .../grub-efi-amd64-bin_2.02~beta2-9ubuntu1.3_amd64.deb ...
Unpacking grub-efi-amd64-bin (2.02~beta2-9ubuntu1.3) ...
Selecting previously unselected package grub-efi-amd64.
Preparing to unpack .../grub-efi-amd64_2.02~beta2-9ubuntu1.3_amd64.deb ...
Unpacking grub-efi-amd64 (2.02~beta2-9ubuntu1.3) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up efibootmgr (0.5.4-7ubuntu1.2) ...
Setting up grub-efi-amd64-bin (2.02~beta2-9ubuntu1.3) ...
Setting up grub-efi-amd64 (2.02~beta2-9ubuntu1.3) ...
mint@mint ~ $
Solution 2: I may be missing something here??
Code: Select all
mint@mint ~ $ sudo gdisk -l /dev/sda
GPT fdisk (gdisk) version 0.8.8
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using GPT.
Disk /dev/sda: 468862128 sectors, 223.6 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 44249B75-9346-4EF3-9772-EDDDEA35A377
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 468862094
Partitions will be aligned on 2048-sector boundaries
Total free space is 3181 sectors (1.6 MiB)
Number Start (sector) End (sector) Size Code Name
1 2048 923647 450.0 MiB 2700 Basic data partition
2 923648 1126399 99.0 MiB EF00 EFI system partition
3 1126400 1159167 16.0 MiB 0C01 Microsoft reserved part
4 1159168 359628799 170.9 GiB 0700 Basic data partition
5 359628800 453378047 44.7 GiB 8300
6 453378048 468860927 7.4 GiB 8200
mint@mint ~ $ sudo apt-get install efibootmgr
Reading package lists... Done
Building dependency tree
Reading state information... Done
efibootmgr is already the newest version.
efibootmgr set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
mint@mint ~ $ sudo mkdir -p /mnt/system
mint@mint ~ $ sudo mount /dev/sda5 /mnt/system
mint@mint ~ $ sudo mount /dev/sda2 /mnt/system/boot/efi
mint@mint ~ $ sudo efibootmgr -a 0002
You must specify a boot entry to delete (see the -b option).
mint@mint ~ $ sudo efibootmgr -c -d /dev/sda -p 2 -w -L LinuxMint
BootCurrent: 0000
Timeout: 0 seconds
BootOrder: 0002,2001,3001,2002,2003
Boot0000* USB Hard Drive (UEFI) - Generic Flash Disk
Boot0001* Windows Boot Manager
Boot2001* USB Drive (UEFI)
Boot2002* Internal CD/DVD ROM Drive (UEFI)
Boot3001* Internal Hard Disk or Solid State Disk
Boot0002* LinuxMint
mint@mint ~ $ sudo efibootmgr -b 0002 -B
BootCurrent: 0000
Timeout: 0 seconds
BootOrder: 2001,3001,2002,2003
Boot0000* USB Hard Drive (UEFI) - Generic Flash Disk
Boot0001* Windows Boot Manager
Boot2001* USB Drive (UEFI)
Boot2002* Internal CD/DVD ROM Drive (UEFI)
Boot3001* Internal Hard Disk or Solid State Disk
mint@mint ~ $ sudo efibootmgr -a 3001
You must specify a boot entry to delete (see the -b option).
mint@mint ~ $ sudo efibootmgr -d /dev/sda
BootCurrent: 0000
Timeout: 0 seconds
BootOrder: 2001,3001,2002,2003
Boot0000* USB Hard Drive (UEFI) - Generic Flash Disk
Boot0001* Windows Boot Manager
Boot2001* USB Drive (UEFI)
Boot2002* Internal CD/DVD ROM Drive (UEFI)
Boot3001* Internal Hard Disk or Solid State Disk
mint@mint ~ $ sudo efibootmgr -a 3001
You must specify a boot entry to delete (see the -b option).
mint@mint ~ $
-
Keo
- Level 1
- Posts: 9
- Joined: Wed Jan 20, 2016 9:30 pm
Re: Linux Mint 17.3 Mate 64 Install GRUB-Install Failed
Post
by Keo » Tue Jan 26, 2016 10:45 pm
Hi, thank you for the advice. I’m not sure the exact process so I did what I was able. Please provide step by step instructions if this is wrong. I created a USB ALT Linux Rescue, selected the Linux option, and entered the three commands listed; mount-system, mount-forensics, grub-install. It ended in errors. Please help. I’m not sure how to create a rEFInd USB with a Linux Mint ISO. Sorry, please consider me a newbie as that is what I am.
- Attachments
-
- Alt Linux Rescue, rEFInd
-
Laurent85
- Level 17
- Posts: 7015
- Joined: Tue May 26, 2015 10:11 am
Re: Linux Mint 17.3 Mate 64 Install GRUB-Install Failed
Post
by Laurent85 » Wed Jan 27, 2016 7:47 am
Try this way, from Linux Mint Live desktop:
— download refind-flashdrive-0.10.2.zip
— right click refind-flashdrive-0.10.2.zip > Extract here
— plug in a usb stick (all existing data on it will be lost)
— right click the flash drive image refind-flashdrive-0.10.2.img > Open with Disk Image Writer > select the usb stick to write on > Start Restoring…
Then try booting Linux Mint using the bootable rEFInd usb flash drive.
-
Keo
- Level 1
- Posts: 9
- Joined: Wed Jan 20, 2016 9:30 pm
[Solved] Re: Linux Mint 17.3 Mate 64 Install GRUB-Install Fa
Post
by Keo » Thu Jan 28, 2016 9:02 pm
Hi Tex and Lauren,
First — thank you so much for your help! After many hours, my laptop can dual boot Windows 10 and Linux Mint 17.3 successfully!!
I would like to document for anyone with a similar system problem. The problem and solution that worked for me:
All of the normal installations from Linux Mint failed at the GRUB Install point. I tried the normal rEFInd installations and they too failed to work — sometimes errors were produced and sometimes not. None of them had any affect on the EFI boot. It always booted Win10.
Following the rEFInd instructions under «Alternative Naming Options, Renaming Files Manually», http://www.rodsbooks.com/refind/install … l_renaming I was able to determine that the BIOS always booted using the /boot/efi/EFI/Microsoft/Boot/bootmgfw.efi file. As instructed, I renamed the refind.efi file and replaced the prior file. It worked!!!! I only needed to tweek the refind.conf file to customized the menu for preference.
I hope this can help others in the same situation. Thank you again for all of your help!!!!!
-
HilltopsGM
- Level 4
- Posts: 222
- Joined: Thu Mar 15, 2012 8:11 pm
Re: [Solved] Linux Mint 17.3 Mate 64 Install GRUB-Install Failed
Post
by HilltopsGM » Sun Mar 19, 2017 2:58 am
Just in case anyone else stumbles across this post (as I did) while looking for a solution . . . it appears that the solution to the problem is as simple as this:
. . . Make sure the computer is NOT connected to the internet DURING the install.
viewtopic.php?f=46&t=241723
The issue did give me a chance to play with rEFInd though . . . it seems to be a pretty good bootloader.
Either way, I hope that this helps.
Cheers.
-
jorgenask
Re: [Solved] Linux Mint 17.3 Mate 64 Install GRUB-Install Failed
Post
by jorgenask » Tue Mar 21, 2017 12:43 pm
HilltopsGM wrote:Just in case anyone else stumbles across this post (as I did) while looking for a solution . . . it appears that the solution to the problem is as simple as this:
. . . Make sure the computer is NOT connected to the internet DURING the install.viewtopic.php?f=46&t=241723
The issue did give me a chance to play with rEFInd though . . . it seems to be a pretty good bootloader.
Either way, I hope that this helps.
Cheers.
I had no belive in this solution when I first read it, but it worked !!
Thanks for that .. Who knows what the installer is downloading to mess up the grub install …
As the title says, I’m trying to install Ubuntu 16.10 so that I can dual-boot Ubuntu alongside my existing Windows 7 installation. I’m installing from a USB drive and I keep getting the error:
Unable to install GRUB in /dev/sda. Executing 'grub-install/dev/sda' failed.
This is a fatal error.
My situation is as follows:
I currently have:
- HDD #1 : Windows 7 64-bit (750 GB)
- HDD #2 : NTFS partition for extra files (700 GB) and Ubuntu 16.10 (300 GB)
- SSD #1 : Unformatted (120 GB)
I was able to install Ubuntu 16.10 successfully, prior to GRUB failing to install.
I want to install Ubuntu such that it is on the 300 GB partition of the 1 TB drive. I can’t seem to get Ubuntu to install GRUB successfully.
Though this is a common error, I can’t seem to find anyone in exactly the same situation (apparently Windows 8 and later play differently with Ubuntu and can cause other problems, and other posts from people with this problem seem to be trying to install Ubuntu over Windows 7 as a replacement rather than a dual-boot option).
I’d prefer not to put Ubuntu on the SSD (eventually I’m going to get around to reinstalling Windows 7 there, but that’s another day’s project).
I can provide screenshots (or at least, pictures of the screen) if that would be helpful.
The lsblk -a
command yielded this:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
loop1 7:1 0 0 loop
sdd 8:48 1 57.7G 0 disk
└─sdd1 8:49 1 57.7G 0 part /cdrom
sdb 8:16 0 698.7G 0 disk
├─sdb2 8:18 0 698.6G 0 part
└─sdb1 8:17 0 100M 0 part
loop6 7:6 0 0 loop
loop4 7:4 0 0 loop
sr0 11:0 1 38M 0 rom /media/ubuntu/SAMSUNG SSD
loop2 7:2 0 0 loop
loop0 7:0 0 1.4G 1 loop /rofs
sdc 8:32 0 931.5G 0 disk
├─sdc2 8:34 0 1K 0 part
├─sdc5 8:37 0 16G 0 part [SWAP]
├─sdc1 8:33 0 651.5G 0 part
└─sdc6 8:38 0 264.1G 0 part
sda 8:0 0 111.8G 0 disk
loop7 7:7 0 0 loop
loop5 7:5 0 0 loop
sr1 11:1 1 1024M 0 rom
loop3 7:3 0 0 loop
Translation(s): English — Français — Italiano — Russian
Recover GRUB
Imagine for any reason you have any other OS installed next to Debian. And for any reason you need to reinstall it because is really broken. Again, imagine that OS has a crappy installation and overwrites the disk MBR or GPT to own the full computer. What’s next? Reinstall Debian? No.
In any case, you can use SuperGRUB, a boot utility that can restore and repair overwritten and misconfigured GRUB installs or directly boot various operating systems.
Standard procedure
The Debian Installer (DVD, netinst CD, floppy, netboot, etc.) can be used to rescue systems, for example if they fail to boot after an upgrade. You should read and follow the instruction «Recovering a Broken System» section of the Installation Guide1 [link to stable/amd64].
Troubleshooting : ‘grub-install /dev/sda’ failed.
If D-I’s «Reinstall GRUB boot loader» option fails, with error message
Unable to install GRUB in /dev/sda Executing 'grub-install /dev/sda' failed. This is a fatal error.
Also, the d-i log console (Alt-F4) displays
grub-installer: /dev/scsi/host0/bus0/target0/lun0/disc does not have any corresponding BIOS Drive
You can still use the following method to reinstall GRUB. Choose «Execute a shell in Your root partition» in the d-i rescue menu.
Locate your root partition :
fdisk -l Disk /dev/sda: 39.9 GB, 39996820992 bytes 255 heads, 63 sectors/track, 4862 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sda1 * 1 111 891576 7 HPFS/NTFS /dev/sda2 167 230 514080 82 Linux swap /dev/sda3 231 784 4450005 83 Linux /dev/sda4 785 4862 32756535 f W95 Ext'd (LBA) /dev/sda5 785 4862 32756503+ 83 Linux
Reinstall GRUB bootloader (grub manual)
If you have grub-legacy 2 and your root partition is /dev/sda3 then you can re-install grub in the MBR of your hard drive by typing the following commands :
sudo grub grub>root (hd0,2) grub>setup (hd0) grub>quit exit
Note that in grub-legacy (hd0,2) is the third partition.
Then choose «Reboot the system», everything should be fine.
CategoryBootProcess
-
Fresh Install 21.04 Executing �grub-install/dev/sda� failed
I had an issue with upgrade and then fresh install of 20.10. Got busy and now thought I could fix it with 21.04
I was able to run the live CD and get to the page Try or install. (I checked the download was correct with the SHA256SUMS etc)
I have a dual boot Windows and Linux desktop (boots correctly in windows).
I chose the install now and I then get the error.
Executing �grub-install/dev/sda� failed
This is a fatal errorI did a chkdisk in windows without any errors.
I’ve seen many post about fixing this, with many different methods.
Of note, when I boot from the USB, I get an initial grub screen with not the best graphics to choose ubuntu or ubuntu with safe graphics or something like that (never seen that with a live CD before).
D
-
Re: Fresh Install 21.04 Executing �grub-install/dev/sda� failed
What version of Windows and is it installed using UEFI?
If a pre-installed Windows 10 it will certainly be UEFI but if you upgraded from Windows 7 it could easily be installed in legacy/BIOS mode.To give us more detailed info see Boot-Repair in my signature below and follow the instructions there to run the Boot-Info-Script. Do not run the any repair just yet but simply copy back here the pastebin link you get which will show us a lot more about your system.
-
Re: Fresh Install 21.04 Executing �grub-install/dev/sda� failed
https://paste.ubuntu.com/p/tp9BBhzxRG/
I actually don’t remember, but I’m almost certain I upgraded to windows 10.
Bios mode is: Legacy
D
-
Re: Fresh Install 21.04 Executing �grub-install/dev/sda� failed
I am not a great expert in reading and decoding the boot-info script output but I note that it appears that you have an EFI/ESP partition on the hard disk.
Code:
fdisk -l (filtered): ___________________________________________________________ Disk sda: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors Disk identifier: 0xd283b5ea Boot Start End Sectors Size Id Type sda1 2048 718847 716800 350M 7 HPFS/NTFS/exFAT sda2 718848 979328108 978609261 466.6G 7 HPFS/NTFS/exFAT sda3 1952518144 1953519615 1001472 489M 27 Hidden NTFS WinRE sda4 979329022 1952518143 973189122 464.1G 5 Extended sda5 * 979329024 980379647 1050624 513M ef EFI (FAT-12/16/32) sda6 980381696 1952518143 972136448 463.6G 83 Linux Partition table entries are not in disk order.
How did you create the USB you used to install and was the USB you used for that the same one as you used to run Boot-info script?
Some applications used in Windows will only create a UEFI boot disk I believe, which would mean that you booted the USB in UEFI mode when you installed, therefore Ubuntu will have installed in UEFI mode, which will not work if your Windows is using legacy/BIOS.
Wait for someone who understands the report better than I do before carrying out any further activities.
-
Re: Fresh Install 21.04 Executing �grub-install/dev/sda� failed
I used my other Ubuntu 20.10 only machine to create the USB.
Yes, I made it while in the liveCD session on the USB.
D
-
Re: Fresh Install 21.04 Executing �grub-install/dev/sda� failed
Please do not take me for an expert either. This is what I see in the Boot-Repair report.
The drive has an extended partition (sda4). This means the drive has a Master Boot Record (MBR) partitioning scheme. I do not think that there should be an EFI partition (sda5). Indeed there are no boot files in sda5.
I am guessing that this is a BIOS motherboard and not an UEFI motherboard. I am also guessing the Ubuntu install session was in UEFI mode. Boot Repair says
Grub2 (v2.00) is installed in the MBR of /dev/sda and looks at sector 1 of the same hard drive for core.img. core.img is at this location and looks for (,msdos6)/boot/grub. It also embeds following components:
This is correct. msdos6 = sda6. The location of the Grub boot files. If there was a previous install of Ubuntu on this machine (20.10) it could have put
Grub into the MBR of the drive. This would mean that the installer of 21.04 was accurate when it said that the install of Grub into the MBR failed.Boot Repair is offering to do the only thing it can do.
The default repair of the Boot-Repair utility would purge (in order to unsign) and reinstall the grub2 of sda6 into the MBR of sda.
Grub-efi would not be selected by default because: legacy-win no-win-efi
Additional repair would be performed: unhide-bootmenu-10s win-legacy-basic-fixRegards
It is a machine. It is more stupid than we are. It will not stop us from doing stupid things.
Ubuntu user #33,200. Linux user #530,530
-
Re: Fresh Install 21.04 Executing �grub-install/dev/sda� failed
Line 72 3 Operating systems detected
Line 105 Windows 10 on sda1 in Legacy mode
Line 106 Windows 10 on sda2 in Legacy mode
Line 116 EFI System Partition (ESP) for Ubuntu
Line 109 Ubuntu on sda6 in UEFI modeHow did you end up with 2 installations of Windows 10?
You have Windows 10 in Legacy mode and Ubuntu in UEFI mode and this is ill-advised, hence the grub installation failure.
In order to future proof your system, you should consider:-
Backup your data
Install both systems inUEFI mode with GPT
https://help.ubuntu.com/community/UEFI
-
Re: Fresh Install 21.04 Executing �grub-install/dev/sda� failed
I’ve had previous Ubuntu going back many, many years. The last was 20.10 which did not install correctly. The last that worked correctly was 20.04
I thought the second windows was the recovery area for windows? When I boot, I only show Windows 10 and Ubuntu 21.04. I haven’t installed a second, just upgraded from 8 to 10 at some time.
I’m not sure what is on sda5
Gparted shows boot, esp as flags for sda5
If I click on information:
Unable to read the contents of this file system!
Because of this some operation may be unavailable.
The cause might be missing software package.
The following list of software packages is required for fat32
file system support: dosfstools, mtoolsI’ll review that last link «
Install both systems in UEFI mode with GPT», do I need to resolve the above issue first?
D
-
Re: Fresh Install 21.04 Executing �grub-install/dev/sda� failed
With BIOS, Boot-Repair copies bootmgr & BCD from Windows boot partition into the main or c:drive partition as many users have removed the boot partition not knowing it is essential. And then they do not have any boot files.
But then grub does search for Windows boot files, not Windows boot flag like Windows uses, to find Windows bootable partitions and it then finds both NTFS partitions as bootable. But Windows only uses its boot loader from primary NTFS partition with boot flag.But you installed Ubuntu in UEFI mode, and had an old grub in MBR for BIOS boot.
You can tell Ubuntu is installed in UEFI mode from ESP, UEFI boot entry and mount of ESP in fstab.
You cannot have both BIOS boot Windows and UEFI boot of another system on same drive without major work arounds to change booting.
Windows has to have boot flag on its bootable partition, your sda1 (although now it could be sda2 since boot files copied) and UEFI requires boot flag on ESP — efi system partition. Only one boot flag per drive.Use gparted and move boot flag from sda5 to sda1.
Use Boot-Repair to install a Windows type boot loader to MBR ( or Windows repair/recovery flash drive) and make sure Windows boots. Fast start up must be off.
Then use Boot-Repair to install BIOS version of grub to MBR.Since you only have one MBR, and two systems booting in BIOS mode, you need to always have both Ubuntu live installer & Windows repair flash drive.
Grub only boots working Windows & Windows updates will turn fast start up back on. Then grub will not boot Windows & you have to do the boot loader switches again.Its a lot easier to have Windows in UEFI mode as then it can be directly booted from UEFI boot menu, if grub does not boot Windows.
Microsoft has required vendors to install Windows in UEFI boot mode to gpt partitioned drive for almost 10 years, so BIOS installs are not recommended.Note conversion from MBR to gpt partitioning will erase drive so have good backups. But plan on eventually converting both systems to UEFI.
-
Re: Fresh Install 21.04 Executing �grub-install/dev/sda� failed
Ok, sounds like I have a mess (not sure how I got to this point).
Can I reinstall windows 10 in UEFI in GPT, then install Ubuntu?
I’d overwrite/erase the entire drive in the process.
Will that fix the issues above?
D