Skip to content

Hello Arch Linux users, I wanted to ask if there is something you hate or love about the way you partitioned your drive?

I have been planning to move to Arch for sometime now. Across the internet I've read the installation is the most difficult part and you need to be ready. So I wanted to do a some research before actually getting down to it. The thing is, in every tutorial its been said that, "you can partiton your drive however you want, I am doing it this particular way. Everyone has a different opinion on the matter". So I wanted to know if anyone partitioned it a certain way and loved it/hated it somewhere down the line, and how did you partition it.

39 points101 comments
Open on Reddit
About this post
Posted
Archived
Score
39 · 100% up
Kind
Text
ID
32003x

Author

1
posts
0
comments
0
media
View profile

112 comments

Personally, if you have the room - make a larger /boot partition, then use grub2 and add in the .iso boot lines.

Yes, I'm saying store an entire arch ISO in /boot for "Oh fuck" reasons.

Best safety net ever.

93 points

That's... Really really clever. I'm definitely seeing this up on my new install.

31 points

Holy shit, that's actually a really good idea. Sadly, cheap SSD says no. I will definitely do something like this for future installations.

12 points

Funny, I got called an idiot for mentioning I was attempting to do just this on #archlinux. Never actually found out why, though.

10 points

Can you post an example of your grub2 config to load the .iso, last time I tried that I got a broken boot loader.

3 points

Another alternative is to setup a PXE boot server and do network boots. You can stick as many different isos in there as you want. I even have a script that builds the current arch live and dumps it in their. You can even do UEFI secure boot.

This way all your systems can benefit.

Having said that, I wish I had done what you suggested for my server. Although I can probably just add the boot entries directly without needing a dedicated boot partition. Would only be an issue if the root partition becomes unreadable for some reason. But my isos are on a separate drive anyway.

2 points

Can't grub2 read ext3/4 filesystems? Why not just keep it somewhere on your normal filesystem and ask grub to mount your partition and load the .iso from there?

1 points

There are more configurations where this is not possible than there are where it is - alternate filesystems, lvm, FDE, and more.

2 points

Nice. I put my ISO in a separate partition instead of boot.

1 points

Doing this on my grubarch usb keys. Additional isos on 2nd partition.

1 points
unknown author

Deleted before we saved it.

1 points

I've got a separate partition just for bootable isos; I've got Arch, gparted live cd and memtest86+ there

1 points

My layout:

/boot (ESP)
/     (BTRFS)

I'm happy.

26 points

My own is:

/boot (also ESP)    
luks -> btrfs -> {/,/home} on separate subvolumes     
/luks -> 4 gigs of swap, just in case      
                                  

4 points

I do the exact same partition layout (with btrfs subvolumes of course). It gives you maximum flexibility later, with the exception of swap. Works great with gummiboot as well.

1 points

i have been doing it like this forever using ext4:

/ (20GB)

swap (2GB)

/home (The rest of the disk)

18 points

Basically, exactly what the beginner's guide says? Because my setup is the exact same haha.

9 points

I do the same but also have a /opt ext4 partition for custom software installs.

1 points

Is there any advantage to making a partition just for swap? I've never needed swap so don't make one, but if I were to, what's wrong with swap files?

2 points
unknown author

Deleted before we saved it.

1 points

I've got my SSD partitioned as 24GB ext4 for /, and 36GB FAT (excuse me, NTFS) for my Windows install.

I cannot remember the last time I booted into Windows. Why did I do this to myself. Every day of my wretched life is filled with regret... But I can't just delete my Windows partition and reclaim all that tasty solid-state real estate, because what if some day in the distant future I want to play video games?

The Year of the Linux Gaming PC cannot get here soon enough.

12 points

FAT? Can you even do this with Vista and newer? (If you've got XP there, just install Wine, your games aren't using that many unsupported features anyway...)

6 points

Alright, confession, I just checked fdisk -l and took an educated guess as to what "Microsoft basic data" was. Now that I think about it, it's probably NTFS. I don't know a whole lot about Windows and it's been about two years since I formatted the drive so just like whatever man.

2 points

Gaming with Wine is such a crapshoot. Some games work perfectly, others require the strangest adjustments to get things started, much less working well. Still, others just don't ever work.

1 points

I have one disk and one partition /dev/sda1. That's it. KISS. mkfs.ext4 /dev/sda1. Boom. Done.

11 points

