Не удалось выполнить команду grub install dev sda это неисправимая ошибка

Добрый день! Уже не первый год пользуюсь ubuntu но как рядовой пользователь, просто замена винды.
  • Печать

Страницы: [1]   Вниз

Тема: Это неисправимая ошибка [Решено]  (Прочитано 1751 раз)

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]   Вверх

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's user avatar

Braiam

66.2k30 gold badges174 silver badges262 bronze badges

asked May 2, 2014 at 16:56

vicban3d's user avatar

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's user avatar

Zanna

68.3k55 gold badges210 silver badges320 bronze badges

answered Jan 9, 2015 at 5:16

dricket's user avatar

dricketdricket

3593 silver badges2 bronze badges

7

I finally got it working, not sure which of the following did the trick but I:

  1. Disabled Lenovo Fast Boot in BIOS.
  2. Disabled Secure Boot in BIOS.
  3. Booted from Live USB.
  4. In boot menu Added backlight=vendor in Try Ubuntu configuration text just before quiet splash.
  5. Chose Try Ubuntu.
  6. In terminal ran sudo rmmod ideapad_laptop to enable wifi.
  7. Ran installation and chose to install updates during installation.
  8. EFI partition was selected automatically so I assigned 9700MB for swap space and 80GB for Ubuntu.
  9. After installation completed added backlight=vendor to /etc/default/grub before quiet splash and then ran sudo update-grub.
  10. Blacklisted ideapad_laptop to enable wifi.
  11. Works fine so far. Thanks to everyone for the help!

Zanna's user avatar

Zanna

68.3k55 gold badges210 silver badges320 bronze badges

answered May 10, 2014 at 7:55

vicban3d's user avatar

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

Erik van den Hoorn's user avatar

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's user avatar

Zanna

68.3k55 gold badges210 silver badges320 bronze badges

answered Feb 4, 2016 at 20:55

Mario Becerra's user avatar

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's user avatar

Zanna

68.3k55 gold badges210 silver badges320 bronze badges

answered Dec 13, 2015 at 13:46

Michael's user avatar

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

megas's user avatar

megasmegas

2,4877 gold badges27 silver badges35 bronze badges

  1. Check installation media for corruption
  2. Check BIOS and disable Secure boot
  3. 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

Buri's user avatar

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

Dana's user avatar

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

menow's user avatar

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

cowardlydragon's user avatar

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's user avatar

edwinksl

23.3k16 gold badges73 silver badges100 bronze badges

answered Aug 9, 2016 at 4:37

Sourav Mahanty's user avatar

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's user avatar

Zanna

68.3k55 gold badges210 silver badges320 bronze badges

answered Nov 11, 2015 at 16:43

Anisetty Jaya Venkata Prasad's user avatar

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

mrigendra's user avatar


archee1

  • Новичок форума
  • Сообщения: 8
  • Записан

Добрый день.
Дано: нетбук asus eee 1003, 250 гигов жесткий диск, со следующей разбивкой (стоят рядом ubuntu 10.10 и windows xp):

50gb NTFS — windows XP
10gb ext4 — /
190gb ext4 — /home

в винде сделал с помощью unetbootin загрузочную флешку Debian stable netinstall. начал установку, при разбиение жесткого диска вручную, указал все как и было, только корень (/) отформатировал. там что-то скачалось, установилось, следующий шаг был установка GRUB. он просканировал жесткий диск, написал что найдена винда, и попросил нажать ОК, если кроме нее больше операционнок нету. жму ОК, что то происходит, затем возникает ошибка:

«не удалось выполнить команду grub-install /dev/sda Это неисправимая ошибка»

и все. если дальше выбрать «продолжить установку без установки загрузчика», то при перезагрузке появляется черный экран с надписью «grub>».
Как можно решить эту проблему?
Напрягает меня то, что в убунте мой жесткий диск назывался /dev/sdb/, а не /dev/sdA/, а sdA — это были всегда флешки.


Ну как вариант — загрузится с live-флешки и выполнить grub-update. Можно даже с live-флешки с Убунтой.



archee1

  • Новичок форума
  • Сообщения: 8
  • Записан

Цитата: «Udachnik»Ну как вариант — загрузится с live-флешки и выполнить grub-update. Можно даже с live-флешки с Убунтой.

загрузился с лайв убунту, ввожу «sudo grub-update» (ровно как и «grub-update») и ответ «command not found»


