You are not logged in.

#1 2016-09-17 23:40:50

bobadigo
Member
Registered: 2016-09-17
Posts: 34

[SOLVED] Problem with GRUB

Good morning.
I was installing Arch on an 250gb SSD. So i created 4 partitions: 512M EFI (vfat) (/dev/sda1), 150G linux filesystem (ext4) (/dev/sda2), 16G swap partition (/dev/sda4) and the, remaining (~70G) linux filesystem (ext4). I mounted the /dev/sda2 to /mnt, the /dev/sda1 to /mnt/boot, the /dev/sda3 to /mnt/home and simply turnet the swap on. After the first downloads, i entered Arch (always from USB). So i installed grub and efibootmgr, but when i tryed "grub-install —efi-directory=/boot", it returned "Installing for i386-pc platform. grub-install: error: install device isn't specified.". So I (scared), rebooted the PC, and (as expected, it didn't boot). So i run the USB again, mounted the partitions (swap included), and tryed "grub-install —target=x86_64-efi —efi-directory=/boot" (target because I'm running on a 64 bit machine), but this time, it returned "Could not prepare Boot variable: No such file or directory. Installation finished. No error reported". So i rebooted to test, and it didn't work again.
What can i do? Thanks

Last edited by bobadigo (2016-09-22 11:34:33)

Offline

#2 2016-09-18 00:34:47

basica
Member
From: Australia
Registered: 2012-10-31
Posts: 217

Re: [SOLVED] Problem with GRUB

It appears you didn't enter the command correctly. From the wiki:

# grub-install --target=x86_64-efi --efi-directory=esp --bootloader-id=grub

The commands you tried were:

grub-install —efi-directory=/boot
grub-install —target=x86_64-efi —efi-directory=/boot

Your second command was almost correct, but as you can see you're missing the bootloader ID part.

Last edited by basica (2016-09-18 00:36:03)

Offline

#3 2016-09-18 08:15:28

bobadigo
Member
Registered: 2016-09-17
Posts: 34

Re: [SOLVED] Problem with GRUB

I tryed right now:

# grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=grub
Installing for x86_64-efi platform.
Could not prepare Boot variabile: No such file or directory.
Installation finished. No error reported.

Same as yesterday..

P.S. I had installed windows 10 on a 500GB HDD. I tryed to remove it, but the problem persist

Last edited by bobadigo (2016-09-18 09:33:08)

Offline

#4 2016-09-18 09:53:13

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,680
Website

Re: [SOLVED] Problem with GRUB

bobadigo wrote:
Could not prepare Boot variabile: No such file or directory.

Are you booted in UEFI mode?

Are all of the other requirements for UEFI variable support satisfied?

https://wiki.archlinux.org/index.php/Un … le_support

If your motherboard is not accepting new NVRAM entries then you can try the default .efi loader location instead:

# grub-install --target=x86_64-efi --efi-directory=/boot --removable

http://www.rodsbooks.com/efi-bootloader … ive-naming

Note that "--bootloader-id=" is for convenience only wink

Offline

#5 2016-09-18 12:16:36

bobadigo
Member
Registered: 2016-09-17
Posts: 34

Re: [SOLVED] Problem with GRUB

I checked, and i am not running in EFI mode. I don't know it is possible, considering that i am using a z170 motherboard..
How can i boot using EFI mode?

Offline

#6 2016-09-18 12:27:08

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: [SOLVED] Problem with GRUB

Likely an option in your BIOS.  Each one is named differently though... google 'brand/model boot efi mode'


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#7 2016-09-18 12:36:48

bobadigo
Member
Registered: 2016-09-17
Posts: 34

Re: [SOLVED] Problem with GRUB

I disabled "Secure Boot"and "Storage Boot Option" to UEFI. Nothing, always the same.

EDIT

Ok, now I am in EFI mode. To do that, i went to "boot override" and selected "UEFI:USB" (first it was just "USB").
I try installing again, i will tell you how it goes.

EDIT

Installation succesfully done, that to all for the answers! smile

Last edited by bobadigo (2016-09-18 22:02:22)

Offline

Board footer

Powered by FluxBB