You are not logged in.

#1 2020-05-08 11:46:24

xad21
Member
Registered: 2020-04-18
Posts: 4

advice for partitioning on a running system

Hello, i was not sure how to split my hard-drive after my installation and i ended up with this:

Device          Start       End   Sectors  Size Type
/dev/sda1        2048 209717247 209715200  100G Linux filesystem
/dev/sda2   209717248 218105855   8388608    4G Linux swap
/dev/sda128 468869120 468877278      8159    4M BIOS boot

between sda2 and sda128 are around ~150gb disk space left. I'm thinking about two options:
1.  removing /sda2 swap and resizing sda1 with the free sectors and adding the swap at the end
2. creating a new partition between swap and boot (maybe creating a new home)

Any other recommendations and in general which options would make more sense?

Offline

#2 2020-05-08 11:59:03

JimDeadlock
Member
From: London
Registered: 2019-03-20
Posts: 83

Re: advice for partitioning on a running system

You should have separate / and /home partitions, so what I would do is shrink sda1 to 20Gb and keep it for / then use the large empty space for a new /home partition.

Offline

#3 2020-05-08 13:09:29

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: advice for partitioning on a running system

JimDeadlock wrote:

You should have separate / and /home partitions

Why? I never use a separate home and root partition.

xad21, either option you mention will work fine. You may not even need a swap partition (many people don't use them, or use a swap file instead).

But what is causing you to need more space for root? 100G seems like plenty.

Offline

#4 2020-05-08 22:27:50

xad21
Member
Registered: 2020-04-18
Posts: 4

Re: advice for partitioning on a running system

2ManyDogs wrote:

But what is causing you to need more space for root? 100G seems like plenty.

No particular reason, i am just not sure what else to do with the free disk space. I saw so many different partitioning scheme and got confused a bit which might be the most suitable.
What are the advantages in having a designated /var and /home? Or in general how would a more sophisticated partition scheme look like and what are its field of application?

Offline

#5 2020-05-08 22:29:15

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: advice for partitioning on a running system


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#6 2020-05-09 03:42:08

adamc83
Member
Registered: 2008-06-01
Posts: 42

Re: advice for partitioning on a running system

I have a similar sized drive and gave 64G to /, 256M to /boot, and the rest to /home. Having just / and /boot is a reasonable option too, though I do them differently so I can use ext4 on / and btrfs on /home. In my opinion 20G is far too little for /, especially if you have something that is going to take up a lot of space in /var, like Docker, web sites, or databases.

Offline

Board footer

Powered by FluxBB