unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Joshua Branson <bransoj@hotmail.com>
Cc: "help-guix@gnu.org" <help-guix@gnu.org>
Subject: Re: Grub installation failed during the GuixSD's installation
Date: Fri, 28 Jul 2017 13:48:57 +0000	[thread overview]
Message-ID: <BN6PR10MB17291E19F19C459A5F6B7588A6BF0@BN6PR10MB1729.namprd10.prod.outlook.com> (raw)
In-Reply-To: <87lgn9lykb.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 3562 bytes --]

Hey Ivan,

It sounds like you are having trouble installing grub, when you are booting via UEFI.  I may be able to point you in the general right direction.  I just solved my issue booting via UEFI.

When I installed guixSD, the install went fine, but grub could not properly install itself.  I got this error message when grub tried to install:

grub-install: error: /gnu/store/ipwgwqaarp304r82…….-grub-efi-2.02/lib/grub/i386-pc/modinfo.sh doesn’t exist.  Please specify —target or —directory.


My problem was that my computer is set up to boot in UEFI, but I booted the guixSD system via legacy boot.  Since I booted the legacy way, grub tried to install itself in the legacy way, which won’t work if you already have UEFI set up.  I would recommend that you try to boot guixSD in the UEFI way.  When you are presented with boot options on the usbstick grub screen, look for something that says UEFI.  You’ll then need to mount your EFI partition on /mnt/boot/efi  (this is explained in the guixSD install manual).  Your EFI partition should be near a 500MB fat32 (also called vfat).  It’s probably your /dev/sda1, but double check to be sure.


If you’re not sure if you’re booting in UEFI or or legacy boot, check your partition table.   As root run “parted”.  Then press “p”.  If you see a 500MB fat32 (also called vfat) partition, (maybe a bit bigger, maybe a bit smaller), then you are probably booting via UEFI.  If you don’t see that partition table, then you are probably booting via legacy boot.


If you are booting via UEFI then, disable legacy boot in your BIOS.  (You can access your BIOS by pressing F10 or F12, depending on your machine, when your machine boots).  This will ensure that your computer will only boot in UEFI mode.

The other issue that I had was, when I tried to boot via UEFI from the usbstick, guixSD would not boot properly.  It would stop working about halfway through, and I’d get and error complaining about my radeon driver.  I fixed this by pressing “e” in the grub menu.  This lets you edit the current boot parameters.  I then added “nomodeset” to the linux command line.  Then guixSD booted fine.

I added to the kernel arguments in my config file:

--8<---------------cut here---------------start------------->8---
(operating-system
 …
 (kernel-arguments
  ‘("nomodeset"     ; Needed for using flashrom
    ))
…)
--8<---------------cut here---------------end--------------->8---


Good luck,

Joshua

P.S.  If you’re still confused about legacy boot vs. UEFI boot, try reading sections from the Arch wiki page:  https://wiki.archlinux.org/index.php/GRUB

The terminology you want to learn and understand is:

partition
filesystem
MBR  (master boot record)
GPT  (I forget what that stands for)
Legacy boot
UEFI boot
EFI partion




On Jul 28, 2017, at 5:07 AM, Ludovic Courtès <ludo@gnu.org<mailto:ludo@gnu.org>> wrote:

¡Hola!

Iván Hernández Cazorla <ivanhercaz@gmail.com<mailto:ivanhercaz@gmail.com>> skribis:

I init the process to install GuixSD, everything seems to be correct
during the process. But at the end it shows an error that says that
was impossible to install the grub. I understand that GuixSD was
installed correctly, but the grub not.

Did the error message have something to do with UEFI?  Are you
installing on a UEFI machine?

If you could provide us with the actual error message and the
GuixSD configuration file that you used, that would be great!

Thanks,
Ludo’.



[-- Attachment #2: Type: text/html, Size: 5891 bytes --]

  reply	other threads:[~2017-07-28 13:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-27 23:04 Grub installation failed during the GuixSD's installation Iván Hernández Cazorla
2017-07-28  9:07 ` Ludovic Courtès
2017-07-28 13:48   ` Joshua Branson [this message]
2017-07-28 15:21 ` Oleg Pykhalov
2017-07-28 20:48   ` Iván Hernández Cazorla
2017-07-28 20:56   ` Iván Hernández Cazorla

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BN6PR10MB17291E19F19C459A5F6B7588A6BF0@BN6PR10MB1729.namprd10.prod.outlook.com \
    --to=bransoj@hotmail.com \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).