Well, I sometimes hate that I didn't go with btrfs for snapshotting, checksumming, backups and general geekiness. But then a few days later I love that I didn't go with btrfs, when I hear reports of problems and when I am glad of just being able to get work done...

8 points

Yeah my system won't boot right now and I regret going with btrfs. I don't even use any of the features.

3 points

If you are on ext4, btrfs supports in-place converting to btrfs.

Maybe not now, but in the future.

2 points

Yeah, I know. But as I said, I also love not having to tinker with yet another part of my OS... Ext4 is boring but safe.

1 points

I wish I had made a separate ~ partition that was an unjournaled HFS+ so I could share it with my OS X install. I also didn't allocate any swap somehow (noob), so hibernate doesn't really un-hibernate.

7 points

Personally I stopped bothering with swap ages ago.

You can use a swapfile nowadays, Although it doesn't work on btrfs.

2 points

I just actually started a topic a few days ago because I plan on reformatting my laptop's drive. So, I have some regrets, but I've also been running with the same configuration (including the same installation of Arch) since I got the machine in December of 2010. So, it obviously hasn't been too bad.

Here is the topic: https://www.reddit.com/r/archlinux/comments/31nktt/dearest_archers_help_me_redo_my_laptops/

Basically, my regrets are that I have multiple btrfs partitions instead of one btrfs partition with subvolumes and quotas, and that I didn't encrypt from the start. If you don't feel like you need to encrypt your data, then that doesn't apply to you. I just don't want my laptop to be stolen and then have personal data scraped from it.

The one thing that I always do with Arch that I recommend others do as well is to keep /var separate (or even just /var/cache/pacman). Either as its own partition, or, if you are using btrfs, as a subvolume with a quota. That way, when you forget to clean pacman's cache for a few months, the worst thing that will happen is that your next upgrade will fail, as opposed to if you let it go for a year and fill up your whole hard drive with ancient packages.

I always separate /boot and /home, but that's just because that's how I used to do it (especially when I distro-hopped a lot). I'm going to stop doing that this next time.

If your use case is similar to mine (general purpose laptop), I'd say follow this logic:

  1. Do you want to encrypt your hard drive? If yes, you need a separate /boot partition.
  2. Do you have a reason that you don't want to use Btrfs? If no, go to 3. If yes, go to 4.
  3. Add a swap partition that is slightly larger than your RAM. Add one large btrfs partition to fill the rest. Create a subvolume for /var and give it a quota of 10 GB. Done.
  4. Make a partition for /var and a partition for the rest. Use a swap file instead of a partition. Done.
6 points

I just finished doing pretty much this with my laptop, after migrating from a 500Gb HDD to a 240Gb SDD. Want the step-by-step?

1 points

Sure do. I'd love to know what your layout was before, what you did to backup and transfer the data, and what your new partition layout is, etc.

1 points

I always hate the way I partition a drive... eventually.

6 points

I use 4 SSDs without any partitions at all. I use btrfs across all the drives. I have data in raid0 mode and metadata in raid1. I like this setup because when I go do ls /dev/sd* I can see only "sda sdb sdc sdd" and feel really cool.

3 points

To boot UEFI, you need an FAT32 EFI system partition (ESP), so your setup wouldn't work for people with recent motherboards. Sounds fast though.

4 points

I went with btrfs filesystem in one big partition after making the EFI and /boot partitions on my new laptop. I may stick a swap partition on the end now since I've found I can't recover properly from a hibernation. Btrfs doesn't do swap files, which an ext4 fs would write your memory to during hibernation. I'd read somewhere before that swap partitions were no benefit over swapfiles on modern systems, but that must have been before I decided to go btrfs.

3 points

I'd read somewhere before that swap partitions were no benefit over swapfiles on modern systems

That's true as long as the swap file is generated as a contiguous file of a set size.

2 points

One small /boot and the rest via LVM. Note that if you want to encrypt and hibernate you need a fixed key for your swap.

Also, do encrypt from the start.

2 points

Do you specifically leverage any of the advanced LVM features? If so, which ones, and have you firetested them or had to recover a filesystem using them?

I always found LVM more trouble than it was worth, as I had bad experiences with relying on validity of the state of the snapshot. Now, I just back up filesystems with rsync and forego LVM altogether.

2 points

