Linux mint ошибка grub

Linux Mint Forums

[SOLVED] Linux Mint 18.2 Cinnamon Installation error: Unable to install GRUB in /dev/sda1

Forum rules
Before you post please read how to get help. Topics in this forum are automatically closed 6 months after creation.

[SOLVED] Linux Mint 18.2 Cinnamon Installation error: Unable to install GRUB in /dev/sda1

Post by vnosikov » Sun Sep 10, 2017 5:07 pm

I am trying to install Linux Mint 18.2 to my laptop along with my preinstalled Windows 10. I was following this manual: viewtopic.php?t=163126. Each time installation first goes fine but then fails with a message: «Unable to install GRUB in /dev/sda1, Executing ‘grub-install /dev/sda1’ failed. This is a fatal error.»

I tried to google the solution, but unfortunately I still can’t successfully finish installation. I hope somebody here could help me and advise what to do. I am kinda motivated to install it, but at this point I have no idea how to proceed.

Some details about my situation:

I disabled Security mode. I burnt an iso to a flash-drive with Rufus. As far as I understand I am in a EFI mode.

ls /sys/firmware acpi dmi efi memmap 
sudo fdisk -l Disk /dev/loop0: 1.5 GiB, 1618886656 bytes, 3161888 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk /dev/sda: 238.5 GiB, 256060514304 bytes, 500118192 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: gpt Disk identifier: D03ADC4C-85E5-4CC0-93B1-48DC29C86E87 Device Start End Sectors Size Type /dev/sda1 2048 1026047 1024000 500M EFI System /dev/sda2 1026048 1288191 262144 128M Microsoft reserved /dev/sda3 1288192 376312973 375024782 178.8G Microsoft basic data /dev/sda4 481173504 482095103 921600 450M Windows recovery environment /dev/sda5 482095104 500117503 18022400 8.6G Windows recovery environment /dev/sda6 376313856 426645503 50331648 24G Linux filesystem /dev/sda7 426645504 476979199 50333696 24G Linux filesystem /dev/sda8 476979200 481173503 4194304 2G Linux swap Partition table entries are not in disk order. Disk /dev/sdb: 7.2 GiB, 7759462400 bytes, 15155200 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x0005046c 

During the installation I select «Something else» option, set sda6 as a root, sda7 as a home and set «Device for bootloader installation» as a sda1 (everything how it is said in a manual).

Thank you very much for your help.

Источник

Linux Mint Forums

Forum rules
Before you post please read how to get help. Topics in this forum are automatically closed 6 months after creation.

[SOLVED] GRUB Installation Failed

Post by Pretty Pixel » Sat Jul 08, 2017 10:04 am

Hello — I hope someone can help me. During the installation process of LM 18.2, a message displayed saying:

Читайте также:  Удалить папку рекурсивно линукс

«GRUB Installation Failed.
The ‘grub-efi-amd64-signed’ package failed to install into /target/. Without the GRUB boot loader, the installed system will not boot».

Upon exiting this message, another message displayed saying that the installer had crashed. I am now back on the Live CD LM desktop. Don’t know why GRUB did not install. Advice on how to proceed would be very helpful. Thank you.

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.

Re: GRUB Installation Failed

Post by michael louwe » Sat Jul 08, 2017 1:16 pm

Are you dual booting or single booting, using one hard-drive or two hard-drives.?
Which install method did you use, «Install LM alongside Windows» or «Something else» or «Erase disk and install LM».?

Please output inxi -Fxz or tell us your computer specs.

Re: GRUB Installation Failed

Post by Pretty Pixel » Sat Jul 08, 2017 1:28 pm

Hi — thank you for the reply.
I am dual booting alongside Windows 10, on one hard drive. For the installation type, I chose ‘something else’. I had already shrunk down my Windows partition whilst booted in Windows, so I was able to create the root partition 20GB, swap 4GB and /home 180GB. Then all seemed to go well with the installation until the messages I previously mentioned displayed. Whilst waiting for a reply on the forum, I shut down my laptop, booted into Windows and disabled fast startup. I then booted to the BIOS, where secure boot was already disabled. I also disabled fast startup from the BIOS.

