<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=2175&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / How to install Devuan in BTRFS partition with subvolumes @ and @home ?]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=2175</link>
		<description><![CDATA[The most recent posts in How to install Devuan in BTRFS partition with subvolumes @ and @home ?.]]></description>
		<lastBuildDate>Sun, 10 May 2020 10:45:49 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: How to install Devuan in BTRFS partition with subvolumes @ and @home ?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=21597#p21597</link>
			<description><![CDATA[<div class="quotebox"><cite>waynedpj wrote:</cite><blockquote><div><p>...</p></div></blockquote></div><p>Cool. My instructions were for making an entirely new install, I have not yet concerned myself with multiple distros on same btrfs (outside LXC).</p><p>If the installer does not let you proceed without creating anything on disk, then my first reaction would be to give it a USB stick or another disk (easy with qemu) to play on. Then change /target before starting installation.</p>]]></description>
			<author><![CDATA[dummy@example.com (specing)]]></author>
			<pubDate>Sun, 10 May 2020 10:45:49 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=21597#p21597</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to install Devuan in BTRFS partition with subvolumes @ and @home ?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=19579#p19579</link>
			<description><![CDATA[<div class="quotebox"><blockquote><div><p>unfortunately thus far with the refractainstaller it seems like something GRUB-related is not working as it is not opening the encrypted partition and finding the initramfs even though it accesses the encrypted /boot (details <a href="https://dev1galaxy.org/viewtopic.php?pid=19493#p19493" rel="nofollow">https://dev1galaxy.org/viewtopic.php?pid=19493#p19493</a>).</p></div></blockquote></div><p>just to update this thread: i was able to get Devuan installed to my existing encrypted partition with Btrfs subvolumes, details in my thread <a href="https://dev1galaxy.org/viewtopic.php?pid=19578#p19578" rel="nofollow">https://dev1galaxy.org/viewtopic.php?pid=19578#p19578</a>.&#160; thanks again for the help here.</p><p>peace, w</p>]]></description>
			<author><![CDATA[dummy@example.com (waynedpj)]]></author>
			<pubDate>Mon, 20 Jan 2020 18:34:18 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=19579#p19579</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to install Devuan in BTRFS partition with subvolumes @ and @home ?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=19494#p19494</link>
			<description><![CDATA[<div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>Yes, I use <a href="https://wiki.archlinux.org/index.php/Rsync#Full_system_backup" rel="nofollow">this method</a> to create a full backup then reverse the process when the subvolumes are created and mounted as desired.</p></div></blockquote></div><p>thanks, handy method, nice and simple.</p><div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><div class="quotebox"><cite>waynedpj wrote:</cite><blockquote><div><p>and i assume then update fstab, cryptab, and GRUB?</p></div></blockquote></div><p>I don&#039;t use encryption[1] so just the fstab and bootloader need correcting. I use a custom grub.cfg but grub-mkconfig can deal with subvolumes and appears to create a working configuration file.</p></div></blockquote></div><p>unfortunately thus far with the refractainstaller it seems like something GRUB-related is not working as it is not opening the encrypted partition and finding the initramfs even though it accesses the encrypted /boot (details <a href="https://dev1galaxy.org/viewtopic.php?pid=19493#p19493" rel="nofollow">https://dev1galaxy.org/viewtopic.php?pid=19493#p19493</a>).</p><div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>[1] I don&#039;t keep anything important on computers and in my country (the UK) I can go to jail if the Police want to see what&#039;s on it and I can&#039;t remember the password.</p></div></blockquote></div><p>i imagine that unfortunately this can happen in pretty much any country no matter what the law says <img src="https://dev1galaxy.org/img/smilies/wink.png" width="15" height="15" alt="wink" /></p><p>thanks again, w</p>]]></description>
			<author><![CDATA[dummy@example.com (waynedpj)]]></author>
			<pubDate>Wed, 15 Jan 2020 05:21:57 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=19494#p19494</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to install Devuan in BTRFS partition with subvolumes @ and @home ?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=19455#p19455</link>
			<description><![CDATA[<div class="quotebox"><cite>waynedpj wrote:</cite><blockquote><div><p>so you just rsync everything from / and /home to the respective subvolumes?</p></div></blockquote></div><p>Yes, I use <a href="https://wiki.archlinux.org/index.php/Rsync#Full_system_backup" rel="nofollow">this method</a> to create a full backup then reverse the process when the subvolumes are created and mounted as desired.</p><div class="quotebox"><cite>waynedpj wrote:</cite><blockquote><div><p>and i assume then update fstab, cryptab, and GRUB?</p></div></blockquote></div><p>I don&#039;t use encryption[1] so just the fstab and bootloader need correcting. I use a custom grub.cfg but grub-mkconfig can deal with subvolumes and appears to create a working configuration file.</p><p>[1] I don&#039;t keep anything important on computers and in my country (the UK) I can go to jail if the Police want to see what&#039;s on it and I can&#039;t remember the password.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Mon, 13 Jan 2020 15:44:33 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=19455#p19455</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to install Devuan in BTRFS partition with subvolumes @ and @home ?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=19454#p19454</link>
			<description><![CDATA[<div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><div class="quotebox"><cite>waynedpj wrote:</cite><blockquote><div><p>unfortunately in this HDD i do not have any extra partitions to which i can do a temp install.&#160; though can we install to an external USB partition?</p></div></blockquote></div><p>Install to the HDD and use the USB to hold the backup, that&#039;s what I do.</p></div></blockquote></div><p>thanks again, maybe i will end up having to do this if neither installer can be made to work with Btrfs subvolumes.&#160; so you just rsync everything from / and /home to the respective subvolumes?&#160; and i assume then update fstab, cryptab, and GRUB?</p><p>thanks, w</p>]]></description>
			<author><![CDATA[dummy@example.com (waynedpj)]]></author>
			<pubDate>Mon, 13 Jan 2020 15:39:16 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=19454#p19454</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to install Devuan in BTRFS partition with subvolumes @ and @home ?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=19426#p19426</link>
			<description><![CDATA[<div class="quotebox"><cite>waynedpj wrote:</cite><blockquote><div><p>unfortunately in this HDD i do not have any extra partitions to which i can do a temp install.&#160; though can we install to an external USB partition?</p></div></blockquote></div><p>Install to the HDD and use the USB to hold the backup, that&#039;s what I do.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Sun, 12 Jan 2020 11:15:30 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=19426#p19426</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to install Devuan in BTRFS partition with subvolumes @ and @home ?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=19419#p19419</link>
			<description><![CDATA[<div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>I just install a standard system, back it up then create the subvolume layout as desired and rsync the backup to the new layout.</p><p>The fstab and bootloader need correcting afterwards but it works:</p><div class="codebox"><pre><code>empty@E485:~ $ grep &#039;/ &#039; /proc/self/mounts                                               
/dev/nvme0n1p3 / btrfs rw,relatime,ssd,space_cache,subvolid=257,subvol=/debian 0 0
empty@E485:~ $</code></pre></div></div></blockquote></div><p>thank you, i was considering this too.&#160; however unfortunately in this HDD i do not have any extra partitions to which i can do a temp install.&#160; though can we install to an external USB partition?</p><p>also i am still hoping for something a little less convoluted <img src="https://dev1galaxy.org/img/smilies/wink.png" width="15" height="15" alt="wink" /></p><p>thanks again, w</p>]]></description>
			<author><![CDATA[dummy@example.com (waynedpj)]]></author>
			<pubDate>Sun, 12 Jan 2020 04:23:17 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=19419#p19419</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to install Devuan in BTRFS partition with subvolumes @ and @home ?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=19410#p19410</link>
			<description><![CDATA[<p>I just install a standard system, back it up then create the subvolume layout as desired and rsync the backup to the new layout.</p><p>The fstab and bootloader need correcting afterwards but it works:</p><div class="codebox"><pre><code>empty@E485:~ $ grep &#039;/ &#039; /proc/self/mounts                                               
/dev/nvme0n1p3 / btrfs rw,relatime,ssd,space_cache,subvolid=257,subvol=/debian 0 0
empty@E485:~ $</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Sat, 11 Jan 2020 20:21:44 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=19410#p19410</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to install Devuan in BTRFS partition with subvolumes @ and @home ?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=19403#p19403</link>
			<description><![CDATA[<p>ahoy specing,</p><p>&#160; thanks for the detailed tutorial on getting Btrfs+subvolumes installed.&#160; i am trying to use an existing Btrfs partition and subvolumes (described in more detail here <a href="https://dev1galaxy.org/viewtopic.php?pid=19401#p19401" rel="nofollow">https://dev1galaxy.org/viewtopic.php?pid=19401#p19401</a>) but am having problems with the step</p><div class="quotebox"><blockquote><div><p>Choose expert install, proceed up to and including partitioning. Finish partitioning normally, choosing luks,lvm,btrfs or whatever.</p></div></blockquote></div><p>when i get to the partitioning step in the netinst expert mode installer, i cannot find a way to select a root partition that allows that step to complete without (seemingly) the installer overwriting my Btrfs partition.&#160; my disk only has 2 partitions:</p><div class="codebox"><pre><code>/dev/sda1    GRUB BIOS boot partition (for booting GPT disk with BIOS)
/dev/sda2    LUKS1 dm encrypted Btrfs partition (remainder of disk)</code></pre></div><p>&#160; thus has something changed in the latest installer for ASCII stable 2.1 that changes your instructions?&#160; or am i missing some simple step implied in your tutorial (this is my first experience with the Debian/Devuan installer)?</p><p>thanks again for your help, w</p>]]></description>
			<author><![CDATA[dummy@example.com (waynedpj)]]></author>
			<pubDate>Sat, 11 Jan 2020 16:11:07 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=19403#p19403</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to install Devuan in BTRFS partition with subvolumes @ and @home ?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=14462#p14462</link>
			<description><![CDATA[<p>I don&#039;t like the @ naming convention for subvolumes as the @ has to be escaped in shell. Instead I give these directories the .subvol extension.</p><p>Choose expert install, proceed up to and including partitioning. Finish partitioning normally, choosing luks,lvm,btrfs or whatever. Then:<br />- go to another terminal (alt+f2)<br />- find the btrfs filesystem device in output of # mount&#160; &#160;(in my case it is at /dev/vg_devuan/main)<br />- # mkdir /tmp/target<br />- # cp -ar /target/* /tmp/target<br />- # umount /target<br />- (Add --mixed if device is under 5 GB or so) # mkfs.btrfs -f /dev/vg_devuan/main<br />- # mkdir /rv<br />- # mount -o noatime,compress=lzo,nossd,autodefrag,space_cache=v2 /dev/vg_devuan/main /rv<br />- # btrfs subvol create /rv/devuan/root.subvol<br />- # mount -o noatime,compress=lzo,nossd,autodefrag,subvol=/devuan/root.subvol /dev/path/to/btrfs/device /target<br />- # cp -ar /tmp/target/* /target<br />- (optional, if you are low on RAM) # rm -r /tmp/target</p><p>Now go back to the installer and proceed at the &quot;Install base system&quot; step.<br /><del><br />Disregard the above, it results in the &quot;Install base system&quot; hitting<br />&quot;Error: apt or in-target already running&quot; and I do not know how to resolve it.<br />So, just complete the install normally, without compression or subvolumes,<br />we&#039;ll deal with that later.<br /></del> This is does not happen any more.</p><p>Complete the install and reboot. When it reboots, login as root only and do the following:<br />- # mkdir /rv<br />Edit /etc/fstab, and change it to resemble the following (Note: the nossd flag is there because the ssd allocator has some issues on kernels &lt;4.15 or some such):</p><div class="codebox"><pre><code> /etc/fstab: static file system information.
#
# Use &#039;blkid&#039; to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# &lt;file system&gt;            &lt;mount point&gt;   &lt;type&gt;  &lt;options&gt;       &lt;dump&gt;  &lt;pass&gt;
/dev/mapper/vg_devuan-main /               btrfs   defaults,nossd,compress=lzo,noatime,subvol=/devuan/root.subvol 0 0
/dev/mapper/vg_devuan-main /home           btrfs   defaults,nossd,compress=lzo,noatime,subvol=/devuan/home.subvol 0 0
/dev/mapper/vg_devuan-main /rv             btrfs   defaults,nossd,compress=lzo,noatime,subvolid=5                 0 0

tmpfs                      /tmp            tmpfs   defaults                                                       0 0

/dev/sr0                   /media/cdrom0   udf,iso9660 user,noauto                                                0 0</code></pre></div><p>The /tmp line is optional.</p><p>- # mount /rv<br />- # btrfs subvol create /rv/devuan/home.subvol<br />- # cp -ar --reflink=always /rv/devuan/root.subvol/home/* /rv/devuan/home.subvol<br />Remember the --reflink=always parameter, it makes cp do a shallow copy on btrfs (same files underneath, copy on change). You might want to put that into bashrc as an alias: <span class="bbc">alias cpref=&quot;cp --reflink=always</span>.<br />- # rm -r /home/*<br />- # mount /home</p><p>Reboot for the new mount flags to take to effect. Now it should work as intended and the output of <span class="bbc"># mount</span>&#160; should reflect that.</p><p>EDIT 2020.05.10: Changed 16GB-&gt;5GB to be in line with btrfs recommendations. Added space_cache=v2. Changed rootfs.subvol to just root.subvol<br />Note: if you get stuck on the first boot, ctrl-c will unstuck it and land you at login. If you further cannot remount / rw, then also specify the device on the command line. Seems to happen if no lvm/luks is used, as the above reformat step will change UUID.</p><p>I will amend this post with further fixes, should any problems arise.</p>]]></description>
			<author><![CDATA[dummy@example.com (specing)]]></author>
			<pubDate>Tue, 19 Feb 2019 03:10:42 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=14462#p14462</guid>
		</item>
		<item>
			<title><![CDATA[How to install Devuan in BTRFS partition with subvolumes @ and @home ?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=10298#p10298</link>
			<description><![CDATA[<p>Hello, thanks for your time!</p><p>I want to install Devuan on a BTRFS partition with subvolumes &quot;@&quot; and &quot;@home&quot;<br />What are the steps? With which &quot;iso&quot;?</p><p>any ideas?</p>]]></description>
			<author><![CDATA[dummy@example.com (Cosque)]]></author>
			<pubDate>Thu, 21 Jun 2018 21:45:12 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=10298#p10298</guid>
		</item>
	</channel>
</rss>
