<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[HyperForum — [Hyperbola 0.4]  full disk encryption]]></title>
		<link>https://forums.hyperbola.info/viewtopic.php?id=658</link>
		<atom:link href="https://forums.hyperbola.info/extern.php?action=feed&amp;tid=658&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in [Hyperbola 0.4]  full disk encryption.]]></description>
		<lastBuildDate>Sat, 08 Apr 2023 09:56:57 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: [Hyperbola 0.4]  full disk encryption]]></title>
			<link>https://forums.hyperbola.info/viewtopic.php?pid=6010#p6010</link>
			<description><![CDATA[<p>It took me a long time to find a solution so I&#039;ll share so someone else doesn&#039;t reinvent the wheel.<br />Thinkpad x220 installed libreboot 20230319 <br />grub_x220_8mb_libgfxinit_corebootfb_usqwerty.rom</p><p>System boots, asks for password then drops emergency shell with error<br />device &#039;/dev/mapper/matrix-rootvol&#039; not found</p><p>I tried many ways, and the solution turned out to be an entry in the /etc/default/grub file<br />GRUB_CMDLINE_LINUX=&quot;cryptdevice=/dev/sda1:lvm&quot;</p><p>by the way wiki entry<br />&quot;Be aware, when you add i915 into the uncommented modules line, that you remove these “ “ before you add i915, otherwise, it will not boot and will drop to a shell. When you install with full disk encryption, this is a requirement.&quot;</p><p>In my case it doesn&#039;t matter, it boots with &quot;&quot; as well as without.</p>]]></description>
			<author><![CDATA[null@example.com (maran)]]></author>
			<pubDate>Sat, 08 Apr 2023 09:56:57 +0000</pubDate>
			<guid>https://forums.hyperbola.info/viewtopic.php?pid=6010#p6010</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Hyperbola 0.4]  full disk encryption]]></title>
			<link>https://forums.hyperbola.info/viewtopic.php?pid=4612#p4612</link>
			<description><![CDATA[<div class="quotebox"><cite>gnu wrote:</cite><blockquote><p>UPDATE:<br />I have the same problem with Trsiquel 10 so I think is the old libreboot 2016 to have problems with the new systems.</p></blockquote></div><p>That is extremely likely, </p><p>old releases of libreboot probably don&#039;t get anywhere near as much support...</p><p>Btw, I wonder if the FSF/GNU priority list includes either A: getting people to work on a free bios like libreboot/osboot,</p><p>or B:&nbsp; forking libreboot and actually maintaining it.<br /><strong><br />I know what some want here, but its honestly better to have A PLAN, then NO PLAN!<br /></strong><br /><img src="https://forums.hyperbola.info/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (zapper)]]></author>
			<pubDate>Sat, 04 Jun 2022 08:22:24 +0000</pubDate>
			<guid>https://forums.hyperbola.info/viewtopic.php?pid=4612#p4612</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Hyperbola 0.4]  full disk encryption]]></title>
			<link>https://forums.hyperbola.info/viewtopic.php?pid=4604#p4604</link>
			<description><![CDATA[<p>UPDATE:<br />I have the same problem with Trsiquel 10 so I think is the old libreboot 2016 to have problems with the new systems.</p>]]></description>
			<author><![CDATA[null@example.com (gnu)]]></author>
			<pubDate>Thu, 02 Jun 2022 22:25:33 +0000</pubDate>
			<guid>https://forums.hyperbola.info/viewtopic.php?pid=4604#p4604</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Hyperbola 0.4]  full disk encryption]]></title>
			<link>https://forums.hyperbola.info/viewtopic.php?pid=4286#p4286</link>
			<description><![CDATA[<p>Yeah, seems to be the case, I think that thread has a possible solution on it, not sure if page 1 or 2...</p>]]></description>
			<author><![CDATA[null@example.com (zapper)]]></author>
			<pubDate>Sat, 02 Apr 2022 04:49:20 +0000</pubDate>
			<guid>https://forums.hyperbola.info/viewtopic.php?pid=4286#p4286</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Hyperbola 0.4]  full disk encryption]]></title>
			<link>https://forums.hyperbola.info/viewtopic.php?pid=4283#p4283</link>
			<description><![CDATA[<p>I had not read this:</p><p><a href="https://forums.hyperbola.info/viewtopic.php?pid=4091#p4091">https://forums.hyperbola.info/viewtopic … 4091#p4091</a></p><p>So it&#039;s not just my problem <br />Someone tried to install without LVM?</p>]]></description>
			<author><![CDATA[null@example.com (gnu)]]></author>
			<pubDate>Fri, 01 Apr 2022 12:05:11 +0000</pubDate>
			<guid>https://forums.hyperbola.info/viewtopic.php?pid=4283#p4283</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Hyperbola 0.4]  full disk encryption]]></title>
			<link>https://forums.hyperbola.info/viewtopic.php?pid=4279#p4279</link>
			<description><![CDATA[<div class="quotebox"><cite>gnu wrote:</cite><blockquote><p>This method still works?</p><div class="codebox"><pre><code>grub&gt; cryptomount -a
grub&gt; set root=&#039;lvm/matrix-rootvol&#039;
grub&gt; linux /boot/vmlinuz-linux-libre-lts root=/dev/matrix/rootvol cryptdevice=/dev/sda1:root
grub&gt; initrd /boot/initramfs-linux-libre-lts.img
grub&gt; boot</code></pre></div></blockquote></div><p>Btw, refer to Aether&#039;s reply near the bottom, I think he knows how to do this on Libreboot also.</p><p>The only thing that puzzles me, is that he seems to have the apostrophes between i915...</p><p>Dunno if that problem is gone, very peculiar if so.</p>]]></description>
			<author><![CDATA[null@example.com (zapper)]]></author>
			<pubDate>Thu, 31 Mar 2022 01:04:36 +0000</pubDate>
			<guid>https://forums.hyperbola.info/viewtopic.php?pid=4279#p4279</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Hyperbola 0.4]  full disk encryption]]></title>
			<link>https://forums.hyperbola.info/viewtopic.php?pid=4278#p4278</link>
			<description><![CDATA[<div class="quotebox"><cite>aether wrote:</cite><blockquote><p>It works 100%.<br />Here is my menuentry in grub.cfg (inside cbfs with coreboot 4.16) to start hyperbola.</p><div class="codebox"><pre><code>menuentry &#039;Load hyperbola&#039; {
        insmod ahci
        insmod part_msdos
        insmod part_gpt
        cryptomount -u 071b1886-44b1-4c52-8d18-53efdf96d74c
        set root=&quot;lvm/matrix-root&quot;
        echo  &#039;Loading vmlinuz-linux-libre-lts ...&#039;
        linux /boot/vmlinuz-linux-libre-lts \
        cryptdevice=UUID=071b1886-44b1-4c52-8d18-53efdf96d74c:root \
        cryptkey=rootfs:/etc/keys/ssd.key \
        root=UUID=bcea465c-b5ba-4df0-936d-04679c422904 \
        resume=UUID=9c3a41a5-672a-46bb-ac88-c70a5f1aba75 \
        keymap=de net.ifnames=0 biosdevname=0 acpi_osi=Linux

        echo  &#039;Loading initramfs-linux-libre-lts.img ...&#039;
        initrd /boot/initramfs-linux-libre-lts.img
        boot
}</code></pre></div><p>The keyfile is stored in : &#039;/etc/keys/ssd.key&#039; so &#039;cryptkey=rootfs:/etc/keys/ssd.key&#039; is used.<br />It will only asks your password one time at start (with grub in cbfs)</p><p>As usual, make sure that dmcrypt and lvm are added to boot runlevel.</p><div class="codebox"><pre><code>rc-update add dmcrypt boot
rc-update add lvm boot</code></pre></div><p>Modifications in /etc/mkiniticpio.conf<br /></p><div class="codebox"><pre><code>MODULES=&quot;i915&quot;
FILES=&quot;/etc/keys/ssd.key&quot;
HOOKS=&quot;base udev autodetect modconf block keyboard keymap consolefont encrypt lvm2 filesystems fsck shutdown&quot;
COMPRESSION=&quot;xz&quot;</code></pre></div><p>then..<br /></p><div class="codebox"><pre><code>mkinitcpio -p linux-libre-lts</code></pre></div></blockquote></div><br /><p>Interesting indeed! I do have one major question, this one would be consider mega hard to do probably, is it possible to make it so you can have multibooted full disk encryption?</p><p>Aka, if you have a few solid state drives around, a usb 3.1 connector, a device with coreboot and intel me disabled, that you want to do this on...</p><p>You know where I am going with this already, I assume... <img src="https://forums.hyperbola.info/img/smilies/wink.png" width="15" height="15" alt="wink" /></p><p>But yeah, is it possible to make it so when the screen comes up, you can choose between one given disk or another?</p><p>typo:</p><p>I had said partition here, but I meant, like /dev/sdb vs /dev/sda type thing.</p><p>hehe...</p><p>If you know that question, here&#039;s one that goes way beyond the first:</p><br /><p>The most insane question of all that I can think of regarding FDE + /boot encrypted... multiboot full disk encryption when you are having many different installations on one friggin SSD.&nbsp; This one is more or less of one I am not as interested in, I just asked it for the luls...</p><p>If you don&#039;t know the answer to either one, I will understand, but yeah lol...</p><p>I just wondered if anyone knows how to do either. </p><p>That being said,&nbsp; unless anyone knows either answer to the above, I won&#039;t even bother asking how to do it with coreboot/heads bios.</p><p>Heads is the bios that can make you feel like your chasing your&nbsp; own tail...</p><p><img src="https://forums.hyperbola.info/img/smilies/tongue.png" width="15" height="15" alt="tongue" /></p>]]></description>
			<author><![CDATA[null@example.com (zapper)]]></author>
			<pubDate>Thu, 31 Mar 2022 01:02:13 +0000</pubDate>
			<guid>https://forums.hyperbola.info/viewtopic.php?pid=4278#p4278</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Hyperbola 0.4]  full disk encryption]]></title>
			<link>https://forums.hyperbola.info/viewtopic.php?pid=4270#p4270</link>
			<description><![CDATA[<p>It works 100%.<br />Here is my menuentry in grub.cfg (inside cbfs with coreboot 4.16) to start hyperbola.</p><div class="codebox"><pre><code>menuentry &#039;Load hyperbola&#039; {
        insmod ahci
        insmod part_msdos
        insmod part_gpt
        cryptomount -u 071b188644b14c528d1853efdf96d74c
        set root=&quot;lvm/matrix-root&quot;
        echo  &#039;Loading vmlinuz-linux-libre-lts ...&#039;
        linux /boot/vmlinuz-linux-libre-lts \
        cryptdevice=UUID=071b1886-44b1-4c52-8d18-53efdf96d74c:root \
        cryptkey=rootfs:/etc/keys/ssd.key \
        root=UUID=bcea465c-b5ba-4df0-936d-04679c422904 \
        resume=UUID=9c3a41a5-672a-46bb-ac88-c70a5f1aba75 \
        keymap=de net.ifnames=0 biosdevname=0 acpi_osi=Linux

        echo  &#039;Loading initramfs-linux-libre-lts.img ...&#039;
        initrd /boot/initramfs-linux-libre-lts.img
        boot
}</code></pre></div><p>The keyfile is stored in : &#039;/etc/keys/ssd.key&#039; so &#039;cryptkey=rootfs:/etc/keys/ssd.key&#039; is used.<br />It will only asks your password one time at start (with grub in cbfs)</p><p>As usual, make sure that dmcrypt and lvm are added to boot runlevel.</p><div class="codebox"><pre><code>rc-update add dmcrypt boot
rc-update add lvm boot</code></pre></div><p>Modifications in /etc/mkiniticpio.conf<br /></p><div class="codebox"><pre><code>MODULES=&quot;i915&quot;
FILES=&quot;/etc/keys/ssd.key&quot;
HOOKS=&quot;base udev autodetect modconf block keyboard keymap consolefont encrypt lvm2 filesystems fsck shutdown&quot;
COMPRESSION=&quot;xz&quot;</code></pre></div><p>then..<br /></p><div class="codebox"><pre><code>mkinitcpio -p linux-libre-lts</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (aether)]]></author>
			<pubDate>Mon, 28 Mar 2022 16:44:47 +0000</pubDate>
			<guid>https://forums.hyperbola.info/viewtopic.php?pid=4270#p4270</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Hyperbola 0.4]  full disk encryption]]></title>
			<link>https://forums.hyperbola.info/viewtopic.php?pid=4257#p4257</link>
			<description><![CDATA[<div class="quotebox"><cite>gnu wrote:</cite><blockquote><div class="quotebox"><blockquote><p>Question, but did you remember to do this part of the guide?</p><p>&quot;Be aware, when you add i915 into the uncommented modules line, that you remove these “ “ before you add i915, otherwise, it will not boot and will drop to a shell. When you install with full disk encryption, this is a requirement.&quot;</p></blockquote></div><p>Yes, so I do<br /></p><div class="quotebox"><blockquote><p>And, also, is it the new iso, or the 0.3.1 iso?</p></blockquote></div><p>I tryied to install with the 0.4 iso</p><div class="quotebox"><blockquote><p>Actually question, can you show me what errors you ran into?</p></blockquote></div><div class="codebox"><pre><code>grub&gt; cryptomount -a
grub&gt; (OK)
        &gt; set root=&#039;lvm/matrix-rootvol&#039;
grub&gt; (OK)
grub&gt; linux /boot/vmlinuz-linux-libre-lts root=/dev/matrix/rootvol cryptdevice=/dev/sda1:root
grub&gt; &#039;lvm/matrix-rootvol&#039; not found  (something like that)</code></pre></div><p>the disc does not start</p></blockquote></div><p>Sorry for being majorly late to reply, let me see:</p><p>grub&gt; cryptomount -a<br />OK<br />grub&gt; set root=&#039;lvm/matrix-rootvol&#039;<br />OK<br />grub&gt; linux /boot/vmlinuz-linux-libre-lts root=/dev/matrix/rootvol cryptdevice=/dev/sda1:root<br />OK<br />grub&gt; initrd /boot/initramfs-linux-libre-lts.img<br />Not Done...<br />grub&gt; boot</p><p>Seems I was too quick to reply... </p><p><strong>Actually, I just realized, there is something else...</strong> </p><p><strong>I don&#039;t know the answer to this yet,</strong></p><p>Sorry, I thought I had figured it out, this will take more thought.</p><p>Did you add this issue to the issue tracker here:</p><p><a href="https://issues.hyperbola.info/">https://issues.hyperbola.info/</a></p><p>If you don&#039;t plan to let me know, so someone does this.</p><p>The only other way this could have gone wrong to be honest, is if you screwed up on the libreboot full disk encryption guide, which idk, how you did it or not, so its up in the air as far as I know.</p><p>Hmm, I looked back and forth a few times, this is clearly either A: a bug or B: something went wrong when you did FDE and you forgot.</p><p>I am going to guess its probably a bug.&nbsp; </p><p>Although, which version of the libreboot bios do you have, I forget, but I recall hearing Throgh say that this issue could be with the new testing, or the last stable, but I forget which. Also, there are two current testing releases of libreboot last I checked that are very recent, so this might be part of the situation.</p>]]></description>
			<author><![CDATA[null@example.com (zapper)]]></author>
			<pubDate>Fri, 25 Mar 2022 20:28:06 +0000</pubDate>
			<guid>https://forums.hyperbola.info/viewtopic.php?pid=4257#p4257</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Hyperbola 0.4]  full disk encryption]]></title>
			<link>https://forums.hyperbola.info/viewtopic.php?pid=4236#p4236</link>
			<description><![CDATA[<div class="quotebox"><blockquote><p>Question, but did you remember to do this part of the guide?</p><p>&quot;Be aware, when you add i915 into the uncommented modules line, that you remove these “ “ before you add i915, otherwise, it will not boot and will drop to a shell. When you install with full disk encryption, this is a requirement.&quot;</p></blockquote></div><p>Yes, so I do<br /></p><div class="quotebox"><blockquote><p>And, also, is it the new iso, or the 0.3.1 iso?</p></blockquote></div><p>I tryied to install with the 0.4 iso</p><div class="quotebox"><blockquote><p>Actually question, can you show me what errors you ran into?</p></blockquote></div><div class="codebox"><pre><code>grub&gt; cryptomount -a
grub&gt; (OK)
        &gt; set root=&#039;lvm/matrix-rootvol&#039;
grub&gt; (OK)
grub&gt; linux /boot/vmlinuz-linux-libre-lts root=/dev/matrix/rootvol cryptdevice=/dev/sda1:root
grub&gt; &#039;lvm/matrix-rootvol&#039; not found  (something like that)</code></pre></div><p>the disc does not start</p>]]></description>
			<author><![CDATA[null@example.com (gnu)]]></author>
			<pubDate>Tue, 22 Mar 2022 16:43:02 +0000</pubDate>
			<guid>https://forums.hyperbola.info/viewtopic.php?pid=4236#p4236</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Hyperbola 0.4]  full disk encryption]]></title>
			<link>https://forums.hyperbola.info/viewtopic.php?pid=4235#p4235</link>
			<description><![CDATA[<div class="quotebox"><cite>gnu wrote:</cite><blockquote><p>I&#039;ve tried to start a full encryption disc (it&#039;s a test disc not my main) in a<br />Libreboot X200 but it does not start. The error is always &#039;lvm/matrix-rootvol&#039;<br />NOT FOUND. I tried to change the paths of the &quot;lvm&quot; without success, The same<br />installation with HYP 0.3.1 worked perfectly. </p><div class="codebox"><pre><code>grub&gt; set root=&#039;lvm/matrix/rootvol&#039;
grub&gt; set root=/matrix/rootvol&#039;
etc.. etc..</code></pre></div><div class="codebox"><pre><code>grub&gt; linux /boot/vmlinuz-linux-libre-lts root=/dev/mapper/matrix-rootvol cryptdevice=/dev/sda1:root
etc.. etc..</code></pre></div><p><strong>libreboot version: 20160907</strong></p></blockquote></div><p>Question, but did you remember to do this part of the guide?</p><p>&quot;Be aware, when you add i915 into the uncommented modules line, that you remove these “ “ before you add i915, otherwise, it will not boot and will drop to a shell. When you install with full disk encryption, this is a requirement.&quot;</p><p><a href="https://wiki.hyperbola.info/doku.php?id=en:manual:encrypted_installation">https://wiki.hyperbola.info/doku.php?id … stallation</a></p><p>And, also, is it the new iso, or the 0.3.1 iso?</p><p>I&#039;ll see if someone can help you though.</p><br /><p>Actually question, can you show me what errors you ran into? </p><p>Otherwise, helping you will be even harder.</p>]]></description>
			<author><![CDATA[null@example.com (zapper)]]></author>
			<pubDate>Tue, 22 Mar 2022 16:06:55 +0000</pubDate>
			<guid>https://forums.hyperbola.info/viewtopic.php?pid=4235#p4235</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Hyperbola 0.4]  full disk encryption]]></title>
			<link>https://forums.hyperbola.info/viewtopic.php?pid=4234#p4234</link>
			<description><![CDATA[<p>I&#039;ve tried to start a full encryption disc (it&#039;s a test disc not my main) in a<br />Libreboot X200 but it does not start. The error is always &#039;lvm/matrix-rootvol&#039;<br />NOT FOUND. I tried to change the paths of the &quot;lvm&quot; without success, The same<br />installation with HYP 0.3.1 worked perfectly. </p><div class="codebox"><pre><code>grub&gt; set root=&#039;lvm/matrix/rootvol&#039;
grub&gt; set root=/matrix/rootvol&#039;
etc.. etc..</code></pre></div><div class="codebox"><pre><code>grub&gt; linux /boot/vmlinuz-linux-libre-lts root=/dev/mapper/matrix-rootvol cryptdevice=/dev/sda1:root
etc.. etc..</code></pre></div><p><strong>libreboot version: 20160907</strong></p>]]></description>
			<author><![CDATA[null@example.com (gnu)]]></author>
			<pubDate>Tue, 22 Mar 2022 11:51:32 +0000</pubDate>
			<guid>https://forums.hyperbola.info/viewtopic.php?pid=4234#p4234</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Hyperbola 0.4]  full disk encryption]]></title>
			<link>https://forums.hyperbola.info/viewtopic.php?pid=4233#p4233</link>
			<description><![CDATA[<div class="quotebox"><cite>gnu wrote:</cite><blockquote><p>This method still works?</p><div class="codebox"><pre><code>grub&gt; cryptomount -a
grub&gt; set root=&#039;lvm/matrix-rootvol&#039;
grub&gt; linux /boot/vmlinuz-linux-libre-lts root=/dev/matrix/rootvol cryptdevice=/dev/sda1:root
grub&gt; initrd /boot/initramfs-linux-libre-lts.img
grub&gt; boot</code></pre></div></blockquote></div><p>Good question, I got tired of using full disk encryption due to having to type in the same password twice. This happened back when it was 0.3, so I don&#039;t exactly know...</p><p>I cannot confirm at this time, but as long as you know what you are doing and have done this before, you should succeed.</p><p>This part is the easier part. The hard part comes when you want to no longer need to do that to boot your computer. </p><p>I hope it will go well for you.</p><p>Actually to clarify, I do use a form of FDE, but without /boot encrypted for the reasons above, but yeah as long as you follow the guide correctly, I think it will work.</p>]]></description>
			<author><![CDATA[null@example.com (zapper)]]></author>
			<pubDate>Tue, 22 Mar 2022 03:34:07 +0000</pubDate>
			<guid>https://forums.hyperbola.info/viewtopic.php?pid=4233#p4233</guid>
		</item>
		<item>
			<title><![CDATA[[Hyperbola 0.4]  full disk encryption]]></title>
			<link>https://forums.hyperbola.info/viewtopic.php?pid=4230#p4230</link>
			<description><![CDATA[<p>This method still works?</p><div class="codebox"><pre><code>grub&gt; cryptomount -a
grub&gt; set root=&#039;lvm/matrix-rootvol&#039;
grub&gt; linux /boot/vmlinuz-linux-libre-lts root=/dev/matrix/rootvol cryptdevice=/dev/sda1:root
grub&gt; initrd /boot/initramfs-linux-libre-lts.img
grub&gt; boot</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (gnu)]]></author>
			<pubDate>Mon, 21 Mar 2022 12:52:59 +0000</pubDate>
			<guid>https://forums.hyperbola.info/viewtopic.php?pid=4230#p4230</guid>
		</item>
	</channel>
</rss>