I have now booted from the LM Live CD again. Again, I have chosen ‘something else’ as the installation type. I then deleted the root, swap and home partitons previously created, before creating them again and starting LM installation. However, installation seems to be sticking on ‘Saving installed packages’. Not sure what’s happening. Can you please advise on the best course of action?

Re: GRUB Installation Failed

Post by michael louwe » Sat Jul 08, 2017 1:42 pm

For some guidance, please refer to .
https://www.tecmint.com/install-linux-m . uefi-mode/ (note steps 17) or .
viewtopic.php?t=242796 (Acer and Asus computers may require the «Trusted EFI bootloader» setting)

viewtopic.php?f=42&t=163126 (dual-booting UEFI computers)
https://sites.google.com/site/easylinux . ct/windows
https://sites.google.com/site/easylinux . nt-install
viewtopic.php?f=42&t=122276 (manual partitioning)
.
.
Ensure that Secure Boot, Fast Boot, CSM in UEFI BIOS setup and Fast Startup in Win 10/8.1 are disabled and for the «Something else» install option, the «Device for boot loader installation» is the Windows EFI System Partition(= ESP = fat32/about 104MB) which is usually dev/sda1, or if unsuccessful select the whole disk, ie /sda.
. Also, ensure that the Live DVD is booted in UEFI mode.

Re: GRUB Installation Failed

Post by michael louwe » Sat Jul 08, 2017 1:47 pm

I think the LM Installer is trying to save packages from the previous install which you just deleted = no need to download the packages again. If so, just let the Installer does its thing.
. Or it may mean that the previous installed LM partitions were not properly deleted. Normally, after deletion of the partitions, you will be left with a new partition of free/unallocated space. Then you click on the free space to again manually partition the disk for the new LM install.

Читайте также:  Форматировать флешку linux exfat

Re: GRUB Installation Failed

Post by Pretty Pixel » Sat Jul 08, 2017 1:48 pm

Re: GRUB Installation Failed

Post by _klaypex » Sat Jul 08, 2017 1:54 pm

After update to 18.2 i got similar issue with GRUB fail.
I try to live boot from USB and update-grub can’t be done cos some ‘/cow’ issue. I didn’t write error’s and so.
Tried a manual method «mount —bind» and i got some other errors. Long story short i end up with fresh install of 18.2.

Is there any backup method for GRUB backup ?

Re: GRUB Installation Failed

Post by KBD47 » Sat Jul 08, 2017 2:29 pm

Pretty Pixel wrote: Hello — I hope someone can help me. During the installation process of LM 18.2, a message displayed saying:

«GRUB Installation Failed.
The ‘grub-efi-amd64-signed’ package failed to install into /target/. Without the GRUB boot loader, the installed system will not boot».

Upon exiting this message, another message displayed saying that the installer had crashed. I am now back on the Live CD LM desktop. Don’t know why GRUB did not install. Advice on how to proceed would be very helpful. Thank you.

Sounds like the same issue this guy had:
When the partitioning was done, it was crucial to remember to mark the boot flag for the first EFI boot partition before installation (the esp flag gets automatically marked as well), otherwise the install fails, like it did for me.
https://medium.com/@manujarvinen/settin . a1fcf8d502

Re: GRUB Installation Failed

Post by michael louwe » Sat Jul 08, 2017 2:30 pm

Fyi, a few months back with install of LM 18.1, it had to be done with the Internet disconnected because of this ‘grub-efi-amd64-signed’ error. This problem lasted only for a few weeks.

Re: GRUB Installation Failed

Post by Pretty Pixel » Sat Jul 08, 2017 4:34 pm

Hi again — The second installation also failed. I then booted from the Live CD again, started the installation process, selected ‘Something else’. On the ‘Installation type’ screen, I deleted the root, swap and home partitions, then re-created them. And I made sure the «Device for boot loader installation» was the Windows EFI System Partition. I had not set this previously. The installation was successful. Many thanks for your help

Re: GRUB Installation Failed

Post by KBD47 » Sat Jul 08, 2017 5:02 pm

Pretty Pixel wrote: Hi again — The second installation also failed. I then booted from the Live CD again, started the installation process, selected ‘Something else’. On the ‘Installation type’ screen, I deleted the root, swap and home partitions, then re-created them. And I made sure the «Device for boot loader installation» was the Windows EFI System Partition. I had not set this previously. The installation was successful. Many thanks for your help

