{"id":12499,"date":"2025-11-11T01:04:00","date_gmt":"2025-11-11T06:04:00","guid":{"rendered":"https:\/\/www.both.org\/?p=12499"},"modified":"2026-01-20T13:28:24","modified_gmt":"2026-01-20T18:28:24","slug":"converting-to-btrfs","status":"publish","type":"post","link":"https:\/\/www.both.org\/?p=12499","title":{"rendered":"Converting to BtrFS &#8212; Episode 1"},"content":{"rendered":"<div class=\"pld-like-dislike-wrap pld-template-1\">\r\n    <div class=\"pld-like-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-like-trigger pld-like-dislike-trigger  \" title=\"\" data-post-id=\"12499\" data-trigger-type=\"like\" data-restriction=\"cookie\" data-already-liked=\"0\">\r\n                        <i class=\"fas fa-thumbs-up\"><\/i>\r\n                <\/a>\r\n    <span class=\"pld-like-count-wrap pld-count-wrap\">1    <\/span>\r\n<\/div><\/div>\n<p>I&#8217;ve previously written about <a href=\"https:\/\/www.both.org\/?p=8150\" data-type=\"link\" data-id=\"https:\/\/www.both.org\/?p=8150\" target=\"_blank\" rel=\"noreferrer noopener\">why I won&#8217;t use the BtrFS filesystem<\/a>, and the fact that it&#8217;s become the <a href=\"https:\/\/www.both.org\/?p=12400\" data-type=\"link\" data-id=\"https:\/\/www.both.org\/?p=12400\" target=\"_blank\" rel=\"noreferrer noopener\">only filesystem<\/a> available for new installations of Fedora starting with Fedora 43. In that second article I said I&#8217;d keep you all updated on my efforts to migrate at least some of my systems to BtrFS.<\/p>\n\n\n\n<p>It&#8217;s not going well. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Converting existing filesystems<\/h2>\n\n\n\n<p>Since I&#8217;ve had problems with BtrFS in the past, I decided that my first attempt at converting an LVM\/EXT4 filesystem to BtrFS would be on a virtual machine which I could easily roll back to a previous snapshot. It&#8217;s much better to be safe than sorry and there&#8217;s no way I&#8217;d start on my primary workstation, or any other of my real systems.<\/p>\n\n\n\n<p>I booted my virtual machine to a Live ISO image of Fedora and started with the recommended <strong>fsck<\/strong> command to ensure the <code>\/home<\/code> filesystem I chose for this first attempt was clean. Then, using the <strong>btrfs-convert<\/strong> command, I attempted the conversion. I tried to mount the <code>\/home<\/code> filesystem on <code>\/mnt<\/code> on the Live system but that failed. The filesystem also failed to mount on reboot and that forced the virtual machine into maintenance mode.<\/p>\n\n\n\n<p>Reverting to the snapshot, I tried again &#8212; and again &#8212; and &#8212; you get the idea. I changed something in my command each time I tried, but the end result was always the same. To be clear, the man page for the <strong>btrfs-convert<\/strong> command did indicate that the conversion would not always work. One can always hope.<\/p>\n\n\n\n<p>I&#8217;ve been unable to locate any specific information about converting an EXT4 filesystem on a logical volume, and I think that&#8217;s the problem. So I tried again by creating a new virtual drive for the virtual machine and configuring part of it as EXT4 on a raw partition with no LVM and that worked fine. If you try this, be sure to change the entry for the filesystem mount in <code>\/etc\/fstab<\/code>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Next step<\/h2>\n\n\n\n<p>Since all my systems use logical volume management (LVM) this conversion tool won&#8217;t work for me. It seems I&#8217;ll need to do complete reinstallations. <\/p>\n\n\n\n<p>My problem now is that I need to convert a system that I use regularly in order to fully prove to myself that BtrFS might be ready for use in my lab. But I&#8217;m still not going to go all-in until I&#8217;ve converted a lesser used system for preliminary testing. <\/p>\n\n\n\n<p>Stay tuned for the next episode. <\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">The Full Series<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.both.org\/?p=12499\" target=\"_blank\" rel=\"noreferrer noopener\">Converting to BtrFS \u2014 Episode 1<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.both.org\/?p=12582\" target=\"_blank\" rel=\"noreferrer noopener\">Converting to BtrFS \u2014 Episode 2<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.both.org\/?p=12635\" target=\"_blank\" rel=\"noreferrer noopener\">Converting to BtrFS \u2014 Episode 3<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.both.org\/?p=12873\">Converting to Btr<\/a><a href=\"https:\/\/www.both.org\/?p=12873\" target=\"_blank\" rel=\"noreferrer noopener\">F<\/a><a href=\"https:\/\/www.both.org\/?p=12873\">S \u2014 Episode 4<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.both.org\/?p=13137\" target=\"_blank\" rel=\"noreferrer noopener\">Converting to BtrFS \u2014 Episode 5<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>It&#8217;s not going well. <\/p>\n","protected":false},"author":2,"featured_media":2899,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[866,890,169,5],"tags":[],"class_list":["post-12499","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-btrfs","category-ext4","category-filesystems","category-linux"],"modified_by":"David Both","_links":{"self":[{"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/posts\/12499","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=12499"}],"version-history":[{"count":9,"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/posts\/12499\/revisions"}],"predecessor-version":[{"id":13359,"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/posts\/12499\/revisions\/13359"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/media\/2899"}],"wp:attachment":[{"href":"https:\/\/www.both.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=12499"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=12499"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=12499"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}