From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id YBx6IoX+vmLEEgAAbAwnHQ (envelope-from ) for ; Fri, 01 Jul 2022 16:02:45 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id YKt9IYX+vmJJbwEAG6o9tA (envelope-from ) for ; Fri, 01 Jul 2022 16:02:45 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 429E733D6E for ; Fri, 1 Jul 2022 16:02:45 +0200 (CEST) Received: from localhost ([::1]:46256 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o7HEK-0006Kw-CW for larch@yhetil.org; Fri, 01 Jul 2022 10:02:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33808) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o7H0Z-0004JM-5i for guix-devel@gnu.org; Fri, 01 Jul 2022 09:48:31 -0400 Received: from linode.us-core.com ([2600:3c01::f03c:93ff:fe26:6229]:41638) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o7H0U-0000GA-Gb for guix-devel@gnu.org; Fri, 01 Jul 2022 09:48:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=2017; bh=VAd1O9MlzTWOqzX MsTxrKXfT76aCC9IgudEoTZJBztk=; h=cc:to:subject:date:from:in-reply-to: references; d=lease-up.com; b=Co2NtfaBI6q/thCORn/vUX06C50QTX+yHPt2WPaV ZPLRmZTlw9xmN7L1G2oeAV16bGuAf82VN9LzGA7hqZSGRsK4DMopsmZS3zFKDfvmOaQX2T JseXQ+MGwz42HSQt9vgiuGIC25OxPwpVeWZ9EBsxLRTWsiDuZUlU+ebyyPBCM= Received: by localhost (OpenSMTPD) with ESMTPSA id 73796292 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO) for ; Fri, 1 Jul 2022 13:48:37 +0000 (UTC) Received: by mail-lf1-f51.google.com with SMTP id t19so3349058lfl.5 for ; Fri, 01 Jul 2022 06:48:22 -0700 (PDT) X-Gm-Message-State: AJIora+Y2IKzEfj701JwqXTrgYnrbFWmdYynPASrWECYBB4GjxyfrjD4 zLp10+gTkgJhxUgKSzPYtp0g/gJTus9i6FAgx34= X-Google-Smtp-Source: AGRyM1sLP3vCYLg6XPy5GuFye2KSwH6xStXJb4WTfS5U6wUvZJwr8fLbHxsEtVNv+thOy+i8UbenCdqZLBe1EpNtwiU= X-Received: by 2002:a05:6512:c0d:b0:481:7f5:589 with SMTP id z13-20020a0565120c0d00b0048107f50589mr9287007lfu.224.1656683300434; Fri, 01 Jul 2022 06:48:20 -0700 (PDT) MIME-Version: 1.0 References: <87tu81m5js.fsf@disroot.org> In-Reply-To: <87tu81m5js.fsf@disroot.org> Date: Fri, 1 Jul 2022 06:47:43 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: How to reinstall the bootloader without guix system reconfigure? To: Akib Azmain Turja Cc: Guix Devel Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2600:3c01::f03c:93ff:fe26:6229; envelope-from=felix.lechner@lease-up.com; helo=linode.us-core.com X-Spam_score_int: 16 X-Spam_score: 1.6 X-Spam_bar: + X-Spam_report: (1.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_SBL_CSS=3.335, RCVD_IN_XBL=0.375, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" Reply-to: Felix Lechner From: Felix Lechner via "Development of GNU Guix and the GNU System distribution." X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1656684165; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=/oLwApQRCyww+caPSJKm6YR1vc4mYYIHg9YymSFxis0=; b=NQegdQ2AuCLJwEQCJOWHtQtSTU8ge2+2m24CxQL1RevI5+XgFqghrWOz1O1QsNTJalGBqA IBymMYKd6NIXsiq0Q/MgmHk6BegTBttn+ymK+28jnya+vhchdn65b+kvn1iLJ9y/mLUy27 1906VOuIX4pDTEbAeRAGR8djA9ZGiR4TI0HtfPnlIFHWkm/boIzsBgvqgIPF826hSJt+Pr BObOzcNTh52EnRyAnMblDIzogCyN0DCbT00EkdfvwZsv2GIgrsOOWJvk+8AdQSL5TVFK+O mc4htWe42xC3EX/GNQZyJYJ4cXG7SsYkZgg45nsPxHzMbP6N5ySE985nrDHS4A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1656684165; a=rsa-sha256; cv=none; b=Gp7H9vhxWMSWLGBbSMLgdL+fg1ZIJ36iHZUJkxDxE4qceqBkO6Hg64rHCYmtnsHqMGqOUN LIrJzbNr9IAZ97sjqfInuo/YNNBaIUu3l2h1FzefizwYhRe+ZJgnk+hQ/sA3Vv15OmiXKr hlLndHWPxwsjiH0DxYJseMZpxko5WKl54/NyZ+577GNJEpNN2LlScsb7vWczla5Qz5u64x nQAABciA24CwXDSvNd/z9GYxcTattw+8Z5dqkSS5xtd67XXW6gDurejQKAgzP+N42abGn/ iqdk2NoYQG2/Uwnm+1FOgwhK0Sgf+h8epncqTkg3U+UhhsfP7s9zWs50fGikHQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lease-up.com header.s=2017 header.b=Co2NtfaB; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 1.75 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lease-up.com header.s=2017 header.b=Co2NtfaB; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 429E733D6E X-Spam-Score: 1.75 X-Migadu-Scanner: scn0.migadu.com X-TUID: kPbxeYVuXRX3 Hi Akib, On Fri, Jul 1, 2022 at 4:35 AM Akib Azmain Turja 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