Re: [SOLVED] GRUB Installation Failed

Post by lopotun » Sun Dec 17, 2017 4:03 am

I faced the same problem when I installed Mint 18.3 from LiveCD alongside with Windows 10. The installation failed when it tried to put grub on /dev/sda (in my case).
I put attention that:
[*] When installation is running from a LiveCD session then no disk drives (/dev/sda, /dev/sdb etc) available. I believe that this is the main reason for grub installation failure.
[*] If I run GParted from a LiveCD session I see the same effect: /dev/sda, /dev/sdb etc become unavailable. However, when I exit GParted, the devices become available again .

Читайте также:  Linux определение подключенных устройств

So, my steps were:
[*] Run Mint installation from within LiveCD session => disk devices become unavailable.
[*] While the installation is running, run GParted and wait while GParted accesses disk devices list => disk devices are still unavailable.
[*] Quit Gparted => disk devices become available!
[*] By the end of Mint installation it tries to install grub on /dev/sda and. voila! Installation completed successfully!

I spent a couple of hours to find this solution.Hope, will help

Re: [SOLVED — possibly] GRUB Installation Failed

Post by nashjc » Mon Feb 19, 2018 2:51 pm

I tried this on a Dell Inspiron 3000 11.6″ and still got grub installation failure. So the «solution» may be for some systems and not others.

I’m now trying turning off secure boot.

Источник

Не могу установить Linux Mint через USB (ошибка grub-install), как исправить?

В конце установки на чистый HDD (выбираю пункт Стереть Windows) появляется окошко: «Не удалось выполнить команду ‘grub-install /dev/sda’. Это неисправимая ошибка». После этого окошка никакие действия не помогают даже рестарт компа сделать. При выборе других пунктов — та же история. Помогите. Устанавливаю с флешки, всё по гайдам, но в гайдах нет такой проблемы, а у меня есть =)

Простой 9 комментариев

LenovoId

а что значит «на чистый HDD» но есть пункт «Стереть Windows» ?
чистый HDD это вообще чистый ,то есть на нём ни чего нету

danovoselov

LenovoId

Дмитрий Новоселов, это не чистый , а с виндой , но в любом случае Mint устанавливается вообще легко , к сожалению я не могу показать это — так как не рядом . записывали образ через что ?

danovoselov

Через Rufus, гайд взят отсюда: https://elementary.io/ru/docs/installation#creatin. (в выборе ос выбор винды, там гайд по руфусу)

LenovoId

danovoselov

Максим Ленский, ну вот на работе я с линукса сижу, дома не могу установить. Когда-то давно я ставил elementary os домой, была та же ошибка, когда выбирал пункт «другое», но когда выбирал — стереть windows, elementary os устанавливалась. На работе стоит mint, правда старенький, ещё 17.3 Rose, и ставил тоже я его на рабочую машину — проблем не было. Всё гладко. такое ощущение, что дома с винтом что-то. хз

LenovoId

Дмитрий Новоселов, в Лине запиши образ , у меня тоже комп хитрожопый . как я записал в Лине образ он установился без танцев с бубном

danovoselov

danovoselov

Решением оказалось вот что: На компе было 2 винта, один из них (главный/загрузочный) был с виндой, второй винт нужен был для установки Linux. При установке указывался второй винт для установки загрузчика, но тут я заметил, что второй винт маркируется как /dev/sdb, и при установке именно он указывается в качестве загрузчика, а первый винт маркируется как /dev/sda. При ошибке «Не удалось выполнить команду ‘grub-install /dev/sda‘. Это неисправимая ошибка» я вижу, что граб пытается залезть не в то место. подумал, что возможно в этом и кроется проблема.

Решение: Зашёл в Биос, переставил приоритет загрузки для винтов и поменял местами их в Boot, второй стал первым, первый стал вторым. Устанавливаю Linux Mint — вуаля! Всё работает. неожиданно, спрашивается зачем спрашивать в какой винт поставить загрузчик если grub это игнорирует и лезет в первый.

Источник

Оцените статью
Adblock
detector