You are not logged in.

#1 2014-11-05 18:06:50

tazik
Member
Registered: 2011-11-11
Posts: 36

grub install problem

Hi guys.
I installed Arch few weeks ago.suddenly I decided to install windows 8.1 dual boot with arch.after installed windows , arch didn't appear on boot menu.so I try to fix it.
I install again grub but I stuck in this level.

on running
# grub-install  /dev/sda

i get the output :

/usr/sbin/grub-bios-setup:  warning : this GPT partition label contains no  BIOS boot Partition; embedding wont be possible
/usr/sbin/grub-bios-setup:  warning : Embedding id not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged..
/usr/sbin/grub-bios-setup:  error : will not proceed with blocklists

what should i do now??

This is my windows partitions.
http://www.pasteall.org/pic/79360

Last edited by tazik (2014-11-05 18:07:43)

Offline

#2 2014-11-05 18:24:28

nskool
Member
Registered: 2014-10-09
Posts: 23

Re: grub install problem

Specifiy the target attribute and the efi directory attribute as well  ...refer the grub article in archwiki...
https://wiki.archlinux.org/index.php/GR … ion_method
Also make sure you've booted up in efi mode through bios and not as legacy bios..(although i really don't think it matters. Just write the grub-install command properly)

Last edited by nskool (2014-11-05 18:35:08)


I'm ready to learn anything good that you're ready to teach me:)

Offline

#3 2014-11-05 18:34:32

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: grub install problem

Not an Installation issue, moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2014-11-05 18:46:02

tazik
Member
Registered: 2011-11-11
Posts: 36

Re: grub install problem

nskool wrote:

Specifiy the target attribute and the efi directory attribute as well  ...refer the grub article in archwiki...
https://wiki.archlinux.org/index.php/GR … ion_method
Also make sure you've booted up in efi mode through bios and not as legacy bios..(although i really don't think it matters. Just write the grub-install command properly)

dude , I just use this :

mount /dev/sda5/ /mnt                 #sda5 is root
mount /dev/sda2 /mnt/boot/efi      #sda2 is EFI partition
# grub-install --target=x86_64-efi --efi-directory=$esp --bootloader-id=arch_grub --recheck --debug

Its enough ?

Offline

#5 2014-11-05 18:46:47

tazik
Member
Registered: 2011-11-11
Posts: 36

Re: grub install problem

jasonwryan wrote:

Not an Installation issue, moving to NC...

What does mean?

Offline

#6 2014-11-05 19:30:06

nskool
Member
Registered: 2014-10-09
Posts: 23

Re: grub install problem

tazik wrote:
nskool wrote:

Specifiy the target attribute and the efi directory attribute as well  ...refer the grub article in archwiki...
https://wiki.archlinux.org/index.php/GR … ion_method
Also make sure you've booted up in efi mode through bios and not as legacy bios..(although i really don't think it matters. Just write the grub-install command properly)

dude , I just use this :

mount /dev/sda5/ /mnt                 #sda5 is root
mount /dev/sda2 /mnt/boot/efi      #sda2 is EFI partition
# grub-install --target=x86_64-efi --efi-directory=$esp --bootloader-id=arch_grub --recheck --debug

Its enough ?

Yeah that should be enough... I don't understand? Have you tried it or not?

$esp is your efi mount point.... In this case $esp = /boot/efi
(assuming you've chrooted into /mnt)


I'm ready to learn anything good that you're ready to teach me:)

Offline

#7 2014-11-05 19:33:50

nskool
Member
Registered: 2014-10-09
Posts: 23

Re: grub install problem

tazik wrote:
jasonwryan wrote:

Not an Installation issue, moving to NC...

What does mean?

It's a comment by a moderator/admin... That this thread has been moved to NC.. Newbie Corner, as this is not an installation issue.


I'm ready to learn anything good that you're ready to teach me:)

Offline

#8 2014-11-05 20:43:01

tazik
Member
Registered: 2011-11-11
Posts: 36

Re: grub install problem

nskool wrote:
tazik wrote:
nskool wrote:

Specifiy the target attribute and the efi directory attribute as well  ...refer the grub article in archwiki...
https://wiki.archlinux.org/index.php/GR … ion_method
Also make sure you've booted up in efi mode through bios and not as legacy bios..(although i really don't think it matters. Just write the grub-install command properly)

dude , I just use this :

mount /dev/sda5/ /mnt                 #sda5 is root
mount /dev/sda2 /mnt/boot/efi      #sda2 is EFI partition
# grub-install --target=x86_64-efi --efi-directory=$esp --bootloader-id=arch_grub --recheck --debug

Its enough ?

Yeah that should be enough... I don't understand? Have you tried it or not?

