You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

VMware Fusion中Ubuntu 16.04新增磁盘空间不被DUA识别咨询

解答:Ubuntu扩容后磁盘使用分析器无法识别新增空间的问题

Hey there, let's figure out why that extra 10GB isn't showing up in Disk Usage Analyzer (DUA) and how to make it usable.

问题根源:物理磁盘扩容≠文件系统扩容

When you expanded the virtual disk in VMware Fusion to 30GB, fdisk -l correctly sees the total physical disk size—but that's only half the job. The missing 10GB is likely sitting as unallocated space on the disk, which isn't assigned to any mounted file system. DUA only tracks space within mounted, formatted partitions, so it ignores unallocated space entirely.

这部分空间暂时无法直接使用,但完全可以激活

Unallocated space is like raw, unpartitioned land—your system doesn't know how to utilize it until you:

  • Assign it to an existing partition (or create a new one)
  • Resize the file system on that partition to recognize the added space

具体修复步骤

Let's walk through getting that 10GB working:

1. Confirm the unallocated space exists

Open GParted (you might need to install it first with sudo apt install gparted). You'll see your disk (usually /dev/sda) with a total size of 30GB, and a block labeled "unallocated" taking up 10GB. This confirms the space is there—just not integrated into your system.

2. Resize your system partition via GParted

  • First, if your system partition is inside an extended partition (common for older Ubuntu setups), you'll need to resize the extended partition first to include the unallocated space.
  • Right-click your main system partition (usually /dev/sda1 or /dev/sda5), select Resize/Move, drag the slider to the right to include all unallocated space.
  • Click the green checkmark to apply the changes. You might need to unmount the partition first—if so, restart into a live USB/CD environment to make the changes (since you can't resize a mounted system partition).

3. Update the file system to recognize the new space

After resizing the partition, reboot back into Ubuntu and open a terminal. Run:

sudo resize2fs /dev/sdaX

Replace X with your system partition number (e.g., /dev/sda1). This command tells the ext4 file system (the default for Ubuntu 16.04) to expand into the newly resized partition.

4. Verify the fix

Run df -h in the terminal—you should see your root partition (/) now shows a total size of ~30GB. Open Disk Usage Analyzer again, and the extra space will be visible and usable.

Why your tutorial might have missed this?

Some guides stop at resizing the virtual disk and adjusting partitions in GParted, but the resize2fs step is critical. Without it, the partition size changes, but the file system doesn't know to use the extra space—so your system acts like nothing changed.

内容的提问来源于stack exchange,提问作者Puneet Ugru

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.19 10:23:08