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.
About this post
- Posted
- Archived
- Score
- 39 · 100% up
- Kind
- Text
- ID
- 32003x
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.
That's... Really really clever. I'm definitely seeing this up on my new install.
Holy shit, that's actually a really good idea. Sadly, cheap SSD says no. I will definitely do something like this for future installations.
You could always but
/booton the HDD, if you have one.Funny, I got called an idiot for mentioning I was attempting to do just this on #archlinux. Never actually found out why, though.
I think it's because the arch install iso updates monthly.
Can you post an example of your grub2 config to load the .iso, last time I tried that I got a broken boot loader.
What does your menuentry look like?
Err, actually, I've been using syslinux on my chromebook, as it doesn't have enough space. My last system had it set up though...but that laptop's dead and gone. ;;
I'm probably a bit late, but I just set this up on my computer using the grub entry from
https://wiki.archlinux.org/index.php/Multiboot_USB_drive#Arch_Linux
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.
Why keep /boot on another partition then?
LVM, LUKS, etc.
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?
There are more configurations where this is not possible than there are where it is - alternate filesystems, lvm, FDE, and more.
Nice. I put my ISO in a separate partition instead of boot.
I've got to remember this when I reinstall.
Doing this on my grubarch usb keys. Additional isos on 2nd partition.
Tiny Core Linux was made for this sort of thing.
Deleted before we saved it.
I've got a separate partition just for bootable isos; I've got Arch, gparted live cd and memtest86+ there
My layout:
I'm happy.
My own is:
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.
i have been doing it like this forever using ext4:
/ (20GB)
swap (2GB)
/home (The rest of the disk)
Basically, exactly what the beginner's guide says? Because my setup is the exact same haha.
I do the same but also have a /opt ext4 partition for custom software installs.
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?
Deleted before we saved it.
Deleted before we saved it.
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.
VMs with GPU passthrough are the future.
Not the future. I'd hate it if VMs were the only way to game on Linux.
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...)
Alright, confession, I just checked
fdisk -land 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.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.
I have one disk and one partition /dev/sda1. That's it. KISS. mkfs.ext4 /dev/sda1. Boom. Done.
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...
Yeah my system won't boot right now and I regret going with btrfs. I don't even use any of the features.
If you are on ext4, btrfs supports in-place converting to btrfs.
Maybe not now, but in the future.
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.
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.
Personally I stopped bothering with swap ages ago.
You can use a swapfile nowadays, Although it doesn't work on btrfs.
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:
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?
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.
I always hate the way I partition a drive... eventually.
/- 50GB ext4/home- 50GB ext4and the remaining 200GB isn't used, at all.. I should mount it as the new
/bootsome day.lol
Oops
I meant
/homeI 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.
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.
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.
That's true as long as the swap file is generated as a contiguous file of a set size.
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.
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.
I use it for swap encryption so I can hibernate.
https://wiki.archlinux.org/index.php/Dm-crypt_with_LUKS/Swap_Encryption#With_suspend-to-disk_support
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.
Deleted before we saved it.
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.
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.
On my SSD I have my
/boot,/, and windows partition. On my regular drive I have/homeI split it up because I have a ton more files in my
/homethan 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
/vardirectory into its own partition, so no errant application logging heavily fills your entire disk and crashes it. You can have a separate/homedirectory 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/homedrive 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/sdc3has on it (particularly more work when booting a Live CD and having to mount up all your partitions to chroot)Deleted before we saved it.
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).
Really simple layout here. I have an SSD (/dev/sda) for the OS and a HDD (/dev/sdb)for data.
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.
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.
Deleted before we saved it.
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.