[problem help] 为什么我安装V23之后,数据盘会有23G多的占用呢?
Tofloor
poster avatar
gujiandonglai
deepin
2023-08-07 07:24
Author

我选择安装V23后,全盘格式化安装,数据盘出现23G多无法解释也看不到内容的占用,想问一下这是否合理,以及这些占用是什么东西?

PS:我原来的系统是 windows 10,但是我是直接选择格式化安装的,而且没有保留备份。

Reply Favorite View the author
All Replies
lyl
deepin
2023-08-07 10:50
#1

不清楚,我觉得是系统备份文件

Reply View the author
微光寒慕
deepin
2023-08-07 13:55
#2

系统的恢复分区

Reply View the author
wlly-lzh
deepin
2023-08-07 15:05
#3

或许你可以发张图让大家看看数据盘里面有什么。pride

Reply View the author
阿尼樱奈奈
Moderator
2023-08-07 15:38
#4

rootb分区?

Reply View the author
neko
deepin
Ecological co-builder
2023-08-07 15:47
#5

df -h看看

Reply View the author
hotime
deepin
2023-08-08 18:18
#6

如果在安装系统时选择全盘安装的话,数据分区默认挂载的位置是 /persistent,但这个数据分区并不仅仅包括用户目录,其详细的挂载如下(可在/etc/fstab中查看到详情):

/persistent/home挂载至/home

/persistent/opt挂载至/opt

/persistent/root挂载至/root

/persistent/var挂载至/var

除此之外,在 /persistent目录下,你还会看到还有 osroot目录以及玲珑应用目录 linglong,这两个目录再加上home以外的其他目录应当就是你找到的差别了。比如我这里:

hotime@T5s:/persistent$ ls
home  linglong  opt  osroot  root  var
hotime@T5s:/persistent$ sudo du -sh /persistent/
17G     /persistent/
hotime@T5s:/persistent$ sudo du -sh /persistent/home/
2.6G    /persistent/home/
hotime@T5s:/persistent$ sudo du -sh /persistent/linglong/
5.6G    /persistent/linglong/
hotime@T5s:/persistent$ sudo du -sh /persistent/opt/
687M    /persistent/opt/
hotime@T5s:/persistent$ sudo du -sh /persistent/osroot/
6.8G    /persistent/osroot/
hotime@T5s:/persistent$ sudo du -sh /persistent/root/
4.0M    /persistent/root/
hotime@T5s:/persistent$ sudo du -sh /persistent/var/
1.3G    /persistent/var/

以上数据相加正好约等于 /persistent的17G

还有一点要注意的是,在文件管理器中右击数据盘查看属性中显示的容量实际用的大概是 df,这个与 du之间也存在一部分差异,具体可以详寻百度。

比如我这里:

hotime@T5s:/persistent$ sudo df -h
文件系统        大小  已用  可用 已用% 挂载点
udev             24G     0   24G    0% /dev
tmpfs           4.7G  3.3M  4.7G    1% /run
/dev/nvme0n1p8   20G   10G  9.2G   52% /
tmpfs            24G  564K   24G    1% /dev/shm
tmpfs           5.0M  4.0K  5.0M    1% /run/lock
/dev/nvme0n1p6  1.5G  376M 1008M   28% /boot
/dev/nvme0n1p9   27G   18G  8.3G   68% /persistent
tmpfs           4.7G   20K  4.7G    1% /run/user/1000
hotime@T5s:/persistent$ sudo du -sh /persistent/
17G     /persistent/

其中:df -h中显示 /persistent分区有8.3G,而 du -sh /persistent/显示有17G。

Reply View the author