Дико извиняюсь. Конечно sudo update-grub. Неправильно команду напечатал.



archee1

  • Новичок форума
  • Сообщения: 8
  • Записан

Цитата: «Udachnik»Дико извиняюсь. Конечно sudo update-grub. Неправильно команду напечатал.

error: cannot find a device for / (is /dev mounted?)
ошибка такая. как примонтировать диск, и нужно ли заново переставлять дебиан?


Гм, как будто / вообще не существует. А вы его точно корректно отформатировали? Какие разделы gparted c live-образа убунты показывает? Можно даже картинку.



archee1

  • Новичок форума
  • Сообщения: 8
  • Записан

Цитата: «Udachnik»Гм, как будто / вообще не существует. А вы его точно корректно отформатировали? Какие разделы gparted c live-образа убунты показывает? Можно даже картинку.

Переустановил дебиан. Дошел опять до этой ошибки, загрузился с лайв сиди.
«update-grub» выдает ту же ошибку, gparted показывает три раздела:
/dev/sda1 — NTFS 50gb
/dev/sda2 — 10gb ext4 — но без точки монтирования почему то…
/dev/sda3 — 190gb ext4 — тоже без точки монтирования
почему то при установке дебиана, неверно отформатировались разделы
как можно указать точки монтирования для дебиана из лайв сиди убунты?



archee1

  • Новичок форума
  • Сообщения: 8
  • Записан

Попробовал установить все заново, на этот раз полностью отформатировав жесткий диск (сделал 10gb / ext3; 239gb /home ext3; 1gb swap). При разбивки диска, он назывался у меня /dev/sdb, а когда очередь дошла до установки grub, выполнялась команда grub-install /dev/sda, соответственно вылезла та же непоправимая ошибка.
как это можно исправить?



archee1

  • Новичок форума
  • Сообщения: 8
  • Записан

В общем, к чему я пришел. Имеется флешка, которая с помощью unetbootin стала загрузочной с Debian Net install. жесткий диск, при установке называется /dev/sdb, а флешка /dev/sda. Grub пытается установиться на /dev/sda по умолчанию, и, соответственно вылазит непоправимая ошибка. Пробовал перед пунктом «определение дисков», выдергивать флешку, ибо походу она все равно не нужна на этом этапе, и все равно диск определяется, как /dev/sdb, и, соответственно ошибка.
Прошу помощи в данном вопросе, или ссылку на подробнейшую инструкцию, как установить debian на нетбук с флешки.


Посмотри перемычка у жесткого где стоит. Выставь master

8Gb/GTX750Ti 2Gb/AMD FX(tm)-4300 Quad-Core Processor/HDD 1Tb Toshiba DT01ACA100



archee1

  • Новичок форума
  • Сообщения: 8
  • Записан

Цитата: «Ghostdmn»Посмотри перемычка у жесткого где стоит. Выставь master

я не нашел на нем перемычки. жесткий диск для ноутов ST9250315AS seagete momentus 5400.6
исправил в биосе Advanced->HDD Configuration ATA/IDE Configuration с Enchanced на Compatible, и в пункте Primary Master отображается мой диск. И все равно при установке debiana он определяется как /dev/sdb


Покажите: /sbin/fdisk –l, cat /dev/sdaX/etc/fstab, cat /dev/sdaX/boot/grub/device.map



archee1

  • Новичок форума
  • Сообщения: 8
  • Записан

Проблема решилась следующим образом: скачал с debian.org iso образ первого cd, с помощью ubetbootin залил не флешку, и установил. Во время установки жесткий диск определился верно, как /dev/sda, а флешка как sdb.
Тему можно закрывать)


Ставь [РЕШЕНО] и закроем, какие вопросы-то…

8Gb/GTX750Ti 2Gb/AMD FX(tm)-4300 Quad-Core Processor/HDD 1Tb Toshiba DT01ACA100


Пока не закрыли. Скачал свежий debian-testing-i386-DVD-1.iso та же ошибка. Это свойственно всем дистрибутивам, или тестинговой сборке? Если скачаю DVD stable с него груб встанет? Ставил все с  оптических дисков. винт сата в режиме асчи, или как там его кличут.


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 chrooting 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 the unable 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.

Forum rules
There are no such things as «stupid» questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help. Topics in this forum are automatically closed 6 months after creation.

ParaDice

Level 4
Level 4
Posts: 210
Joined: Sat Aug 27, 2016 6:38 am
Location: Germany

