From unknown Fri Aug 15 03:56:27 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#27069 <27069@debbugs.gnu.org> To: bug#27069 <27069@debbugs.gnu.org> Subject: Status: LUKS partition ruined by guix init Reply-To: bug#27069 <27069@debbugs.gnu.org> Date: Fri, 15 Aug 2025 10:56:27 +0000 retitle 27069 LUKS partition ruined by guix init reassign 27069 guix submitter 27069 someone@selfhosted.xyz severity 27069 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Thu May 25 12:26:02 2017 Received: (at submit) by debbugs.gnu.org; 25 May 2017 16:26:03 +0000 Received: from localhost ([127.0.0.1]:37881 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dDvaM-0003oS-EZ for submit@debbugs.gnu.org; Thu, 25 May 2017 12:26:02 -0400 Received: from eggs.gnu.org ([208.118.235.92]:51003) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dDv9c-00036p-NS for submit@debbugs.gnu.org; Thu, 25 May 2017 11:58:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dDv9W-0006uO-QA for submit@debbugs.gnu.org; Thu, 25 May 2017 11:58:19 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:46352) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dDv9W-0006uK-Mz for submit@debbugs.gnu.org; Thu, 25 May 2017 11:58:18 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41964) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dDv9V-0000td-90 for bug-guix@gnu.org; Thu, 25 May 2017 11:58:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dDv9S-0006ts-6S for bug-guix@gnu.org; Thu, 25 May 2017 11:58:17 -0400 Received: from server0.selfhosted.xyz ([185.147.237.19]:37208) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dDv9R-0006rw-Nc for bug-guix@gnu.org; Thu, 25 May 2017 11:58:14 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) by server0.selfhosted.xyz (Postfix) with ESMTP id 494029E82 for ; Thu, 25 May 2017 17:57:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=selfhosted.xyz; s=dkim; t=1495727878; bh=S9nDUP6y79yNPOiotieREPoE1EJBe+iSfCwJXWOz7Cc=; h=Date:From:To:Subject; b=gLsF01VZN2OUFb9AHYf5B8ZxpKUNVrQw0gBbAR4LcST5v1gv0ganBcK6AtdKKmth9 7eU1IYQfadD2b0GGMyjxzPkt80kpWXWtvRkvCr2aX2urEZa7CothJCtPaoZ64zGzS6 hkLGEYiljoAUNSZDGQ2ZtK0ZQFtz85vvJVPqENnw7bhXrKiE6sTrJC2VSwt17HNBB4 StUge74CX2DjLRU8NNc70EuVqn5qsIlho38qSclARSxDk1AS0lt7NNB+dfvXM3GYRt qYyjerWN7DWFUfQhlzX8d8QC5aJVkFcuNnDnR9EPyKAu+ypX5dg+42NNpMBA3SrEGN sk6C3PjTNay5Q== X-Fuglu-Suspect: 7386e3711d5447b18582effac6c8f125 X-Fuglu-Spamstatus: NO Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: mail@selfhosted.xyz) by server0.selfhosted.xyz (Postfix) with ESMTPSA for ; Thu, 25 May 2017 17:57:47 +0200 (CEST) Date: Thu, 25 May 2017 17:53:42 +0200 (CEST) From: someone@selfhosted.xyz X-X-Sender: user1@localhost To: bug-guix@gnu.org Subject: LUKS partition ruined by guix init Message-ID: MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.1 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Thu, 25 May 2017 12:26:00 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.1 (----) Hi, I have several times over tried to install to a LUKS-partition with btrfs and failed but last time I almost had success. guix init command complained that the bios_grub flag wasn't set after many hours of compiling packages and therefore didn't install grub at first. I checked the partition with "cryptsetup luksUUID /dev/sda1" before rerunning guix init and it gives me the luksUUID so the partition seemed intact up to that point. However, after setting the bios_grub flag and rerunning guix init, the installation is successful but afterwards the cryptsetup luksUUID command says that the partition is not a valid luks device, so it seems like the GRUB installation part is what ruins the partition. From debbugs-submit-bounces@debbugs.gnu.org Thu May 25 12:41:40 2017 Received: (at 27069) by debbugs.gnu.org; 25 May 2017 16:41:40 +0000 Received: from localhost ([127.0.0.1]:37907 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dDvpT-000615-Pa for submit@debbugs.gnu.org; Thu, 25 May 2017 12:41:39 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:33829) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dDvpR-00060w-BI for 27069@debbugs.gnu.org; Thu, 25 May 2017 12:41:38 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 8D40F20CB6; Thu, 25 May 2017 12:41:36 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Thu, 25 May 2017 12:41:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc :x-sasl-enc; s=fm1; bh=Umub8j3fNKM8sf5HT2IOshFW5eF4XV6Yq0T8Ta/57 wA=; b=cHFw7Olox2H8v6JGTd4hWfpfN3/+xo6nR4OBoOOC52I42qhl1WPmB+Xj9 A5mbUtCjJKl3YboO3n9lBRMv3xdea+d75hpJ/S139BSHEE+Te3RTR/+GDUA/VoQR JbBU69sNMA/4z5ecW2qhv7O8Ra3yI770c1zTX0/UCLoxxyvEFxDyIJVtMULmhGEo lZxmeP9w2Tg7PKRMXikDjiE+6qs99DB1tdSOutQtuLL6NX1wxOAe025SUkscsqT7 fshmQpYhZvinQVHyeXRN0++Avwf3EYIIUeOY6rpIe3USuhw+eMKctA3MoTygyIh4 7KOwTWaeUyMFqROYhk103hM5mpOcA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=Umub8j3fNKM8sf5HT2 IOshFW5eF4XV6Yq0T8Ta/57wA=; b=N14lBEKdCae97/IE/77Vb2Ze8b1fFKZP2F +v98wqmLKOyEiVNYoT8SkfJWXnx81q03PlObrAbc4JX/jpfwblV4KMuF88t5JhSq a7o7ggKPrsQ1oxyis28U4zsD/yIDFF817XqtFzR2uzy1LtJ9BHKIqiiuHKeEnis3 kYgyNzFefQGYiR5ku8UkChVAc2eTAO1uVGrhWOzMp0INhDCmJ0/l2nKYcHhQGyAt lhll0HUs84kbgZhBz6ama2Z8uIPtFau+y2mG3fdRVlVL4qsvnA9HV76yyYvCKADI twtvYEekyig6jU7bt3Mi9jWxp60Nuiz3hC8/eRj7dCei1XR5w9lg== X-ME-Sender: X-Sasl-enc: 2SlZIv4dPjfWWYpeIfVPIwG884BgvIDH7n2jJQyjoBnL 1495730496 Received: from localhost (unknown [188.113.81.93]) by mail.messagingengine.com (Postfix) with ESMTPA id 2026A7E82A; Thu, 25 May 2017 12:41:36 -0400 (EDT) From: Marius Bakke To: someone@selfhosted.xyz, 27069@debbugs.gnu.org Subject: Re: bug#27069: LUKS partition ruined by guix init In-Reply-To: References: User-Agent: Notmuch/0.24.1 (https://notmuchmail.org) Emacs/25.2.1 (x86_64-unknown-linux-gnu) Date: Thu, 25 May 2017 18:41:34 +0200 Message-ID: <8737bsx51d.fsf@fastmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 27069 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --=-=-= Content-Type: text/plain someone@selfhosted.xyz writes: > Hi, > > I have several times over tried to install to a LUKS-partition with > btrfs and failed but last time I almost had success. guix init command > complained that the bios_grub flag wasn't set after many hours of > compiling packages and therefore didn't install grub at first. I > checked the partition with "cryptsetup luksUUID /dev/sda1" before > rerunning guix init and it gives me the luksUUID so the partition > seemed intact up to that point. However, after setting the bios_grub > flag and rerunning guix init, the installation is successful but > afterwards the cryptsetup luksUUID command says that the partition is > not a valid luks device, so it seems like the GRUB installation part > is what ruins the partition. What is your partition layout? The "bios_grub" partition must be a separate (typically tiny) partition with no other data on it. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAlknCT4ACgkQoqBt8qM6 VPozUAf8DeKdstgup++Gi6K9Uz5E8WnR7+flQ5jHwfAYm4H5SIaeFUnjGG/SiDFD 4K8jMN1iR7Ok9U8mRJCXZZHTyNeCdQtnMIsBwMIGwDWcM8bcYa25+1NU22YdE+Bf mklY9bo/9wBZ7w5X9FlbbxLnBHD4M/iPSq8aTfta6/k7dK3a7a242MrBMvkfsLxr PrXAh5/pwx2VXYQcu5NdGCLNq3dbkC23d1YVHNZneJbmDDr7HnUl1zluRVDyaT4u P7oMfrs43gEFEOu1x9n2o1L/dmmX+v0odVgHlKmWkC1AGcWDBjRh4F6cwK6BOZvp eZPBo8LZuIclLQLb7NpPUszSSUfaug== =rTNa -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Mon May 29 19:13:19 2017 Received: (at 27069) by debbugs.gnu.org; 29 May 2017 23:13:19 +0000 Received: from localhost ([127.0.0.1]:43912 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dFTqg-0005of-Qg for submit@debbugs.gnu.org; Mon, 29 May 2017 19:13:19 -0400 Received: from world.peace.net ([50.252.239.5]:56553) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dFTqf-0005oT-70 for 27069@debbugs.gnu.org; Mon, 29 May 2017 19:13:17 -0400 Received: from pool-72-93-28-22.bstnma.east.verizon.net ([72.93.28.22] helo=jojen) by world.peace.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dFTqA-0001H7-8Q; Mon, 29 May 2017 19:12:46 -0400 From: Mark H Weaver To: Marius Bakke Subject: Re: bug#27069: LUKS partition ruined by guix init References: <8737bsx51d.fsf@fastmail.com> Date: Mon, 29 May 2017 19:12:14 -0400 In-Reply-To: <8737bsx51d.fsf@fastmail.com> (Marius Bakke's message of "Thu, 25 May 2017 18:41:34 +0200") Message-ID: <87tw43z29d.fsf@netris.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 27069 Cc: 27069@debbugs.gnu.org, someone@selfhosted.xyz X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Marius Bakke writes: > someone@selfhosted.xyz writes: > >> Hi, >> >> I have several times over tried to install to a LUKS-partition with >> btrfs and failed but last time I almost had success. guix init command >> complained that the bios_grub flag wasn't set after many hours of >> compiling packages and therefore didn't install grub at first. I >> checked the partition with "cryptsetup luksUUID /dev/sda1" before >> rerunning guix init and it gives me the luksUUID so the partition >> seemed intact up to that point. However, after setting the bios_grub >> flag and rerunning guix init, the installation is successful but >> afterwards the cryptsetup luksUUID command says that the partition is >> not a valid luks device, so it seems like the GRUB installation part >> is what ruins the partition. > > What is your partition layout? The "bios_grub" partition must be a > separate (typically tiny) partition with no other data on it. FWIW, my current development system is GuixSD running with a LUKS-encrypted Btrfs root partition with GUID partition table. I don't remember encountering any difficulties during the install. Mark From debbugs-submit-bounces@debbugs.gnu.org Tue May 30 11:22:39 2017 Received: (at 27069-done) by debbugs.gnu.org; 30 May 2017 15:22:39 +0000 Received: from localhost ([127.0.0.1]:45446 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dFiyk-0000cM-Ra for submit@debbugs.gnu.org; Tue, 30 May 2017 11:22:39 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:33845) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dFiyj-0000cF-Dx for 27069-done@debbugs.gnu.org; Tue, 30 May 2017 11:22:37 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 4A0C020DA0; Tue, 30 May 2017 11:22:37 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Tue, 30 May 2017 11:22:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc :x-sasl-enc; s=fm1; bh=JndcwImVNG4vh+UdQrBVq6wH53iVwqDU5I659CPl4 u8=; b=1hR+tsci0Phz5/nO2xt/hR0wfDXva3/n2clJh3/PLsOnGgqxfSM5TCsnP l0bAmkQSVgWNMrhCHe3zBkbQblKWei9RtaEw+hs2eZOr8wALK1JW0NPElYge5L42 Sgc3hWz9tKQLa7VnpzO2erSV8hIW7dk4kB1jQ4q+92/vnTWPQuy2tOHTqE5s0BYj n04VQQ5QpEMA6SAJIYVyaGCy9GBhsVmd9AwNSoUPn0UjaxPMQsSqUiBKzfZtA94+ DBPpzGWGAMKO+fQ/q8hauAeJHMmvgd7vgQl0Vbr9zRbsOQ4TtKoZq1CC4LTadVF1 BgqViTAJJc7QjAcI17giVZTZSj44w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=JndcwImVNG4vh+UdQr BVq6wH53iVwqDU5I659CPl4u8=; b=gDtM6HW8/MLsLl/FD21iuhGNWK9AKXQSP1 di3D0YSMTA/rgKvGkZgBk7TgnGhym9ms7vEC3jtewtkzkwYQjqmc9JsqrHQuBucZ QaE6kAxk9Hh/3NRzy+L5hD6Wd7ivYYuavGVc7oITeZyW2iaAWeHNuyWfzrmkLQRK vNFxUm43XHPg+gNXC4xqJkIFgaKNFQ4nwi9KU7ORLeRgzn5/KNJRSWh9ojweGt9h XHt6t1iwRbGYTuzKWbZhJJ67fed77IbKC0u4x4AbFtHSYdxriaRjC7hcJvLOj+k6 Mc11Mia/JvhYSX0k7YbWgJ02LWCbTFU4CvUowwBpRjvQ3BMSIhUA== X-ME-Sender: X-Sasl-enc: FyVbrBBOZdviVWLIx0h406cBkuN4i/psxwkcsMAecJF2 1496157756 Received: from localhost (gw-itsjefen.trd.as44381.net [92.62.32.122]) by mail.messagingengine.com (Postfix) with ESMTPA id C0C1024871; Tue, 30 May 2017 11:22:36 -0400 (EDT) From: Marius Bakke To: Mark H Weaver Subject: Re: bug#27069: LUKS partition ruined by guix init In-Reply-To: <87tw43z29d.fsf@netris.org> References: <8737bsx51d.fsf@fastmail.com> <87tw43z29d.fsf@netris.org> User-Agent: Notmuch/0.24.1 (https://notmuchmail.org) Emacs/25.2.1 (x86_64-unknown-linux-gnu) Date: Tue, 30 May 2017 17:22:35 +0200 Message-ID: <87o9uae5dw.fsf@fastmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 27069-done Cc: 27069-done@debbugs.gnu.org, someone@selfhosted.xyz X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --=-=-= Content-Type: text/plain Mark H Weaver writes: > Marius Bakke writes: > >> someone@selfhosted.xyz writes: >> >>> Hi, >>> >>> I have several times over tried to install to a LUKS-partition with >>> btrfs and failed but last time I almost had success. guix init command >>> complained that the bios_grub flag wasn't set after many hours of >>> compiling packages and therefore didn't install grub at first. I >>> checked the partition with "cryptsetup luksUUID /dev/sda1" before >>> rerunning guix init and it gives me the luksUUID so the partition >>> seemed intact up to that point. However, after setting the bios_grub >>> flag and rerunning guix init, the installation is successful but >>> afterwards the cryptsetup luksUUID command says that the partition is >>> not a valid luks device, so it seems like the GRUB installation part >>> is what ruins the partition. >> >> What is your partition layout? The "bios_grub" partition must be a >> separate (typically tiny) partition with no other data on it. > > FWIW, my current development system is GuixSD running with a > LUKS-encrypted Btrfs root partition with GUID partition table. > I don't remember encountering any difficulties during the install. Interesting. Did you reserve some sectors before the first partition? Or do you have the root partition marked as "bios_grub", which is what seemingly wiped the LUKS headers here? --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAlktjjsACgkQoqBt8qM6 VPpn/wf+OVgxGO6osFu+7C5WgeJZjw29V9qG7wibG7jHKAp//tHs5Tgfj1DA1ybW 4hngvPx44Hla/x60lktHUJb/7ityimFRA+DG0FXdIha/yAae+posQaffzdZVussc 1P2/l401oXOQZY9jnyqdMfgWtXdaqvIA9E5YgKi02u2jQK0y3XnNXqAgp+gJC/W+ mh0rNh/zmSzrModyx1SM9p7DFVxe6eBgFhJbfIMNRCkYmNzPslBY9asgqAllpVAS ZiSuB0R9qkTI9Mq7druMZNsvT0J9dqF2BitFF34tzCvTbe8xEKkpxxJqS6MOnaK8 LGWOWdV0Gc/9hSbJbCcbGYw3Fu4eGw== =XRj1 -----END PGP SIGNATURE----- --=-=-=-- From unknown Fri Aug 15 03:56:27 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 28 Jun 2017 11:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator