Skip to content

[Feedback]CasaOS homepage displays incorrect storage information #2366

@little3tar

Description

@little3tar

Describe the bug

在CasaOS主页显示了错误的存储空间。已用空间只显示机器自带的内部存储的使用情况,总空间显示的是有外接硬盘的总容量。主页存储空间的进度条又是正确的显示,点开存储空间的设置也能看到正确的空间使用情况。
The CasaOS homepage displays incorrect storage space. The used space only shows the internal storage usage, while the total space shows the total capacity of the external hard drive. The storage progress bar on the homepage displays correctly, and clicking on the storage settings also shows the correct space usage.

To Reproduce

Steps to reproduce the behavior:

在几天前是能正确显示的。昨天我为自己的设备更换了一块更大容量的SATA硬盘,全程使用SSH连接设备进行克隆数据、开机挂载等操作。更换完成后数据并没有损失,一些安装在外部硬盘里的程序也能正常运行,打开CasaOS就发现这个“已用空间”显示的数值出现了问题。
It was displaying correctly a few days ago. Yesterday, I replaced my device with a larger SATA hard drive, using SSH to clone data, mount the drive at boot, and so on. After the replacement, there was no data loss, and some programs installed on the external drive continued to run normally. However, when I opened CasaOS, I noticed a problem with the "Used Space" value.

我为机器安装了一个 1 TB 的 SATA 硬盘,主页显示已用 3.07 GB,总计 943.08 GB,实际上已经使用了四百多 GB 的空间,符合下方进度条的显示。
I installed a 1 TB SATA hard drive for the machine. The homepage shows that 3.07 GB has been used and the total is 943.08 GB. In fact, more than 400 GB of space has been used, which is consistent with the display of the progress bar below.

Screenshots

Image Image

Desktop (please complete the following information):

  • OS: linux
  • CasaOS Version: 0.4.15
  • Disk Total: 5387
  • Disk Used: 3146
  • System Info: [Armbian 25.8.1 jammy \l Bit:64 Mem:3903M Core:4 Linux armbian 6.6.25-spring-plowing add widget #1 SMP Fri Apr 5 03:34:06 EDT 2024 aarch64 aarch64 aarch64 GNU/Linux ]
  • Remote Version: 0.4.15
  • Browser: Chrome
  • Version: 140.0.0.0
    System Time

Run timedatectl and share the output

               Local time: Sat 2025-10-04 15:09:40 CST
           Universal time: Sat 2025-10-04 07:09:40 UTC
                 RTC time: n/a
                Time zone: Asia/Shanghai (CST, +0800)
System clock synchronized: yes
              NTP service: active
          RTC in local TZ: no

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions