From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 6BSfJ7Uxv2KRPAEAbAwnHQ (envelope-from ) for ; Fri, 01 Jul 2022 19:41:09 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id GKe1JrUxv2JFVwEAG6o9tA (envelope-from ) for ; Fri, 01 Jul 2022 19:41:09 +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 55C171366B for ; Fri, 1 Jul 2022 19:41:09 +0200 (CEST) Received: from localhost ([::1]:52102 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o7Kdg-0006Jm-0l for larch@yhetil.org; Fri, 01 Jul 2022 13:41:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37366) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o7Kd6-0006IS-36 for guix-devel@gnu.org; Fri, 01 Jul 2022 13:40:32 -0400 Received: from knopi.disroot.org ([178.21.23.139]:38606) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o7Kd4-0008Vp-Bm for guix-devel@gnu.org; Fri, 01 Jul 2022 13:40:31 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 47EB145A8A; Fri, 1 Jul 2022 19:40:29 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cWHalbGCJwl2; Fri, 1 Jul 2022 19:40:27 +0200 (CEST) From: Akib Azmain Turja DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1656697224; bh=Zd3IuDvxyFs5932EedFStMkRl77J77vVWwyYc67CvB8=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=Q69CeI2KsbSdn+evf9U8BKSNttojlakbmWyZS0IWJG78qwuWAcLwjf9tzceS2fxM0 w63f44YuhS9s6+QEdvSwgRwnCn3GphloEEp10HvXtuHrNV7Whm1JEyJOm/LDk08FZy 1dkIaDP7+rZLBbIcIYFkqu38kvDPZg56xKCOGhxj7r6TvhAxHYoADzBa2EOsORjKG+ HGJbjsEwW7XkSrxfU0wRc9MNALpbqq8HRtMgdDDdaSEnYHxAXgPJDCG07l26XOpZQW ILqDt6t51UOKAghM3W+lbMNSl62PY2N5d0XtsMGg3l2bnuT3uekIQPdafa5kjgzRA+ R+jh2ICDJ9hCw== To: Felix Lechner Cc: Guix Devel Subject: Re: How to reinstall the bootloader without guix system reconfigure? In-Reply-To: References: <87tu81m5js.fsf@disroot.org> Date: Fri, 01 Jul 2022 23:40:03 +0600 Message-ID: <875ykgbuks.fsf@disroot.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Received-SPF: pass client-ip=178.21.23.139; envelope-from=akib@disroot.org; helo=knopi.disroot.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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" 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=1656697269; h=from:from:sender:sender: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=j0OZEuKweh6zAxVTtla2v+HQivQ7Can3/RpayX3+TZI=; b=Exd+aI9cK9wTtqEvkDd/kMu+8CzcP62f//6nWRoFTFJGTNEUiVZBo07BUPd5rGAg9vm+/R 7aXmWOQmcQOGZWcwtqa6eTFzqRUcLgxzzsrca88Tsb+2Zb2KIC0HkBgtoQTA+V6gJTiR7K qjpyDjISVPYMdZFliBRAFcHygb/EOzlYFO9wSYbIxxLFvxzBrmRS/t6udJEd8VoRbbpnB9 ILFmPc12eW5iLd603fxkRmEGB8mWRcc6IKq33deMJHyGkPiNtTzTNKbnK+mpm58SOfP5Nm ZuAy9pCKGqY7MA/l8fh1k0hdPHnydVB2C5terQhQ0t3EzdV1Sdbo7Tv+6E8QYw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1656697269; a=rsa-sha256; cv=none; b=IaNeUKYlSG8KKLA+wbdWJhtSu9KZlXiM/xHvzPafaiV8J0bs/fZd8GxWmCaKmfHDacAyTS 6iz+O+pk61ygeHP+d7qNUaSZK9kd+FJPGDWlITlyLOYlSNDDGast5tcOdcsWA5vWjkOMyF TloOhYHcBizE+6jrFh+Slm1z1AZMX/uZY55mGiWdqMd9qjr4+GoNWslkc4Jl4aLbZtH/7j l9nK2c44vgKVIM7CS2h6an8hNzTTZZLId2iqRTCj2rpiLmhs+KygbJ8oE1vDPa8tURudas DaFi8fTy7vJLvnWPliGaVedEZmeWXL0oLxCHRFD33crqJgwlNXZBGwSxEVUhYg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=Q69CeI2K; dmarc=pass (policy=quarantine) header.from=disroot.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: -5.85 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=Q69CeI2K; dmarc=pass (policy=quarantine) header.from=disroot.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: 55C171366B X-Spam-Score: -5.85 X-Migadu-Scanner: scn0.migadu.com X-TUID: 8qLii7w7XAUn --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Felix Lechner writes: > 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. How did you know? I used to use Windows 10 even using a non-GPT (MBR maybe?) disk. And I still have that installed (though I don't use, not even once in a month), just configured to boot with EFI. > > 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. Both distrubtions have their own dedicate directory in ESP, so IMHO that shouldn't be a problem. And I have several OS installed simultaneously for several years, without any problem. > > 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. No. Not at all. > > Maybe there is an expert who can chime in. > > Thanks for using Guix! I would thank the Guix developer, who have developed such a wonderful OS, which (almost) never breaks. > > 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 =2D-=20 Akib Azmain Turja This message is signed by me with my GnuPG key. It's fingerprint is: 7001 8CE5 819F 17A3 BBA6 66AF E74F 0EFA 922A E7F5 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEyVTKmrtL6kNBe3FRVTX89U2IYWsFAmK/MXMACgkQVTX89U2I YWt1xQ//RAUSDLsNT/XhsTeu1czMzG97kF+/f5xoPQbSdQe7eJMqM3TtPf/8v8vi laVc5eVvbRpbZuTW3PxA1ZVc9gSoLpNvSLiqomA/2MKlcGIstLVXeeINogw5z9Et P6MdY2/p1IBHuItzn0ofis3aVXI//mIsLEXojNJnq03iskHPoJczicpdCjlMvyge cD2twN6FvUHGNn6bGsmqGzxDYTY+LJGjv0mTdkCnqo8XsLtB2Y3T8gwcvYhIbo21 AihRiudZXEv2t/qwHQH7HtKTCPBxcPwZqpasVP7S6pGAS+UF+6gptLaeaKOtVuek 7Z0Y+pzMyw1aAi5rx7E8R7H0oZMs1+EJ0zm/YZpewGI21IhK4o09D7a3DwVs7Fep W+EwiLsAUU7IG77kO0/8n5o86vyHSNs7Z1wxKEmlmTeLkuoG6mgsZz6UEhL2KXdh 0TGToL3YO4Sso77CxcWt4/gcYJm/nAWiWcMfBlphk+Qeob9o88mfyThfJjG5qhMt 3lJ6rBDNVtxxvoe/jSopOilwsggzvHwPDnIKSaXJJplFfvK0qDGrBTkkKe0XGcta +uwwurvSyP5/ldxbdZ25pbKRaGbfoiI77nAimD645/oqfzW6LT4HTTAu0a3ZyFDT PHKKiSRGtWz1DL9RRgHYOqb73kx1M2TyCkVsE45y+t2FZaAmuos= =Aaub -----END PGP SIGNATURE----- --=-=-=--