$esp is your efi mount point.... In this case $esp = /boot/efi
(assuming you've chrooted into /mnt)

Dude i pass away of this but stuck here:

Efi variables not supported on this machine.

I leaved chroot and run this command :

Efivar-tester
Efi variables not supported on this machine.

Then

Modprobe efivars
modprobe:FATAL:module efivars not fond

What can I do?

Offline

#9 2014-11-06 12:36:03

nskool
Member
Registered: 2014-10-09
Posts: 23

Re: grub install problem

I don't know what should be done. Probably you've not properly booted into efi or something like that. Your Windows screenshot does show that you have an efi partition. Anyone can help here?


I'm ready to learn anything good that you're ready to teach me:)

Offline

#10 2014-11-07 09:27:20

tazik
Member
Registered: 2011-11-11
Posts: 36

Re: grub install problem

Anybody can't help me?what can i do?

Offline

#11 2014-11-07 09:31:49

clfarron4
Member
From: London, UK
Registered: 2013-06-28
Posts: 2,175
Website

Re: grub install problem

tazik wrote:

Then

Modprobe efivars
modprobe:FATAL:module efivars not fond

What can I do?

A little Google will take you a long way: https://unix.stackexchange.com/question … his-system

Also, there are [ code ] tags for code.

In addition, there's no need to endlessly bump. We will get back to you if we have anything.


Claire is fine.
Problems? I have dysgraphia, so clear and concise please.
My public GPG key for package signing
My x86_64 package repository

Offline

#12 2014-11-07 11:07:16

tazik
Member
Registered: 2011-11-11
Posts: 36

Re: grub install problem

clfarron4 wrote:
tazik wrote:

Then

Modprobe efivars
modprobe:FATAL:module efivars not fond

What can I do?

A little Google will take you a long way: https://unix.stackexchange.com/question … his-system

Also, there are [ code ] tags for code.

In addition, there's no need to endlessly bump. We will get back to you if we have anything.

buddy .I saw that link before and I know efivars kernel module was not loaded.
As I wrote above ,at firs I exited from chroot then I executed:

 modprobe efivars

but I got answer this error :

modprobe:FATAL:module efivars not fond

why?How can I load  efivars kernel module?

Offline

#13 2014-11-07 11:17:03

bstaletic
Member
Registered: 2014-02-02
Posts: 658

Re: grub install problem