I have a single ext4 partition for everything. It sucks. Don't make my mistake and take the time to plan your partitions, it's a pain to change it all around after the fact. Don't forget your full disk encryption (if you want it) and think about LVM or something on top so you can change your "partitions" (logical volumes) nice and easily in future.

2 points
unknown author

Deleted before we saved it.

2 points

I've got an ext4 root partition of 30gb. The other ~400GB is btrfs, for my /home. I hardly ever use the btrfs features, although I like the snapshot feature for backups.

1 points

My setup is:

512MB EFI system partition (FAT32)

~240GB / partition (ext4)

4GB swap partition

I guess I'm satisfied with it but I have no strong feelings either way. I wish I did what /u/Katana__ suggested though.

Also, the beginners' guide is the only tutorial you'll need when you're actually installing. Videos can be good if you're researching beforehand but when it comes to the installation, you'll want to be able to reference a concise page that covers all bases.

1 points

On my SSD I have my /boot, /, and windows partition. On my regular drive I have /home

I split it up because I have a ton more files in my /home than anywhere else, and am not too concerned about disk load times for them. Also, it gives me space for Windows, which I can boot into incredibly fast when I want to game.

As far as my experience goes, I haven't noticed a whole lot of other reason to worry about how you divvy the partitions. You can split the /var directory into its own partition, so no errant application logging heavily fills your entire disk and crashes it. You can have a separate /home directory so you can easily mount the files in another distro. If one drive fails, you only need to worry about the content that was on that drive (so the /home drive should be backed up to a dotfiles on a remote git repository, and all the other files on / can be recovered with a reinstall)

But in exchange, you have more to worry about with allocating enough space, some partitions filling faster than others, and remembering what /dev/sdc3 has on it (particularly more work when booting a Live CD and having to mount up all your partitions to chroot)

1 points
unknown author

Deleted before we saved it.

1 points
me@mymachine ~ $ lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0   477G  0 disk 
├─sda1   8:1    0   100M  0 part 
├─sda2   8:2    0   250G  0 part /win64
├─sda3   8:3    0   222G  0 part /
└─sda4   8:4    0   4,3G  0 part [SWAP]
sdb      8:16   0 558,9G  0 disk 
└─sdb1   8:17   0 558,9G  0 part /home
sdc      8:32   0 558,9G  0 disk 
└─sdc1   8:33   0 558,9G  0 part /winhome
sr0     11:0    1  1024M  0 rom
1 points

68 GB dm-crypt partition on a 128 GB SSD, of which the rest is unused (macbook air).

It's annoying (the Android SDK takes up 1/3 of the space), but I couldn't justify the cost in time and risk of reinstalling everything for the gained convenience (and less badly distributed disk wear).

1 points

Really simple layout here. I have an SSD (/dev/sda) for the OS and a HDD (/dev/sdb)for data.

/dev/sda1 30Gb / -> All OS stuff goes here
[ /dev/sda2 30Gb scratch partition/alternate distro ]
[ /dev/sda3 30Gb scratch partition/alternate distro ]
[ /dev/sda4 30Gb scratch partition/alternate distro ]

/dev/sdb1 2TB /data -> All my data (music, movies, pictures, documents, pr0n,...) goes here

I've found that this is both very simple and insanely flexible and I never understood the need for more elaborate partitioning schemes on a simple desktop. I can have multiple linux installations next to each other, for instance sometimes I like to try out Mint or Slackware, and still keep the same data across my installations.

For those who like to keep /home on a separate partition and let their data live there: I never do that. I don't like to mix /home between different installations because it always ends up being cluttered with configuration files and I don't like one installation to pollute the other with its settings. Then there's always the potential for uid/gid mismatches and version mismatches between the configuration files and databases.

1 points

I put var on my hdd but i didnt make it big enough so I am consistently cleaning up pacman cache etc. So if you partition a mount point for var, make it big. Mine is 4g and while it seems big it isn't enough. Alternatively, if I'm being a noob and there's an easy fix for this someone please let me know.

1 points
unknown author

Deleted before we saved it.

1 points

My usual setup doesn't use partitions, I use multiples drives instead. One for Arch, one for Windows, and one for the shared files. Yes it's overkill.

Right now there's a slight difference as I used my SSD to install Windows, I split it in two so I can have some SSD power when necessary on Arch as well.

A few years ago I had that kind of setup but using Windows's bootloader to chain on GRUB, since GRUB itself wouldn't start after the BIOS for some reason.

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.