Перейти к содержимому

Куда ушел мой жесткий диск?

1

После установки 120 ГБ SSD на мой компьютер я запустился df -hи получил такой результат:

Filesystem Size Used Avail Use% Mounted on /dev/mapper/fedora-root 50G 3.8G 43G 9% / devtmpfs 1.5G 0 1.5G 0% /dev tmpfs 1.5G 152K 1.5G 1% /dev/shm tmpfs 1.5G 860K 1.5G 1% /run tmpfs 1.5G 0 1.5G 0% /sys/fs/cgroup tmpfs 1.5G 16M 1.5G 2% /tmp /dev/sda1 477M 101M 348M 23% /boot /dev/mapper/fedora-home 58G 5.6G 49G 11% /home 

В средстве просмотра файловой системы nautilus он показывает, что мой компьютер имеет общую емкость 52,7 ГБ. Почему не 120 ГБ? [править: в системных настройках панель сведений показывает пространство на жестком диске 114 ГБ]

Я предполагаю, что это потому, что 120GB был разделен между fedora-rootразделом и fedora-homeразделом. Это правильно? Если так, я должен изменить размер fedora-rootраздела и дать больше места fedora-home? Я хочу получить как можно больше места на жестком диске объемом 120 ГБ.

552 просмотра
CamelBlues спросил 12 лет назад
C 185

2 ответа

2

I assume this is because the 120GB was split between the fedora-root partition and the fedora-home partition. Is this correct?

Yes.

If so, should I resize the fedora-root partition and give more space to fedora-home? I want to get as much space out of the 120GB hard drive as possible.

The root partition is where all installed programs will reside. The home partition will hold (parts of) your personal data, as well as cache and configuration files.

If you have a traditional HDD as well, 58 GiB should be enough for the home partition. The is no need to store your entire media library on your fastest hard drive.

If you do not have additional drives, I'd make the root partition a bit smaller. 32 GiB are usually enough. All depends on how many programs you are going to install.

Finally, you don't need two partitions. If you mount the home partition elsewhere, you can copy the contents of the home partition inside the /home folder of the root partition and remove the home partition completely. Having a single partition has obvious advantages, but it makes reinstalls a little bit more difficult.

Dennis ответил 12 лет назад
D 40 240
0

it seems that fedora split the drive in / and /home. Normally around 10-20 GB for / is enough - and the rest for /home. But this depends on the number of programs you have installed.

[Comment @Dennis] Having a /home partition makes most sense if multiple users are working on one computer/server. If you are the only user or know the other users, only one partition is needed. If another user fills up the drive and it is split, he/she can only fill up the /home partition and not the / partition.

разница между 114 ГБ и 120 ГБ заключается в том, что производитель жестких дисков видит 120 ТБ как 120 * 1000 * 1000 МБ. Наутилус, кажется, использует 1024 (2 ^ 10): 120 * 1000 * 1000/1024/1024 = 114

Ronny Lindner · 12 лет назад · 0
Ronny Lindner ответил 12 лет назад
R 11