<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://gentoo-zh.org/extern.php?action=feed&amp;fid=1&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Gentoo-zh / 新手园地]]></title>
		<link>http://www.gentoo-zh.org/index.php</link>
		<description><![CDATA[Gentoo-zh 最近发表的主题。]]></description>
		<lastBuildDate>Wed, 27 Aug 2025 11:42:26 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[cf+v2]]></title>
			<link>http://www.gentoo-zh.org/viewtopic.php?id=562&amp;action=new</link>
			<description><![CDATA[<p>嗯嗯嗯！测试几下就明白了</p>]]></description>
			<author><![CDATA[dummy@example.com (batsom)]]></author>
			<pubDate>Wed, 27 Aug 2025 11:42:26 +0000</pubDate>
			<guid>http://www.gentoo-zh.org/viewtopic.php?id=562&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[C++ Primer中文版（第五版）.pdf]]></title>
			<link>http://www.gentoo-zh.org/viewtopic.php?id=878&amp;action=new</link>
			<description><![CDATA[<p>这个网盘不错</p>]]></description>
			<author><![CDATA[dummy@example.com (ＴＭＤ)]]></author>
			<pubDate>Sun, 13 Apr 2025 15:17:21 +0000</pubDate>
			<guid>http://www.gentoo-zh.org/viewtopic.php?id=878&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[移动云电脑dd最终版本]]></title>
			<link>http://www.gentoo-zh.org/viewtopic.php?id=731&amp;action=new</link>
			<description><![CDATA[<p>Mobile cloud computing enables mobile devices to access and process data stored in the cloud, enhancing performance and storage capacity. For the latest developments and insights on mobile cloud computing, you can visit Tech Door&#039;s website. <a href="https://techdoor.us/" rel="nofollow">https://techdoor.us/</a>. The site provides useful blogs on games.</p>]]></description>
			<author><![CDATA[dummy@example.com (Jacksonconner)]]></author>
			<pubDate>Sun, 16 Mar 2025 16:19:18 +0000</pubDate>
			<guid>http://www.gentoo-zh.org/viewtopic.php?id=731&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[在一次系统更新后系统无声音解决过程]]></title>
			<link>http://www.gentoo-zh.org/viewtopic.php?id=823&amp;action=new</link>
			<description><![CDATA[<p>If you&#039;re experiencing no sound after a system update, try the following steps:</p><p>Check audio settings: Ensure the correct output device is selected.<br />Restart your computer: Sometimes a simple restart can fix the issue.<br />Update or reinstall audio drivers: Go to Device Manager and update your sound drivers, or reinstall them.<br />Run the audio troubleshooter: Use the built-in troubleshooter in your system settings to detect and fix problems.<br />Check for updates: Look for any pending updates that might fix the issue.</p>]]></description>
			<author><![CDATA[dummy@example.com (Jacksonconner)]]></author>
			<pubDate>Sat, 08 Mar 2025 16:00:02 +0000</pubDate>
			<guid>http://www.gentoo-zh.org/viewtopic.php?id=823&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[gentoo二进制包指南]]></title>
			<link>http://www.gentoo-zh.org/viewtopic.php?id=732&amp;action=new</link>
			<description><![CDATA[<p>这个新二进制机制并不能做出像ArchLinux一样的完全免编译的系统，多少都还是要编译的，限制了在嵌入式上的直接应用。</p>]]></description>
			<author><![CDATA[dummy@example.com (slgx)]]></author>
			<pubDate>Mon, 05 Feb 2024 19:19:21 +0000</pubDate>
			<guid>http://www.gentoo-zh.org/viewtopic.php?id=732&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[卸载gnome预安装的游戏]]></title>
			<link>http://www.gentoo-zh.org/viewtopic.php?id=697&amp;action=new</link>
			<description><![CDATA[<p>现在没时间玩游戏</p>]]></description>
			<author><![CDATA[dummy@example.com (ＴＭＤ)]]></author>
			<pubDate>Sat, 20 Jan 2024 12:52:56 +0000</pubDate>
			<guid>http://www.gentoo-zh.org/viewtopic.php?id=697&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[LFS-SYSD-BOOK]]></title>
			<link>http://www.gentoo-zh.org/viewtopic.php?id=712&amp;action=new</link>
			<description><![CDATA[<p><a href="https://oneindex.gentoo.site/linux%E7%B3%BB%E7%BB%9F%E5%AD%A6%E4%B9%A0/LFS-SYSD-BOOK.pdf?preview" rel="nofollow">https://oneindex.gentoo.site/linux%E7%B … df?preview</a></p>]]></description>
			<author><![CDATA[dummy@example.com (batsom)]]></author>
			<pubDate>Fri, 14 Jul 2023 15:53:07 +0000</pubDate>
			<guid>http://www.gentoo-zh.org/viewtopic.php?id=712&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[Linux是怎样工作的]]></title>
			<link>http://www.gentoo-zh.org/viewtopic.php?id=710&amp;action=new</link>
			<description><![CDATA[<p><a href="https://oneindex.gentoo.site/linux%E7%B3%BB%E7%BB%9F%E5%AD%A6%E4%B9%A0/Linux%E6%98%AF%E6%80%8E%E6%A0%B7%E5%B7%A5%E4%BD%9C%E7%9A%84%EF%BC%88198%E5%BC%A0%E5%9B%BE%E8%A7%A3%2B%E5%A4%A7%E9%87%8F%E5%AE%9E%E9%AA%8C%E7%A8%8B%E5%BA%8F%EF%BC%8C%E7%9B%B4%E5%87%BBLinux%E8%BF%90%E8%A1%8C%E5%8E%9F%E7%90%86%EF%BC%9B%E2%80%9C%E7%8E%B0%E4%BB%A3%E8%AE%A1%E7%AE%97%E6%9C%BA%E6%93%8D%E4%BD%9C%E7%B3%BB%E7%BB%9F%E2%80%9D%E5%9B%BE%E8%A7%A3%E8%B6%A3%E5%91%B3%E7%89%88%EF%BC%89%EF%BC%88%E5%9B%BE%E7%81%B5%E5%9B%BE%E4%B9%A6%EF%BC%89%20(%E6%AD%A6%E5%86%85%E8%A7%89)%20(Z-Library).pdf?preview" rel="nofollow">https://oneindex.gentoo.site/linux%E7%B … df?preview</a></p>]]></description>
			<author><![CDATA[dummy@example.com (batsom)]]></author>
			<pubDate>Thu, 13 Jul 2023 04:43:12 +0000</pubDate>
			<guid>http://www.gentoo-zh.org/viewtopic.php?id=710&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[手把手教你构建自己的Linux系统]]></title>
			<link>http://www.gentoo-zh.org/viewtopic.php?id=709&amp;action=new</link>
			<description><![CDATA[<p><a href="http://oneindex.gentoo.site/linux%E7%B3%BB%E7%BB%9F%E5%AD%A6%E4%B9%A0/%E6%89%8B%E6%8A%8A%E6%89%8B%E6%95%99%E4%BD%A0%E6%9E%84%E5%BB%BA%E8%87%AA%E5%B7%B1%E7%9A%84Linux%E7%B3%BB%E7%BB%9F-%E6%89%AB%E6%8F%8F%E7%89%88.pdf?preview" rel="nofollow">http://oneindex.gentoo.site/linux%E7%B3 … df?preview</a></p>]]></description>
			<author><![CDATA[dummy@example.com (batsom)]]></author>
			<pubDate>Thu, 13 Jul 2023 04:42:17 +0000</pubDate>
			<guid>http://www.gentoo-zh.org/viewtopic.php?id=709&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[编译器选择]]></title>
			<link>http://www.gentoo-zh.org/viewtopic.php?id=708&amp;action=new</link>
			<description><![CDATA[<p>本文介绍构建 gentoo 系统的编译器选择方案，及一些尤其引起的 bug 的解决方案，不涉及选择编译器的专业观点。</p><p>简介<br />众所周知 Gentoo 系统完全在本地构建。因此编译器的选择很大程度上决定了编译系统的耗时以及整个系统的性能。</p><p>用于构建整个 Gentoo 系统的编译器只推荐两个，gcc 与 clang。</p><p>gcc 由 GNU 出品，与 GNU linux 自然匹配度更高。因此选择 gcc 作为编译器是最稳妥的方案。</p><p>clang 被苹果公司支持，近年来发展速度迅速，也具备许多 gcc 不具备的特性。但 clang 编译 linux 系统尚不稳定。</p><p>目前，绝大多数使用 clang 编译出错的 bug 已有解决方案。但部分软件，比如 gcc、linux 内核等必须使用 gcc 构建。因此即便你选择 clang 作为主编译器，也必须保留 gcc 作为辅助编译器。</p><p>使用 gcc 作为主编译器<br />gcc 是 gentoo 的默认编译器，且比较稳定，这里不作太多说明。</p><p>只是需要注意一点，测试分支的 gcc 存在许多不稳定因素，可能会造成编译错误。考虑到编译器对于系统的重要性，强烈建议保留稳定分支的 gcc。</p><p>gcc 版本选择<br /># 查看系统中的gcc版本<br />gcc-config --list-profiles<br /># 选择需要的gcc<br />gcc-config number<br /># 刷新配置<br />source /etc/profile</p><p>使用 clang 作为主编译器<br />详见gentoo wiki</p><p>关于 clang 的安装，可以参考上面的链接。这里主要介绍将 clang 作为主编译器的必要配置。</p><p>首先，在make.conf中作如下设置。</p><p>CC = clang<br />CXX = clang++</p><br /><br /><br /><br /><p>此时，clang 已经成为系统的默认编译器。接下来设置备选方案，即当软件无法用 clang 编译时，使用 gcc 编译。</p><p>在/etc/portage/env目录下创建compiler-gcc，写入</p><p>CC = gcc<br />CXX = g++</p><br /><br /><br /><br /><p>然后在/etc/portage/package.env文件中写入如sys-devel/gcc compiler-gcc的内容，即可将该包的编译器设置为 gcc。</p><p>这一步可以通过app-portage/flaggie工具自动完成。其指令为flaggie app-foo/bar +compiler-gcc。</p><p>至此，配置完毕。当发现 clang 无法编译某软件而 gcc 可行时只需将其加入上述文件即可。</p><br /><br /><br /><br /><p>编译选项<br />这里的编译选项主要指优化选项。为提高系统性能，你可以设置编译优化选项。但由此带来的问题是编译时间大大增长，更容易遇到 bug，过多的或者不合理的优化选项导致性能反而下降。</p><p>这里不介绍配置优化选项的具体内容，只通过大致的感受给出一个建议。基于亲身体会，优化与不优化差别并不大，至少以人的感官很难感觉出来。因此这里建议新手不要开启优化选项，至少是过多的优化选项，除非你是为了折腾。</p><p>就前文提到的 gcc 备选方案的配置，你也可以将其运用到为具体的包选择性开启优化选项。比如编辑/etc/portage/env/compiler-gcc-flto。</p><p>CC=&quot;gcc&quot;<br />CXX=&quot;g++&quot;<br />CFLAGS=&quot;-flto -march=native -O2 -pipe&quot;<br />CXXFLAGS=&quot;${CFLAGS}&quot;<br />AR=&quot;gcc-ar&quot;<br />NM=&quot;gcc-nm&quot;<br />RANLIB=&quot;gcc-ranlib&quot;</p><br /><br /><br /><p>再在/etc/portage/package.env中设置包的编译方案即可。</p><br /><br /><br /><br /><p>原文链接：https://blog.csdn.net/niuiic/article/details/109151174</p>]]></description>
			<author><![CDATA[dummy@example.com (semes)]]></author>
			<pubDate>Wed, 12 Jul 2023 00:57:08 +0000</pubDate>
			<guid>http://www.gentoo-zh.org/viewtopic.php?id=708&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[Gentoo Linux系统清理]]></title>
			<link>http://www.gentoo-zh.org/viewtopic.php?id=707&amp;action=new</link>
			<description><![CDATA[<p>一、 清除源码包文件</p><p>清除已经下载的软件包，步骤如下 ：</p><p>&#160; &#160; 在这一步中，所使用的工具是rm命令，将会强制删除。</p><p>&#160; &#160; 使用前，请仔细检查所要删除的目录是否正确，</p><p>&#160; &#160; 防止意外删除系统文件，可能导致系统无法使用。</p><p>&#160; &#160; 如果仅删除过期的源码包，可使用以下命令：</p><p>root # rm -rf /usr/portage/distfiles/*</p><p>&#160; &#160; 如果要清除emerge过程中产生的临时文件，可以使用以下命令：</p><p>root # rm -rf /var/tmp/portage/*<br />二、 清理仓库源文件和二进制包</p><p>在这一步中，所使用的工具为eclean。</p><p>eclean 是一个清理仓库源文件和二进制包的工具。</p><p>是 app-portage/gentoolkit 包的一部分，并由 Portage-Tools 项目维护。</p><p>&#160; &#160; &#160;附注：<br />&#160; &#160; 关于 app-portage/gentoolkit 包中其他工具的信息请参看 Gentoolkit article。</p><p>默认情况下，源文件存储在 /usr/portage/distfiles 目录下， 二进制包存储在 /usr/portage/packages 目录下；</p><p>可以通过修改 /etc/portage/make.conf 中的 DISTDIR 和 PKGDIR 变量更改对应的存储位置。</p><p>如果不定期清理，这两个目录可能会悄然无声地变得非常巨大；</p><p>这就是创建eclean的原因。</p><p>使用 eclean --help 来查看全部的命令简介、参数列表和使用介绍：</p><p>user $ eclean --help</p><p>Usage:<br /> eclean [global-option] ... &lt;action&gt; [action-option] ...<br /> eclean-dist [global-option, distfiles-option] ...<br /> eclean-pkg [global-option, packages-option] ...<br /> eclean(-dist,-pkg) [--help, --version]</p><p>Available global options:<br /> -C, --nocolor&#160; &#160; &#160; &#160; &#160; &#160; &#160;- turn off colors on output<br /> -d, --deep&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; - only keep the minimum for a reinstallation<br /> -e, --exclude-file=&lt;path&gt; - path to the exclusion file<br /> -i, --interactive&#160; &#160; &#160; &#160; &#160;- ask confirmation before deletions<br /> -n, --package-names&#160; &#160; &#160; &#160;- protect all versions (when --deep<br /> -p, --pretend&#160; &#160; &#160; &#160; &#160; &#160; &#160;- only display what would be cleaned<br /> -q, --quiet&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;- be as quiet as possible<br /> -t, --time-limit=&lt;time&gt;&#160; &#160;- don&#039;t delete files modified since &lt;time&gt;<br />&#160; &#160;&lt;time&gt; is a duration: &quot;1y&quot; is &quot;one year&quot;, &quot;2w&quot; is &quot;two weeks&quot;, etc.<br />&#160; &#160;Units are: y (years), m (months), w (weeks), d (days) and h (hours).<br /> -h, --help&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; - display the help screen<br /> -V, --version&#160; &#160; &#160; &#160; &#160; &#160; &#160;- display version info</p><p>Available actions:<br /> packages&#160; &#160; &#160;- clean outdated binary packages from PKGDIR<br /> distfiles&#160; &#160; - clean outdated packages sources files from DISTDIR</p><p>Available options for the packages action:<br /> NONE&#160; <img src="http://www.gentoo-zh.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>Available options for the distfiles action:<br /> -f, --fetch-restricted&#160; &#160;- protect fetch-restricted files (when --deep)<br /> -s, --size-limit=&lt;size&gt;&#160; - don&#039;t delete distfiles bigger than &lt;size&gt;<br />&#160; &#160;&lt;size&gt; is a size specification: &quot;10M&quot; is &quot;ten megabytes&quot;, &quot;200K&quot; is<br />&#160; &#160;&quot;two hundreds kilobytes&quot;, etc.&#160; Units are: G, M, K and B.</p><p>More detailed instruction can be found in `man eclean`</p><p>清理 源文件</p><p>通过 distfiles 参数清理源文件存放目录：</p><p>root # eclean distfiles</p><p>或者使用更简短的命令：</p><p>root # eclean-dist<br />清理二进制文件</p><p>使用下面的命令清理二进制包：</p><p>root # eclean packages</p><p>或者使用更简短的命令：</p><p>root # eclean-pkg</p><p>默认情况下，当前存储库中的任何ebuild相对应的源文件和二进制包都不会被删除。</p><p>这样，只要程序包仍在当前存储库树中，系统管理员就可以轻松地降级程序包或安装以前删除的程序包。</p><p>&#160; &#160; 举个例子，比如包 foo-1.0 和 foo-1.1 都在存储库中。</p><p>&#160; &#160; 在从 foo-1.0 升级到 foo-1.1 之后，运行 elcean distfiles，两个版本的源文件依然被保留，因此如果 foo-1.1 出现问题，用户可以很方便的重新安装 foo-1.0，而不必重新下载。</p><p>&#160; &#160; 另一个可能的情况是安装之前删除的包。</p><p>&#160; &#160; 假设系统安装了 foo 包（任一版本）。</p><p>&#160; &#160; 在（不经意地）删除了这个包并运行了 eclean disfiles 之后，foo 的源文件依然被保留，可以重新安装而无需再次下载。</p><p>&#160; &#160; 对二进制包同样的例子也一样适用。</p><p>&#160; &#160; 为节省更多磁盘空间，请添加--deep选项：</p><p>&#160; &#160; &#160; &#160; 这将删除与某些当前安装的软件包（版本无关紧要）不对应的每个源文件或二进制软件包。</p><p>&#160; &#160; 注意：</p><p>&#160; &#160; 这种方式当用户需要降级安装某个包或者重新安装之前删除的包的时候都必须重新下载。</p><p>&#160; &#160; 一个替代方案是，同时使用 --deep 和 --package-names 选项：</p><p>&#160; &#160; &#160; &#160; 对于某些非当前安装的包（不管版本号是什么）的每个源文件或者二进制包都会被删除。</p><p>&#160; &#160; 注意：</p><p>&#160; &#160; 这种方式当用户需重新安装之前删除的包的时候都必须重新下载，</p><p>&#160; &#160; 但是要降级安装某个包则不需要。</p><p>参考文献：</p><p>&#160; &#160; Eclean - Gentoo Wiki</p><p>&#160; &#160; Gentoolkit — 一套简化Gentoo系统管理的工具</p><p>&#160; &#160; 知识库：删除过时的 distfile</p><p>&#160; &#160; Gentoo系统清理</p><p>&#160; &#160; DISTDIR — 定义了 Portage 将会把下载的源码存放到哪个路径</p>]]></description>
			<author><![CDATA[dummy@example.com (batsom)]]></author>
			<pubDate>Mon, 12 Jun 2023 03:35:08 +0000</pubDate>
			<guid>http://www.gentoo-zh.org/viewtopic.php?id=707&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[从ext4迁移到btrfs]]></title>
			<link>http://www.gentoo-zh.org/viewtopic.php?id=702&amp;action=new</link>
			<description><![CDATA[<p>最近扩展 Linux 分区的时候，由于年少轻狂，没有进行全盘备份，导致系统出现了灾难性事故，软件、配置，还有最近学习 Vim，写了快一个星期的配置文件，全部丢失。重装系统后便开始寻找适合备份的文件系统，便有了这篇文章。</p><p>为什么是 Btrfs<br />Btrfs 是 B-tree 文件系统，通常念做 「Butter FS」、「Better FS」或「B-tree FS」。是一种支持写入时复制（CoW）的 Linux 文件系统。相对于 ext4 文件系统有以下几个优点：</p><p>Btrfs 支持快照，方便备份与恢复；<br />Btrfs 支持透明压缩，节省存储空间；<br />Btrfs 支持子卷功能，便于管理；<br />Btrfs 支持数据与元数据校验。<br />这些优点使我产生了向 Btrfs 迁移的念头，幸运的是，Btrfs 支持从 ext4 转换。</p><p>转换步骤<br />以下步骤是在我自用电脑上操作的，磁盘 /dev/nvme0n1p4 挂载为 Linux 根分区，下文命令可能需要调整。由于操作时需要对根分区进行操作，强烈建议操作前进行全盘备份并在 LiveCD 环境下进行操作。</p><p>注意：任何对数据的操作都是充满风险的，如果你不能承受数据丢失的风险，请勿操作。 注意：如果转换中出现任何异样，你都可以使用备份子卷 /ext2_saved 来回滚。请勿强行对转换失败的分区做出更改。使用 btrfs-convert -r /dev/target_partition 命令进行回滚。</p><p>检查文件系统<br />首先使用 fsck 检查磁盘，保证现有分区没有问题。</p><p># fsck.ext4 /dev/nvme0n1p4<br />开始文件系统转换<br />分区检查通过后就可以开始转换。执行以下命令进行转换。</p><p># btrfs-convert /dev/nvme0n1p4<br />待出现 conversion complete 表明转换完成。现在分区的文件系统已经是 Btrfs 了，但是还不能重启，还需要对现有的文件进行修改才能顺利引导进系统。</p><p>挂载分区并修改 fstab<br />首先需要挂载分区，方便我们修改文件。这里我们将分区挂载到 /mnt 目录下。</p><p># mount /dev/nvme0n1p4 /mnt<br />使用磁盘工具检查分区的 UUID，这里使用 lsblk 命令。</p><p>$ lsblk -f<br />NAME&#160; &#160; &#160; &#160; FSTYPE FSVER LABEL&#160; &#160; &#160; UUID&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;FSAVAIL FSUSE% MOUNTPOINT<br />nvme0n1<br />...&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; <br />└─nvme0n1p4 btrfs&#160; &#160; &#160; &#160; ...&#160; &#160; &#160; &#160; 82xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxeb&#160; &#160; &#160;xxG&#160; &#160; &#160;xx%&#160; &#160; /mnt<br />使用文本编辑工具修改 /mnt/etc/fstab 文件，修改挂载到根目录的分区类型（type）为 btrfs、文件系统检查顺序（pass）为 0（启动时不进行磁盘检查），并检查转换后的分区 UUID 是否改变，修改挂载分区（file system）。<br />需要重新生成fstab&#160; 建议genfstab -U /&#160; &gt;&gt; /etc/fstab&#160; &#160; &#160;要把全部的系统区挂载上，注意内核需要支持btrfs支持和安装btrfs文件系统支持</p><p>重建初始化内存盘<br />重建初始化内存盘需要在 chroot 环境中进行。首先需要设置对应的挂载点。</p><p># mount -t proc none /mnt/proc<br /># mount -t sysfs none /mnt/sys<br /># mount -o bind /dev /mnt/dev<br />随后使用 chroot 命令进入原系统。</p><p># chroot /mnt bash<br />进入原系统后，使用 mkinitcpio 重建初始化内存盘。这里可能需要替换命令参数，如果提示 Fail to load preset，需要检查 /etc/mkinitcpio.d 目录下是否存在对应的预设文件名。</p><p># mkinitcpio --preset linux</p><br /><br /><br /><p>如果使用 GRUB 启动，还需要重建 GRUB 引导。</p><br /><br /><br /><p>TLP 设置<br />如果使用了 TLP 高级电源管理功能，需要对 TLP 进行设置，防止文件系统损坏。编辑位于 /mnt/etc/tlp.conf 的配置文件，找到 SATA_LINKPWR_ON_BAT 条目，取消注释并在选项中添加 max_performance 参数。</p><p>SATA_LINKPWR_ON_BAT=&quot;med_power_with_dipm max_performance&quot;<br />启用透明压缩<br />为了能够利用 Btrfs 的透明压缩功能，可以对转换好的分区进行压缩并修改 fstab 挂载选项。</p><p>首先需要对转换好的分区进行全盘压缩。</p><p># btrfs filesystem defragment -r -v -czstd /mnt<br />随后需要修改 fstab 文件，在根目录文件系统的挂载选项（options）一栏中增加 compress=zstd 选项，以便系统启动时应用压缩选项。</p><p>使用新文件系统启动及后续操作<br />完成上述步骤后，便可以使用转换后的分区启动。启动后，可以删除 /ext2_saved 子卷完成转换。</p><p># btrfs subvolume delete /ext2_saved<br />最后通过 Balance 来回收数据。</p><p># btrfs balance start /<br /># btrfs balance status /<br />至此，分区文件系统转换就结束了。感受新文件系统所带来的惊喜吧。</p><p>配置文件系统检修<br />在转换结束后，可以配置定时对根目录 / 的检修任务。</p><p># systemctl enable --now btrfs-scrub@-.timer<br />或者你也可以手动执行。</p><p># btrfs scrub start /<br /># btrfs scrub status /</p>]]></description>
			<author><![CDATA[dummy@example.com (semes)]]></author>
			<pubDate>Tue, 30 May 2023 13:15:08 +0000</pubDate>
			<guid>http://www.gentoo-zh.org/viewtopic.php?id=702&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[查询包是否存在]]></title>
			<link>http://www.gentoo-zh.org/viewtopic.php?id=700&amp;action=new</link>
			<description><![CDATA[<p><a href="https://gpo.zugaina.org/" rel="nofollow">https://gpo.zugaina.org/</a></p>]]></description>
			<author><![CDATA[dummy@example.com (batsom)]]></author>
			<pubDate>Fri, 12 May 2023 02:23:44 +0000</pubDate>
			<guid>http://www.gentoo-zh.org/viewtopic.php?id=700&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[linux内核裁剪选项说明]]></title>
			<link>http://www.gentoo-zh.org/viewtopic.php?id=2&amp;action=new</link>
			<description><![CDATA[<p>还记得自己第一次配置内核，用了一周阿时间。。。。</p>]]></description>
			<author><![CDATA[dummy@example.com (MercenaryMatrix)]]></author>
			<pubDate>Wed, 03 May 2023 15:31:59 +0000</pubDate>
			<guid>http://www.gentoo-zh.org/viewtopic.php?id=2&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[使用make localyescofig生成一份无需initramfs启动的linux内核配置文件]]></title>
			<link>http://www.gentoo-zh.org/viewtopic.php?id=685&amp;action=new</link>
			<description><![CDATA[<p>感谢楼主分享！</p>]]></description>
			<author><![CDATA[dummy@example.com (ＴＭＤ)]]></author>
			<pubDate>Mon, 27 Mar 2023 16:00:40 +0000</pubDate>
			<guid>http://www.gentoo-zh.org/viewtopic.php?id=685&amp;action=new</guid>
		</item>
	</channel>
</rss>
