<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Disk on TinyChen's Blog</title><link>https://tinychen.com/tags/disk/</link><description>Recent content in Disk on TinyChen's Blog</description><generator>Hugo</generator><language>zh-cn</language><lastBuildDate>Wed, 22 Jul 2026 23:00:00 +0800</lastBuildDate><atom:link href="https://tinychen.com/tags/disk/index.xml" rel="self" type="application/rss+xml"/><item><title>qcow2镜像扩容与宿主机挂载</title><link>https://tinychen.com/20241231-qcow2-disk-resize/</link><pubDate>Tue, 31 Dec 2024 11:00:00 +0800</pubDate><guid>https://tinychen.com/20241231-qcow2-disk-resize/</guid><description>&lt;p&gt;本文主要记录 QEMU/KVM 场景下扩大 qcow2 虚拟磁盘容量的两段操作：在宿主机用 &lt;code&gt;qemu-img resize&lt;/code&gt; 增加镜像虚拟大小，以及在不启动客户机时用 &lt;code&gt;qemu-nbd&lt;/code&gt; 把镜像映射为块设备以便查看分区、扩展文件系统。&lt;/p&gt;</description></item><item><title>OpenWrt整盘克隆后扩容root分区</title><link>https://tinychen.com/20240830-openwrt-disk-expansion/</link><pubDate>Fri, 30 Aug 2024 11:00:00 +0800</pubDate><guid>https://tinychen.com/20240830-openwrt-disk-expansion/</guid><description>&lt;p&gt;本文主要记录把 OpenWrt 从较小磁盘克隆到更大 NVMe 后，出现 GPT 备份表位置错误、数据分区仍保持旧容量时的处理步骤：用 &lt;code&gt;gdisk&lt;/code&gt; 修复 GPT 并扩展末尾分区，再用 &lt;code&gt;e2fsck&lt;/code&gt; / &lt;code&gt;resize2fs&lt;/code&gt; 扩展 ext 文件系统。&lt;/p&gt;</description></item></channel></rss>