Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> Linux 系統教學 >> Linux 教學

Linux 新掛載分區剛建立就佔用 100 多 MB 空間?原因解析

編輯:Linux 教學

現象

[root@server110.com opt]# mount /dev/sda6 /opt/oracle
[root@server110.com opt]# df -h /opt/oracle
Filesystem   Size  Used Avail Use% Mounted on
/dev/sda6    9.4G  150M 8.8G  2% /opt/oracle

原因說明

回答 1:日誌式檔案系統預留空間
若使用 ext4(或 ext3),日誌區塊、inode 表、超級區塊備份等中繼資料會預先佔用空間,分區越大預留越多。
回答 2:所有檔案系統皆有中繼資料開銷
每個檔案系統格式化時都會建立檔案名、屬性、權限等中繼資料結構,Windows 同樣會佔用空間(只是平時較少留意)。

結論

這是正常現象,非錯誤。隨分區增大,預留比例略降但絕對量增。若極度在意可用空間,可用 tune2fs -m 調整保留區塊百分比(預設 5%),但不建議設為 0。

Copyright © Windows教程網 All Rights Reserved