Either you have not booted the install media in EFI (I'd bet on that) or your target drive is using MBR. If it's the latter just make it us GPT using gdisk. If it's the former simply reboot properly.

Offline

#14 2014-11-07 11:25:36

thearcherblog
Member
Registered: 2014-10-30
Posts: 165

Re: grub install problem

I'm not a Archlinux expert but... have you boot in EFI mode with your CD / USB?

Unless you do that you cannot install grub or any bootloader using EFI.

And, once you do that you need to create the partitions acordly (you need to have an special partition with ef00 filesystem, mkfs.fat -F32 /dev/sda1 (for example)).

Please, let us know how it goes. The best guide is the beguinners guide smile

Regards,


TheArcher

Offline

#15 2014-11-07 11:50:11

tazik
Member
Registered: 2011-11-11
Posts: 36

Re: grub install problem

thearcherblog wrote:

I'm not a Archlinux expert but... have you boot in EFI mode with your CD / USB?

Unless you do that you cannot install grub or any bootloader using EFI.

And, once you do that you need to create the partitions acordly (you need to have an special partition with ef00 filesystem, mkfs.fat -F32 /dev/sda1 (for example)).

Please, let us know how it goes. The best guide is the beguinners guide smile

Regards,


TheArcher

Yes ,I have booted in EFI mode with my USB.
look my windows partition:
http://www.pasteall.org/pic/79360

this is my Fdisk command and efivar-tester:
http://www.pasteall.org/pic/79454

there are 3 partition for my Windows :
1 - recovery partition = 300 mb
2- efi system = 100 mb
3 - C drive = 99 gb

Your Opinion is I create another Partition?If I do then you don't think that my windows doesn't start again?
I want repair my boot grub in this way:
at first I boot my system in  EFI USB mode.

2 = mount /dev/sda5 /mnt # sda5 is arch root
3 = mkdir -p /mnt/boot /efi
4 = mount /dev/sda2 /mnt/boot/efi  # sda2 is my EFI Windows partition
5 = genfstab -p /mnt >> /mnt/etc/fstab
6= arch-chroot /mnt
7 = mkinitcpio -p linux
8 = pacman -Syu grub efibootmgr
9 = grub-mkconfig -o /boot/grub/grub.cfg
10 = esp=/boot/efi
11 = grub-install --target=x86_64-efi --efi-directory=$esp --bootloader-id=arch_grub --recheck --debug

all Steps are correct?
then why i stuck here ?

Last edited by tazik (2014-11-07 12:06:20)

Offline

#16 2014-11-07 11:54:05

tazik
Member
Registered: 2011-11-11
Posts: 36

Re: grub install problem

bstaletic wrote:

Either you have not booted the install media in EFI (I'd bet on that) or your target drive is using MBR. If it's the latter just make it us GPT using gdisk. If it's the former simply reboot properly.

how can i see my target drive is using MBR?I installed windows 8.1
http://www.pasteall.org/pic/79360
according this picture I use efi partition.isn't it?
this is my Fdisk command and efivar-tester:
http://www.pasteall.org/pic/79454

Last edited by tazik (2014-11-07 12:06:31)

Offline

#17 2014-11-07 12:11:28

thearcherblog
Member
Registered: 2014-10-30
Posts: 165

Re: grub install problem

I'm quite sure you didn't boot using the UEFI mode, it's a little bit tricky sometimes but normally, when you press F11 (in my case) to choose boot you have two options for the device, one that said UEFI and the other that does not say anything...

If you boot with the UEFI one, the efivar command should show you a lot of variables output.

Regards,

TheArcher

Offline

#18 2014-11-07 12:23:46

bstaletic
Member
Registered: 2014-02-02
Posts: 658

Re: grub install problem

Check if you're booted in Efi mode by running "efivars -l". Stop using fdisk for efi installation. Fdisk is ment for MBR. Use gdisk which just implements EFI/GPT features in fdisk. gdisk will print whatever the drives use.

Offline

#19 2014-11-07 12:25:32

thearcherblog
Member
Registered: 2014-10-30
Posts: 165

Re: grub install problem

bstaletic wrote:

Check if you're booted in Efi mode by running "efivars -l". Stop using fdisk for efi installation. Fdisk is ment for MBR. Use gdisk which just implements EFI/GPT features in fdisk. gdisk will print whatever the drives use.

And use the Wiki guide: https://wiki.archlinux.org/index.php/be … oning_tool smile

Regards,


TheArcher

Offline

#20 2014-11-07 12:25:53

tazik
Member
Registered: 2011-11-11
Posts: 36

Re: grub install problem

thearcherblog wrote:

I'm quite sure you didn't boot using the UEFI mode, it's a little bit tricky sometimes but normally, when you press F11 (in my case) to choose boot you have two options for the device, one that said UEFI and the other that does not say anything...

If you boot with the UEFI one, the efivar command should show you a lot of variables output.

Regards,

TheArcher

I'm sure . Look
http://www.pasteall.org/pic/79456
http://www.pasteall.org/pic/79457
and then fdisk & efivat-tester & modprob efivars :
http://www.pasteall.org/pic/79458

Offline

#21 2014-11-07 12:29:43

thearcherblog
Member
Registered: 2014-10-30
Posts: 165

Re: grub install problem

Cool, then follow the guide that recommends you to use cgdisk instead of fdisk smile

Using cgdisk to create GPT partitions

Launch cgdisk with:

# cgdisk /dev/sda

Regards,


TheArcher

Offline

#22 2014-11-07 12:40:40

tazik
Member
Registered: 2011-11-11
Posts: 36

Re: grub install problem

thearcherblog wrote:

Cool, then follow the guide that recommends you to use cgdisk instead of fdisk smile

Using cgdisk to create GPT partitions

Launch cgdisk with:

# cgdisk /dev/sda

Regards,


TheArcher

dude Which partition should I change?

Offline

#23 2014-11-07 13:02:10

thearcherblog
Member
Registered: 2014-10-30
Posts: 165

Re: grub install problem

As I said, I'm not expert to be honest.

In my computer, that does not have Windows at all, I have:

/dev/sda1 -> 1000M with ef00 (boot)
/dev/sda2 -> 50G with 8300 (root)
/dev/sda3 -> 375G with 8300 (home)
/dev/sda4 -> 20G with 8200 (swap)

All created with cgdisk (needs to be cgdisk to create the GPT partitions)

So, after doing the installation I installed gummiboot replacing $esp with /boot and choosing Linux Boot System on my Bios

I just followed the beginners guide on the ArchWiki smile

I hope it helps smile


Regards,


TheArcher

Last edited by thearcherblog (2014-11-07 13:18:18)

Offline

#24 2014-11-07 13:10:31

bstaletic
Member
Registered: 2014-02-02
Posts: 658

Re: grub install problem

thearcherblog wrote:

<snip>
All created with cfdisk (needs to be cfdisk to create the GPT partitions)
<snip>

It's actually cgdisk, and doesn't have to be cgdisk. Cgdisk is just a gdisk with a curses interface. Iused gdisk and  it worked perfectly.

Offline

#25 2014-11-07 13:17:46

thearcherblog
Member
Registered: 2014-10-30
Posts: 165

Re: grub install problem

Cool then (sorry for the "f", too close on my keyboard XD)

Just mark the thread as solved editing your first post smile

Regards,


TheArcher

Offline

Board footer

Powered by FluxBB