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.
About this post
- Posted
- Archived
- Score
- 2 · 63% up
- Kind
- Text
- ID
- kl5obb
35 comments
My two cents:
I use xfs on my laptop and on several servers with massive disk io - it is fast and stable.
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.
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.
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.
100MB on efi? What bootloader? I'm using a tiny optane SSD so every MB is precious.
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.
I use grub2. My /boot (which includes /boot/EFI) is currently using 57 MB.
Deleted before we saved it.
Deleted before we saved it.
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?
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.
Deleted before we saved it.
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.
I do. Separate that shizz, why not? If your home partition is separate, restoring a system is a LOT faster and easier.
Deleted before we saved it.
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
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
4GB efi.... Why?
Deleted before we saved it.
Deleted before we saved it.
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
Use swapfile instead of swap partition. You can change swapfile size later without touching partitions
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.
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.