Skip to content

New install, partitions question

Hi everyone,

I have to do a new installation on 240Gb SSD, I was thinking of doing the 4 partitions that are recommended on the wiki: efi, swap, root and home.

efi: 200M should be enough, also because I'm NOT going to dual boot, I'll only have arch.

swap: having 4 gigabytes of ram, i was thinking of making a mini partition of 2gb, i don't care about hibernation.

root: I was reading that 30Gb should be enough but honestly I've seen conflicting opinions.

home: the rest of the space.

​

At this point my questions are:

swap: considering that I don't use games, the heaviest load I can give to the pc is clion + Firefox (with several tabs) is a swap of only 2Gb okay? in the last installation I had 4Gb ram + 8Gb Swap and very often I had huge slowdowns, even though the swappiness was = 1.

root: I saw that its size changes according to the needs, personally I do not install large quantities of programs, apart from those mentioned above a little stuff ... is 30Gb ok or can I put even less?

​

Last thing about partition file systems.

Last time I used ext4 for root and home, but I saw that many recommend btrfs, what do you think?

Also considering that I'm interested in making periodic backups in case something breaks (so backup only root?)

​

Thanks a lot to everyone, I wish you happy holidays.

2 points28 comments
Open on Reddit
About this post
Posted
Archived
Score
2 · 63% up
Kind
Text
ID
kl5obb

Author

12
posts
22
comments
0
media
View profile

35 comments

My two cents:

  1. For the boot partition: use the minimum recommended size - do not waste size here.
  2. If you have a single SSD, do not make extra partitions for "/" and "/home"

I use xfs on my laptop and on several servers with massive disk io - it is fast and stable.

3 points

Any reason you chose xfs? I am sure I can find a billion threads on ext4 vs xfs but I'm just curious on your reasoning.

1 points

I used to use Ext4 on my laptop for years and had no issues. The reason I switched to XFS on my laptop is simply because I know XFS better due to my work with big storage systems where it does a good job on being fast and reliable and recovers fast if something has gone wrong.

3 points

EFI: 100 MB is plenty

I've been using btrfs for years. If you do, you will not need a fourth partition for /home. / and /home should just be subvolumes.

2 points

100MB on efi? What bootloader? I'm using a tiny optane SSD so every MB is precious.

2 points

mount /mnt/efi instead of /mnt/boot set grub install directory /efi instead of /boot

In this way, the boot images are saved in /boot directory which is on your main disk space. This way you solve your space issues for futures, dual boots, multiple kernels etc.

2 points
unknown author

Deleted before we saved it.

1 points
unknown author5 hidden

Deleted before we saved it.

1 points

I have read that it is safer to create two separate partitions so that if something happens to the system I just need to fix root. Can I do this also with subvolumes or does something change?

1 points

Partitioning like this has been made for performance reasons in the past (on spinning disks) - there are also use cases where creating a Image of a partition can be handy.. IMO it makes only sense if you really have a planed out use case for it. On your laptop/desktop it's the best to use one partition for all persistent data.

If something is that wrong that you cannot boot and need to fix files by hand, then you can always boot from USB (e.g. as you probably will do to install arch on your machine) and fix things from there.

2 points

i have arch along with clear and windows and my linux partitions are usually:

1GB boot

4GB Swap

0GB Home (I usually don't separate home and root)

50-60 GB root

For important files and backup i have a totally different NTFS partition that i can access anytime via my windows or linux install.

1 points

I do. Separate that shizz, why not? If your home partition is separate, restoring a system is a LOT faster and easier.

1 points
unknown author

Deleted before we saved it.

1 points

You should have an external backup anyway, so just copy everything you need from that on a new install
even on a slow HDD this will be most likely faster for someone who isn't really experienced in restoring their /home partition and will need to "research" that, also all the time savings in not needing to resize those partitions in case you ever run out of enough space in root

0 points

My partitions are

4GB efi

8GB swap

34GB root

and rest of the disk for home

and I use .ext4, and it seems like fine. I never tries btrfs before

1 points
unknown author1 hidden

Deleted before we saved it.

1 points
unknown author

Deleted before we saved it.

1 points

I have a 250M partition for boot, with systemd-boot and an uncompressed minimal initramfs, it's literally just enough room for my needs.

My root partition is about 15.7G (it's the rest of my optane drive) and is more than sufficient for my gaming rig. Everything else goes on a 1tb home partition I have on an HDD

1 points

Use swapfile instead of swap partition. You can change swapfile size later without touching partitions

1 points

I think, if you dont really explicitly need to separate root and home, then don't. It wiuld be easier giving that you only have one disk so in the future you wont face a problem with root size or home size.

1 points

If you aren't completely sold on btrfs, you can do ext4 with LVM for /, /home, and swap and have them all on one partition. You can then resize the LVs as needed. With /, /home, and swap on separate LVs you don't have to get your "partition" sizes perfect the first time.

Also, my / is 100G and I am currently using 18% of that lol. But I have had an install use more than 30G as well.

-1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.