unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Felix Lechner via "Development of GNU Guix and the GNU System distribution." <guix-devel@gnu.org>
To: Akib Azmain Turja <akib@disroot.org>
Cc: Guix Devel <guix-devel@gnu.org>
Subject: Re: How to reinstall the bootloader without guix system reconfigure?
Date: Fri, 1 Jul 2022 06:47:43 -0700	[thread overview]
Message-ID: <CAFHYt56iyAPEypyqX+SnsqduWGcF76cyJr-QLn9c=u7RxBWJ=w@mail.gmail.com> (raw)
In-Reply-To: <87tu81m5js.fsf@disroot.org>

Hi Akib,

On Fri, Jul 1, 2022 at 4:35 AM Akib Azmain Turja <akib@disroot.org> wrote:
>
> Fortunately, I have Ubuntu (yet another nonfree
> distribution) installed and it didn't broke, so used that to add that
> 100 GB to my Guix partition.  But I found that GRUB is still broken.
> Then I appended "/boot/grub/grub.cfg" of Guix to the same file of Ubuntu
> and managed to boot into Guix

Like Tobias, I cannot tell how Grub broke for you (although I do not
dispute that it did).

Grub needs to find a series of secondary files that, for EFI, are
stored on the ESP. [1] For a traditional MBR/BIOS install, people use
a small (1 MB or so) "BIOS Boot Partition" [2] although you probably
aren't using that because your Windoze would not be able to use GPT
without EFI. (Without GPT, Grub finds some place outside the partition
table.)

I think you are using EFI and an ESP.

You may be encountering the issue that both Ubuntu and Guix are trying
to manage the boot process. There is theoretically a way both Grub
installations could coexist on the ESP but I am not sure they do. I
personally would run Grub only in Ubuntu or Guix.

In your case. it may be hard to pick one over the other.

Ubuntu scans your hard drive for other operating systems, including
Winblows, but probably misses Guix. Guix on the other hand may
miss the other two but knows the exact paths needed to boot into your
most recent "Guix System" configuration.

> Is there any way to reinstall bootloader without the costly "guix system
> reconfigure"?

To reinstall in Guix, you may be able to run 'grub-install /dev/sdX'
but that does not stop the competition between Ubuntu and Guix. I may
also make it harder for you to boot into Ubuntu or Winnows.

> Another non-important question:  Why did Guix's GRUB broke while
> Ubuntu's GRUB survived?

I think they use the same folder on the ESP.

Maybe there is an expert who can chime in.

Thanks for using Guix!

Kind regards,
Felix Lechner

P.S. You can boot many systems manually from the Grub shell, but it
would be an extraordinary burden to type the full Guix paths for your
kernel and your initrd.

[1] https://en.wikipedia.org/wiki/EFI_system_partition
[2] https://en.wikipedia.org/wiki/BIOS_boot_partition


  parent reply	other threads:[~2022-07-01 14:02 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-01 11:32 How to reinstall the bootloader without guix system reconfigure? Akib Azmain Turja
2022-07-01 12:16 ` Tobias Geerinckx-Rice
2022-07-01 12:20   ` Tobias Geerinckx-Rice
2022-07-01 17:30   ` Akib Azmain Turja
2022-07-01 17:32     ` Akib Azmain Turja
2022-07-01 13:47 ` Felix Lechner via Development of GNU Guix and the GNU System distribution. [this message]
2022-07-01 17:40   ` Akib Azmain Turja

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='CAFHYt56iyAPEypyqX+SnsqduWGcF76cyJr-QLn9c=u7RxBWJ=w@mail.gmail.com' \
    --to=guix-devel@gnu.org \
    --cc=akib@disroot.org \
    --cc=felix.lechner@lease-up.com \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

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).