<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://dev1galaxy.org/extern.php?action=feed&amp;tid=5144&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / [SOLVED] moving /-partition to LVM after installation (Devuan 4)]]></title>
		<link>http://dev1galaxy.org/viewtopic.php?id=5144</link>
		<description><![CDATA[The most recent posts in [SOLVED] moving /-partition to LVM after installation (Devuan 4).]]></description>
		<lastBuildDate>Sun, 29 Oct 2023 15:11:48 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: [SOLVED] moving /-partition to LVM after installation (Devuan 4)]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=45148#p45148</link>
			<description><![CDATA[<p>I shouldn&#039;t have marked this as solved. The problem with initrd still remains. With my new laptop the automagic of mkinitramfs didn&#039;t do it&#039;s job properly for some reason. I have to learn the hard way to do things with initrd.<br />This time no root on lvm but still.</p>]]></description>
			<author><![CDATA[dummy@example.com (nahkhiirmees)]]></author>
			<pubDate>Sun, 29 Oct 2023 15:11:48 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=45148#p45148</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] moving /-partition to LVM after installation (Devuan 4)]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=45137#p45137</link>
			<description><![CDATA[<p>Note to myself, over a year later:in chroot environment mkinitramfs is a better idea than update-initramfs.</p>]]></description>
			<author><![CDATA[dummy@example.com (nahkhiirmees)]]></author>
			<pubDate>Sat, 28 Oct 2023 17:34:09 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=45137#p45137</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] moving /-partition to LVM after installation (Devuan 4)]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=36833#p36833</link>
			<description><![CDATA[<p>Maybe that &quot;?id=2323&quot;-link was the &quot;trick&quot; i was looking for last sunday.<br />I&#039;ll have to try those &quot;askubuntu.com&quot; and &quot;ogris.de&quot;- links also. Managed to change the passphrases for partitions by using livecd.</p>]]></description>
			<author><![CDATA[dummy@example.com (nahkhiirmees)]]></author>
			<pubDate>Thu, 28 Jul 2022 16:01:46 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=36833#p36833</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] moving /-partition to LVM after installation (Devuan 4)]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=36831#p36831</link>
			<description><![CDATA[<p>I&#039;ve used refractainstaller to install to lvm. You have to use the cli version of the installer, not the gui. And you have to do a lot of the work manually, which you seem to be doing anyway. Maybe something in my Howto will help you.<br /><a href="https://dev1galaxy.org/viewtopic.php?id=2323" rel="nofollow">https://dev1galaxy.org/viewtopic.php?id=2323</a></p><p>One important change. The howto says that your logical volume names should end in a digit. I fixed the installer so that is no longer true. You can use all alpha characters in your /dev/mapper/names.</p>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Wed, 27 Jul 2022 19:40:39 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=36831#p36831</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] moving /-partition to LVM after installation (Devuan 4)]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=36829#p36829</link>
			<description><![CDATA[<div class="quotebox"><cite>Marjorie wrote:</cite><blockquote><div><p>Just checking. </p><p>Can you post the code for your <br /><strong>/etc/fstab</strong>, <br />the primary menuentry from<strong> /etc/boot/grub/grub.cfg</strong><br />the results of <strong>sudo blkid</strong><br />and the results of <strong>sudo fdisk -l</strong>?</p><p>I&#039;m wondering whether with your copying root partition contents around the UUID have got misaligned or you are using the wrong /dev/ (LVM vols. are usually on /dev/mapper/)</p></div></blockquote></div><p>During last weekend i tried more than once, to copy the contents of / to a logical volume(with cp -a , one directory at a time). And update initrd and GRUB menu. It is possible that something went wrong while copying or there were wrong UUIDs in grub.cfg for a while.&#160; But that&#039;s not the whole story. I noticed that new entries for new root were wrong in a sense that there weren&#039;t any lines for loading luks drivers. (Forgot to mention in 1st message that / partition and PV were &quot;inside&quot; luks.)</p><p>I suspect that initrd/initramfs doesn&#039;t activate LVM for some reason. Since i could make PV and VG and LVs after installation, the lvm2 package should be ok.</p>]]></description>
			<author><![CDATA[dummy@example.com (nahkhiirmees)]]></author>
			<pubDate>Wed, 27 Jul 2022 16:01:33 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=36829#p36829</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] moving /-partition to LVM after installation (Devuan 4)]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=36828#p36828</link>
			<description><![CDATA[<div class="quotebox"><cite>nahkhiirmees wrote:</cite><blockquote><div><p>I also ran into some problems while trying to provide the error messages and screenshots. The computer, where i tried this thing mentioned earlier it this topic, is an old laptop and there seems to be some kind of hardware problem which prevents me from entering the right passwords/passphrases. If i&#039;m lucky its just the keyboard that is broken. </p><p>Maybe i can try to reproduce the situation in my desktop, with a virtual machine.</p></div></blockquote></div><p>I thought that it would be easier to reproduce the situation(and take screenshots) in a virtual machine. Not necessarily. Either the installation disk(devuan chimaera live desktop) is scratched or there&#039;s a bug in VirtualBox. Managed to take some screenshots from the installation phase but how can i upload those? Or is there any website where i can upload pics without registering?</p><p>After installation phase things got complicated. Managed to change /boot partition from non-encrypted to encrypted(tar -c+umount /boot+cryptsetup luksFormat --type luks1+cryptsetup luksOpen+mke2fs+mount+tar -x+nano /etc/default/grub+update-grub+update-initramfs -u). And the virtual machine even booted after that.</p><p>Then i remembered, unfortunately,&#160; that i have to re-partition for that encrypted lvm partition. So install again from scratch into pre-existing vhd ... and then there were some previous entries in GRUB menu, none of the entries worked,&#160; new or old. So destroy the vm and create a new one&#160; -&gt; after the installation was done i got into GRUB menu , but after booting the default entry there were complaints about mdadm. Didn&#039;t get a chance to give passphrase for / partition. Next try to install and the vm didn&#039;t manage to get into GRUB phase.</p><p>Enough fighting for one day.</p><p>It is propably pointless to use luks on an old laptop which does not even have a working keyboard anymore.</p>]]></description>
			<author><![CDATA[dummy@example.com (nahkhiirmees)]]></author>
			<pubDate>Wed, 27 Jul 2022 15:33:24 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=36828#p36828</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] moving /-partition to LVM after installation (Devuan 4)]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=36821#p36821</link>
			<description><![CDATA[<p>Just checking. </p><p>Can you post the code for your <br /><strong>/etc/fstab</strong>, <br />the primary menuentry from<strong> /etc/boot/grub/grub.cfg</strong><br />the results of <strong>sudo blkid</strong><br />and the results of <strong>sudo fdisk -l</strong>?</p><p>I&#039;m wondering whether with your copying root partition contents around the UUID have got misaligned or you are using the wrong /dev/ (LVM vols. are usually on /dev/mapper/)</p>]]></description>
			<author><![CDATA[dummy@example.com (Marjorie)]]></author>
			<pubDate>Tue, 26 Jul 2022 13:01:47 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=36821#p36821</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] moving /-partition to LVM after installation (Devuan 4)]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=36805#p36805</link>
			<description><![CDATA[<p>Afaik, when you installed <span class="bbc">lvm2</span> it should have added itself to <span class="bbc">initrd</span>. Though my conjecture from your other notes is that you have the <em>lvm2</em> software installed some other way. Perhaps a package reinstallation would be an option?</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Mon, 25 Jul 2022 23:01:17 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=36805#p36805</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] moving /-partition to LVM after installation (Devuan 4)]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=36788#p36788</link>
			<description><![CDATA[<div class="quotebox"><cite>nahkhiirmees wrote:</cite><blockquote><div><p>If i have to guess, i should edit&#160; /etc/initramfs-tools/initramfs.conf or&#160; /etc/initramfs-tools/update-initramfs.conf or write a script under those subdirectories.<br />But what kind of options or scripts?</p></div></blockquote></div><p><a href="https://askubuntu.com/questions/551446/cant-find-lvm-root-dropped-back-to-initramfs" rel="nofollow">https://askubuntu.com/questions/551446/ … -initramfs</a><br /><a href="https://ogris.de/initramfs.lvm/" rel="nofollow">https://ogris.de/initramfs.lvm/</a><br /> maybe something like these are what i&#039;m looking for.</p>]]></description>
			<author><![CDATA[dummy@example.com (nahkhiirmees)]]></author>
			<pubDate>Mon, 25 Jul 2022 16:18:59 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=36788#p36788</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] moving /-partition to LVM after installation (Devuan 4)]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=36787#p36787</link>
			<description><![CDATA[<p>Of course i got some things mixed up last night. <br />The initrd that works, is aware of luks, not volume groups. It asks for passphrase, so after i give it, activating VG myvg should be possible. <br />So the problem is:how to modify initrd so that it activates myvg? </p><p>Ok, this question does not concern installation so much after message #2. Moderators can transfer it to another area.</p>]]></description>
			<author><![CDATA[dummy@example.com (nahkhiirmees)]]></author>
			<pubDate>Mon, 25 Jul 2022 16:10:02 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=36787#p36787</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] moving /-partition to LVM after installation (Devuan 4)]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=36781#p36781</link>
			<description><![CDATA[<p>I also ran into some problems while trying to provide the error messages and screenshots. The computer, where i tried this thing mentioned earlier it this topic, is an old laptop and there seems to be some kind of hardware problem which prevents me from entering the right passwords/passphrases. If i&#039;m lucky its just the keyboard that is broken. </p><p>Maybe i can try to reproduce the situation in my desktop, with a virtual machine.</p>]]></description>
			<author><![CDATA[dummy@example.com (nahkhiirmees)]]></author>
			<pubDate>Mon, 25 Jul 2022 11:22:43 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=36781#p36781</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] moving /-partition to LVM after installation (Devuan 4)]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=36780#p36780</link>
			<description><![CDATA[<p>Re-install seems to be the easy way out of this situation.<br />But it could also be very useful to know how to alter initrd in a way that enables it to mount root partition that lives on a volume group.<br />Last night i was too tired to figure out the right search term for Google.</p>]]></description>
			<author><![CDATA[dummy@example.com (nahkhiirmees)]]></author>
			<pubDate>Mon, 25 Jul 2022 11:15:59 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=36780#p36780</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] moving /-partition to LVM after installation (Devuan 4)]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=36773#p36773</link>
			<description><![CDATA[<p>Use the normal net-installer, not the live media for installation. Then you have the option of creating an LVM. I do this all the time for my encrypted installations.</p>]]></description>
			<author><![CDATA[dummy@example.com (rolfie)]]></author>
			<pubDate>Sun, 24 Jul 2022 20:27:29 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=36773#p36773</guid>
		</item>
		<item>
			<title><![CDATA[[SOLVED] moving /-partition to LVM after installation (Devuan 4)]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=36771#p36771</link>
			<description><![CDATA[<p>Years ago, when i was still using Debian, it was possible to install in a way that the /-partition was a logical volume under a volume group.<br />Lately i switched to Devuan and refractainstaller does not offer that &quot;root on LVM&quot;-option.</p><p>So i used a normal partition for / and later moved /home to a volume group that i made after the install.<br />And then i tried a) to copy contents of /-partition to another logical volume and b) make the boot process use logical volume as root partition(several times).<br />Part a) was easy:vgchange -a y+lvcreate+mkfs.ext4+cp -a .<br />But part b) was not. I wonder if it is possible?</p><p>In the /boot/grub/grub.cfg there is line &quot;vmlinuz root=/dev/myvg/newroot&quot;. <br />I know that i have to do something to initrd so that it sets up VG myvg before trying to mount the new root partition (/dev/myvg/newroot).<br />I think initrd is aware of lvm and it sets up myvg for swap and home. But how do i say that &quot;activate myvg earlier, before mounting /&quot; ?</p><p>Commands &quot;update-initramfs -u&quot; and &quot;update-grub&quot; haven&#039;t done what i wished. The new root mounted or not. Chrooting to new root part and giving the command from there has been done also. Still the new initrd cannot find /dev/myvg/newroot. <br />If i have to guess, i should edit&#160; /etc/initramfs-tools/initramfs.conf or&#160; /etc/initramfs-tools/update-initramfs.conf or write a script under those subdirectories.<br />But what kind of options or scripts?</p><p>Or is it easier to just re-install and try some kind of trick before refractainstaller installs GRUB?<br />Right now i&#039;m not using that computer but i can provide the error messages and stuff later,</p>]]></description>
			<author><![CDATA[dummy@example.com (nahkhiirmees)]]></author>
			<pubDate>Sun, 24 Jul 2022 20:11:33 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=36771#p36771</guid>
		</item>
	</channel>
</rss>
