<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Yoshibz</id>
	<title>Alpine Linux - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Yoshibz"/>
	<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/wiki/Special:Contributions/Yoshibz"/>
	<updated>2026-04-26T17:47:05Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Btrfs&amp;diff=21902</id>
		<title>Btrfs</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Btrfs&amp;diff=21902"/>
		<updated>2022-05-20T22:16:57Z</updated>

		<summary type="html">&lt;p&gt;Yoshibz: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Documentation how to use Btrfs on Alpine Linux.&lt;br /&gt;
&lt;br /&gt;
== Install ==&lt;br /&gt;
&lt;br /&gt;
Installing [https://wikipedia.org/wiki/Btrfs Btrfs] is relatively straight forward. Install the package and tell Alpine to load the module on startup:&lt;br /&gt;
&lt;br /&gt;
{{Cmd|apk add btrfs-progs&lt;br /&gt;
echo btrfs &amp;gt;&amp;gt; /etc/modules}}&lt;br /&gt;
&lt;br /&gt;
To load the module right away, you can use the following command:&lt;br /&gt;
&lt;br /&gt;
{{Cmd|modprobe btrfs}}&lt;br /&gt;
&lt;br /&gt;
== Mounting a volume ==&lt;br /&gt;
&lt;br /&gt;
To mount a volume on boot, add a new entry to your fstab:&lt;br /&gt;
&lt;br /&gt;
 UUID=abcdef-0055-4958-990f-1413ed1186ec  /var/data  btrfs   defaults,nofail,subvol=@  0  0&lt;br /&gt;
&lt;br /&gt;
If you use more specific mounting options like for example:&lt;br /&gt;
&lt;br /&gt;
 UUID=005f5994-f51c-4360-8c9b-589fa59ea6fc  /mnt/hddext  btrfs  nofail,rw,noatime,commit=64,nossd,autodefrag,compress=zstd:10  0 2&lt;br /&gt;
&lt;br /&gt;
do not forget to install additional dependencies. If you enabled on the fly compression you need to install zstd:&lt;br /&gt;
&lt;br /&gt;
 apk add zstd&lt;br /&gt;
&lt;br /&gt;
More information about mounting can be found in the official [https://btrfs.wiki.kernel.org/index.php/Main_Page Btrfs wiki]&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
=== Mount failed ===&lt;br /&gt;
&lt;br /&gt;
If you try mounting a Btrfs volume via your /etc/fstab and it doesn&#039;t show up, it could be because Btrfs does not know about the drives during boot.&lt;br /&gt;
&lt;br /&gt;
To work around this, you can create an OpenRC service that runs a &#039;&#039;btrfs scan&#039;&#039; to detect the drives. To do so, create a new service under /etc/init.d/btrfs-scan with the following content:&lt;br /&gt;
&lt;br /&gt;
 #!/sbin/openrc-run&lt;br /&gt;
 &lt;br /&gt;
 name=&amp;quot;btrfs-scan&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 depend() {&lt;br /&gt;
   before localmount&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 start() {&lt;br /&gt;
   /sbin/btrfs device scan&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Make the service executable and register it:&lt;br /&gt;
&lt;br /&gt;
{{Cmd|chmod +x /etc/init.d/btrfs-scan&lt;br /&gt;
rc-update add btrfs-scan boot&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
The volume should mount correctly after a reboot.&lt;br /&gt;
&lt;br /&gt;
== Other Resources ==&lt;br /&gt;
&lt;br /&gt;
# [https://garrit.xyz/posts/2021-12-31-btrfs-on-alpine BTRFS on Alpine Linux]&lt;br /&gt;
# [https://nparsons.uk/blog/using-btrfs-on-alpine-linux Using BTRFS on Alpine Linux]&lt;br /&gt;
# [https://gitlab-test.alpinelinux.org/alpine/aports/-/issues/9539 Can&#039;t mount BTRFS volume using fstab]&lt;/div&gt;</summary>
		<author><name>Yoshibz</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Btrfs&amp;diff=21901</id>
		<title>Btrfs</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Btrfs&amp;diff=21901"/>
		<updated>2022-05-20T22:12:55Z</updated>

		<summary type="html">&lt;p&gt;Yoshibz: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Documentation how to use Btrfs on Alpine Linux.&lt;br /&gt;
&lt;br /&gt;
== Install ==&lt;br /&gt;
&lt;br /&gt;
Installing [https://wikipedia.org/wiki/Btrfs Btrfs] is relatively straight forward. Install the package and tell Alpine to load the module on startup:&lt;br /&gt;
&lt;br /&gt;
{{Cmd|apk add btrfs-progs&lt;br /&gt;
echo btrfs &amp;gt;&amp;gt; /etc/modules}}&lt;br /&gt;
&lt;br /&gt;
To load the module right away, you can use the following command:&lt;br /&gt;
&lt;br /&gt;
{{Cmd|modprobe btrfs}}&lt;br /&gt;
&lt;br /&gt;
== Mounting a volume ==&lt;br /&gt;
&lt;br /&gt;
To mount a volume on boot, add a new entry to your fstab:&lt;br /&gt;
&lt;br /&gt;
 UUID=abcdef-0055-4958-990f-1413ed1186ec  /var/data  btrfs   defaults,nofail,subvol=@  0  0&lt;br /&gt;
&lt;br /&gt;
If you use more specific mounting options like for example:&lt;br /&gt;
&lt;br /&gt;
 UUID=005f5994-f51c-4360-8c9b-589fa59ea6fc  /mnt/hddext  btrfs  nofail,rw,relatime,commit=64,nossd,autodefrag,compress=zstd:10  0 2&lt;br /&gt;
&lt;br /&gt;
do not forget to install additional dependencies. If you enabled on the fly compression you need to install zstd:&lt;br /&gt;
&lt;br /&gt;
 apk add zstd&lt;br /&gt;
&lt;br /&gt;
More information about mounting can be found in the official [https://btrfs.wiki.kernel.org/index.php/Main_Page Btrfs wiki]&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
=== Mount failed ===&lt;br /&gt;
&lt;br /&gt;
If you try mounting a Btrfs volume via your /etc/fstab and it doesn&#039;t show up, it could be because Btrfs does not know about the drives during boot.&lt;br /&gt;
&lt;br /&gt;
To work around this, you can create an OpenRC service that runs a &#039;&#039;btrfs scan&#039;&#039; to detect the drives. To do so, create a new service under /etc/init.d/btrfs-scan with the following content:&lt;br /&gt;
&lt;br /&gt;
 #!/sbin/openrc-run&lt;br /&gt;
 &lt;br /&gt;
 name=&amp;quot;btrfs-scan&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 depend() {&lt;br /&gt;
   before localmount&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 start() {&lt;br /&gt;
   /sbin/btrfs device scan&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Make the service executable and register it:&lt;br /&gt;
&lt;br /&gt;
{{Cmd|chmod +x /etc/init.d/btrfs-scan&lt;br /&gt;
rc-update add btrfs-scan boot&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
The volume should mount correctly after a reboot.&lt;br /&gt;
&lt;br /&gt;
== Other Resources ==&lt;br /&gt;
&lt;br /&gt;
# [https://garrit.xyz/posts/2021-12-31-btrfs-on-alpine BTRFS on Alpine Linux]&lt;br /&gt;
# [https://nparsons.uk/blog/using-btrfs-on-alpine-linux Using BTRFS on Alpine Linux]&lt;br /&gt;
# [https://gitlab-test.alpinelinux.org/alpine/aports/-/issues/9539 Can&#039;t mount BTRFS volume using fstab]&lt;/div&gt;</summary>
		<author><name>Yoshibz</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Btrfs&amp;diff=21900</id>
		<title>Btrfs</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Btrfs&amp;diff=21900"/>
		<updated>2022-05-20T22:11:24Z</updated>

		<summary type="html">&lt;p&gt;Yoshibz: /* Mounting a volume */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Documentation how to use Btrfs on Alpine Linux.&lt;br /&gt;
&lt;br /&gt;
== Install ==&lt;br /&gt;
&lt;br /&gt;
Installing [https://wikipedia.org/wiki/Btrfs Btrfs] is relatively straight forward. Install the package and tell Alpine to load the module on startup:&lt;br /&gt;
&lt;br /&gt;
{{Cmd|apk add btrfs-progs&lt;br /&gt;
echo btrfs &amp;gt;&amp;gt; /etc/modules}}&lt;br /&gt;
&lt;br /&gt;
To load the module right away, you can use the following command:&lt;br /&gt;
&lt;br /&gt;
{{Cmd|modprobe btrfs}}&lt;br /&gt;
&lt;br /&gt;
== Mounting a volume ==&lt;br /&gt;
&lt;br /&gt;
To mount a volume on boot, add a new entry to your fstab:&lt;br /&gt;
&lt;br /&gt;
 UUID=abcdef-0055-4958-990f-1413ed1186ec  /var/data  btrfs   defaults,nofail,subvol=@  0  0&lt;br /&gt;
&lt;br /&gt;
If ypu use more specific mounting options like for example:&lt;br /&gt;
&lt;br /&gt;
 UUID=005f5994-f51c-4360-8c9b-589fa59ea6fc  /mnt/hddext  btrfs  nofail,rw,relatime,commit=64,nossd,autodefrag,compress=zstd:10  0 2&lt;br /&gt;
&lt;br /&gt;
do not forget to install additional dependencies if you enabled on the fly compression you need to install dependencies:&lt;br /&gt;
&lt;br /&gt;
 apk add zstd&lt;br /&gt;
&lt;br /&gt;
More information about mounting can be found in the official [https://btrfs.wiki.kernel.org/index.php/Main_Page Btrfs wiki]&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
=== Mount failed ===&lt;br /&gt;
&lt;br /&gt;
If you try mounting a Btrfs volume via your /etc/fstab and it doesn&#039;t show up, it could be because Btrfs does not know about the drives during boot.&lt;br /&gt;
&lt;br /&gt;
To work around this, you can create an OpenRC service that runs a &#039;&#039;btrfs scan&#039;&#039; to detect the drives. To do so, create a new service under /etc/init.d/btrfs-scan with the following content:&lt;br /&gt;
&lt;br /&gt;
 #!/sbin/openrc-run&lt;br /&gt;
 &lt;br /&gt;
 name=&amp;quot;btrfs-scan&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 depend() {&lt;br /&gt;
   before localmount&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 start() {&lt;br /&gt;
   /sbin/btrfs device scan&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Make the service executable and register it:&lt;br /&gt;
&lt;br /&gt;
{{Cmd|chmod +x /etc/init.d/btrfs-scan&lt;br /&gt;
rc-update add btrfs-scan boot&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
The volume should mount correctly after a reboot.&lt;br /&gt;
&lt;br /&gt;
== Other Resources ==&lt;br /&gt;
&lt;br /&gt;
# [https://garrit.xyz/posts/2021-12-31-btrfs-on-alpine BTRFS on Alpine Linux]&lt;br /&gt;
# [https://nparsons.uk/blog/using-btrfs-on-alpine-linux Using BTRFS on Alpine Linux]&lt;br /&gt;
# [https://gitlab-test.alpinelinux.org/alpine/aports/-/issues/9539 Can&#039;t mount BTRFS volume using fstab]&lt;/div&gt;</summary>
		<author><name>Yoshibz</name></author>
	</entry>
</feed>