[SOLVED] Installer fails: ‘grub-install /dev/sda failed’

I’m trying to do a fresh install of LM 20, but it keeps failing with the error: ‘grub-install /dev/sda failed’.

I’m pretty sure it’s because I’ve zero experience with EFI installs. I’d love to install without an EFI partition, but Mint won’t let me. Can someone help me figure out either
a) how to run the installer without EFI or
b) get the installer to install grub with EFI?

I’ve attached my setup as a screenshot. Notes:
* I use the «Something else» option because I have moved my /home folder to a separate encrypted partition.
* The NTFS partitions are used by a Win dual boot.

Attachments
Screenshot from 2020-08-05 20-01-08.png

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.

To get help, always post your system configuration. Open a terminal (Ctrl + Alt + T), type the following command and copy its output: inxi -Fxxxrz. To preserve formatting, please make sure to post it inside [ code] [/ code] blocks.

ParaDice

Level 4
Level 4
Posts: 210
Joined: Sat Aug 27, 2016 6:38 am
Location: Germany

Re: Installer fails: ‘grub-install /dev/sda failed’

Post

by ParaDice » Thu Aug 06, 2020 1:58 am

Hi there,

thanks for your reply! Your assumption is correct: I used to install in non-UEFI mode (MBR), but now I cannot seem to get Mint to live-boot into MBR mode. The BIOS is set to boot in legacy mode.

Here are my specs and partition details:

inxi -Fxz

Code: Select all

System:
  Kernel: 5.4.0-26-generic x86_64 bits: 64 compiler: gcc v: 9.3.0 
  Desktop: Cinnamon 4.6.6 Distro: Linux Mint 20 Ulyana 
  base: Ubuntu 20.04 focal 
Machine:
  Type: Desktop Mobo: ASRock model: B450M Pro4 serial: <filter> 
  UEFI: American Megatrends v: P3.90 date: 12/09/2019 
Battery:
  Device-1: hidpp_battery_0 model: Logitech Wireless Mouse MX Master 3 
  charge: 55% (should be ignored) status: Discharging 
CPU:
  Topology: 6-Core model: AMD Ryzen 5 3600 bits: 64 type: MT MCP arch: Zen 
  L2 cache: 3072 KiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm 
  bogomips: 86239 
  Speed: 2196 MHz min/max: 2200/3600 MHz Core speeds (MHz): 1: 2195 2: 2196 
  3: 2196 4: 2195 5: 2196 6: 2195 7: 2193 8: 2195 9: 2195 10: 2196 11: 2195 
  12: 2195 
Graphics:
  Device-1: NVIDIA TU116 [GeForce GTX 1660 Ti] driver: nouveau v: kernel 
  bus ID: 06:00.0 
  Display: x11 server: X.Org 1.20.8 driver: modesetting unloaded: fbdev,vesa 
  resolution: 1920x1080~60Hz 
  OpenGL: renderer: llvmpipe (LLVM 9.0.1 128 bits) v: 3.3 Mesa 20.0.4 
  direct render: Yes 
Audio:
  Device-1: NVIDIA TU116 High Definition Audio driver: snd_hda_intel 
  v: kernel bus ID: 06:00.1 
  Device-2: AMD Starship/Matisse HD Audio vendor: ASRock 
  driver: snd_hda_intel v: kernel bus ID: 08:00.4 
  Sound Server: ALSA v: k5.4.0-26-generic 
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: ASRock driver: r8169 v: kernel port: f000 bus ID: 04:00.0 
  IF: enp4s0 state: up speed: 100 Mbps duplex: full mac: <filter> 
Drives:
  Local Storage: total: 2.28 TiB used: 1.26 TiB (55.1%) 
  ID-1: /dev/sda vendor: Samsung model: SSD 850 EVO 250GB size: 232.89 GiB 
  ID-2: /dev/sdb vendor: Seagate model: ST2000DM006-2DM164 size: 1.82 TiB 
  temp: 27 C 
  ID-3: /dev/sdc type: USB vendor: SanDisk model: Extreme Pro 
  size: 238.50 GiB 
Partition:
  ID-1: / size: 7.78 GiB used: 195.5 MiB (2.5%) fs: overlay source: ERR-102 
  ID-2: /var/log size: 231.93 GiB used: 67.5 MiB (0.0%) fs: ext4 
  dev: /dev/sdc3 
