Partition size guidance and Swap Partition questions

Kernels & Hardware, configuring network, installing services

Partition size guidance and Swap Partition questions

Postby k829king » 2020-05-18 10:33

I've just upgraded my 120Gb SSD to 240Gb, I used clonzilla to create an image and restored it, so the partition sizes are still as they were from the 120Gb.

First the mount point for root ( / ) shows used 8.7G of 9.2G, would it not be a good to increase this a little?

Surely logs under /var, and additional software added in under /usr would all start taking more space over time?

I'm thinking about using the new space for dual boot say current Buster and Sid, could I use the same Swap partition for either since only one active at one time, or do I need to create two swap partitions?

for reference
Code: Select all
$ df -h
Filesystem      Size  Used Avail Use% Mounted on
udev             32G     0   32G   0% /dev
tmpfs           6.3G  1.5M  6.3G   1% /run
/dev/sda2       9.2G  8.7G     0 100% /
tmpfs            32G     0   32G   0% /dev/shm
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs            32G     0   32G   0% /sys/fs/cgroup
/dev/sda3       3.4G  1.6G  1.6G  50% /var
/dev/sda5       644M  3.1M  594M   1% /tmp
/dev/sda6        34G   18G   15G  55% /home
/dev/sda1       511M  5.1M  506M   1% /boot/efi
tmpfs           6.3G   16K  6.3G   1% /run/user/1000
k829king
 
Posts: 69
Joined: 2018-08-26 09:47

Re: Partition size guidance and Swap Partition questions

Postby Head_on_a_Stick » 2020-05-18 19:42

k829king wrote:First the mount point for root ( / ) shows used 8.7G of 9.2G, would it not be a good to increase this a little?

Yes.

k829king wrote:Surely logs under /var, and additional software added in under /usr would all start taking more space over time?

Yes. Log size can be limited though, see journald.conf(5).

k829king wrote:could I use the same Swap partition for either

Yes.
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12744
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Partition size guidance and Swap Partition questions

Postby santosha » 2020-05-19 23:56

Hello k829king,

as the previous post suggested both increasing root filesystem size and using swap for both systems is a good idea.

How much memory do you have and how do you use the system? If you have plenty of memory, consider disabling swap to disk and setting up zram. If you are tight on memory and swapping is a regular occurence, consider setting up zwap.

https://wiki.debian.org/ZRam

For the management of your disk-space, have you considered setting up LVM? It allows you to resize volumes easily later when you need more space.

regards, santosha
santosha
 
Posts: 7
Joined: 2020-05-11 19:47


Return to System configuration

Who is online

Users browsing this forum: No registered users and 16 guests

fashionable