You are not logged in.
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
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
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
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
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
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