Sensors:
  System Temperatures: cpu: 56.6 C mobo: N/A gpu: nouveau temp: 32 C 
  Fan Speeds (RPM): N/A gpu: nouveau fan: 585 
Info:
  Processes: 299 Uptime: 8m Memory: 15.56 GiB used: 1.44 GiB (9.2%) 
  Init: systemd runlevel: 5 Compilers: gcc: 9.3.0 Shell: bash v: 5.0.16 
  inxi: 3.0.38 

sudo parted —list

Code: Select all

Model: ATA Samsung SSD 850 (scsi)
Disk /dev/sda: 250GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End    Size    Type      File system  Flags
 1      1049kB  155GB  155GB   primary   ntfs
 2      155GB   250GB  95.2GB  extended
 5      155GB   155GB  499MB   logical   fat32        boot, esp
 6      155GB   250GB  94.7GB  logical   ext4


Model: ATA ST2000DM006-2DM1 (scsi)
Disk /dev/sdb: 2000GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size    Type      File system  Flags
 1      1049kB  419GB   419GB   primary   ntfs         boot
 2      419GB   2000GB  1581GB  extended
 5      419GB   2000GB  1581GB  logical


Warning: The driver descriptor says the physical block size is 2048 bytes, but
Linux says it is 512 bytes.
Ignore/Cancel? Ignore                                                     
Model: SanDisk Extreme Pro (scsi)
Disk /dev/sdc: 1024GB
Sector size (logical/physical): 2048B/512B
Partition Table: mac
Disk Flags: 

Number  Start  End     Size    File system  Name   Flags
 1      2048B  6143B   4096B                Apple
 2      332kB  4395kB  4063kB               EFI


Model: Linux device-mapper (crypt) (dm)
Disk /dev/mapper/sdb5_crypt: 1581GB
Sector size (logical/physical): 512B/4096B
Partition Table: loop
Disk Flags: 

Number  Start  End     Size    File system  Flags
 1      0.00B  1581GB  1581GB  ext4

To get help, always post your system configuration. Open a terminal (Ctrl + Alt + T), type the following command and copy its output: inxi -Fxxxrz. To preserve formatting, please make sure to post it inside [ code] [/ code] blocks.

linux-rox

Level 7
Level 7
Posts: 1886
Joined: Sun Jul 19, 2020 9:17 pm

Re: Installer fails: ‘grub-install /dev/sda failed’

Post

by linux-rox » Thu Aug 06, 2020 2:47 am

Don’t know the particulars for American Megatrends, but generally there are two ways to fix this. One is to switch the firmware to legacy mode and/or enable CSM, the other is to boot only a particular session in legacy/BIOS mode. The first often is accessed with something like F2 and the second with something like F12. For the latter, there will be a list of boot options, with the USB drive listed twice. Often one has a description and the other does not. If one says UEFI, the other is legacy boot; or vice versa.

Once you’ve found what you think if legacy boot, confirm by running inxi again. See under Machine where it says «UEFI.» You’re looking for «UEFI (legacy).» Give it a shot and let us know how it goes.

ParaDice

Level 4
Level 4
Posts: 210
Joined: Sat Aug 27, 2016 6:38 am
Location: Germany

Re: Installer fails: ‘grub-install /dev/sda failed’

Post

by ParaDice » Thu Aug 06, 2020 4:13 am

linux-rox wrote: ↑

Thu Aug 06, 2020 2:47 am

there will be a list of boot options, with the USB drive listed twice. Often one has a description and the other does not. If one says UEFI, the other is legacy boot; or vice versa.

Of course! I had completely forgotten that I need to set the USB stick to boot into legacy mode in the BIOS! It was still set to UEFI boot in the boot options.
Head —> desk
Great hint! I’m writing this from a fresh installation of LM 20. Thank you. :)

To get help, always post your system configuration. Open a terminal (Ctrl + Alt + T), type the following command and copy its output: inxi -Fxxxrz. To preserve formatting, please make sure to post it inside [ code] [/ code] blocks.

Понравилась статья? Поделить с друзьями:
  • Не удалось выполнить запрос cors как исправить
  • Не удалось выполнить загрузку код ошибки 0x800c0019 net framework
  • Не удалось выполнить загрузку код ошибки 0x800c0006 net framework виндовс 7
  • Не удалось выполнить доставку следующим получателям или группам как исправить
  • Не удалось выполнить вызов dllregisterserver код ошибки 0x8002801c