ArchThis Forum is for the discussion of Arch Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am planning on building a new computer. I am going to install arch linux. I am going to use a samsung 512gb 950 pro SSD. My question is, how should I partition it? What should the partition sizes be?
It's like asking: 'how should I design my new house?' Crazy-me does 1 huge room! (all /)
But this web-search turns up a lot: arch linux ssd partition sizes
(I vaguely remember reading concerns unique to SSD [vs. old hdd]; LQgurus' comments?)
Congrats on nice new system! Best wishes & ENJOY!
Couldn't I just use one main partition? I want it to show up as one drive, not multiple drives because it is one drive. If I need to separate files, I will just create folders. Do I need a swap partition? What is it for? I want it to just show up as one drive and I want to have everything on it. I will not be dual booting, so I want to make all of the space on that drive available.
Your questions suggest you have not read the must-read Arch Linux documentation. I'll cut and paste a few excerpts that answer your specific questions (but I encourage you to read the rest).
Quote:
Partition scheme
There are no strict rules for partitioning a hard drive
Quote:
Single root partition
This scheme is the simplest and should be enough for most use cases. A swapfile can be created and easily resized as needed. It usually makes sense to start by considering a single / partition and then separate out others based on specific use cases like RAID, encryption, a shared media partition, etc.
Quote:
Swap
A swap partition provides memory that can be used as virtual RAM.
How big should I make the swap partition of I have 64 gb of ram?
Depends what you're doing but with that much ram and normal type use cases, you would never run out of ram. I have 16GB and never go into swap!!! Exception would be if you intend to "hibernate" rather than "sleep" your system. Hibernation takes the contents of ram and writes it to swap when shutting down the system. When you power up again, you can return to the state you were in before shutdown by reading the ram state from the swap partition and reconstituting it. Sleep preserves the contents of ram by supplying power to ram during sleep and shutting down everything else on your system. Hibernation does speed up the boot process from a standard hard drive but with an SSD there is no speed up advantage on boot when using hibernation.
Long story short, if you intend to use hibernation then you need a swap partition at least as large as your amount of ram. If not, I would use a minimal swap partition of 1 or 2GB and you would probably never use it. The only reason I would include it would be certain processes expect to see swap somewhere and if none is detected it may cause problems. Also, 64GB of ram seems like way overkill for most use cases; 16 to 32GB of ram is what you would normally see in most builds. Exactly what are you planning on doing with your new build and why do you think you need that much ram?
I want to be able to hibernate the computer. I don't want to have to re install the OS. I don't think I need a 128gb swap partition. How big should I make it? I am not sure so that is why I am asking here. How big would a distro like ubuntu or debian make the swap partition for 64gb of ram? I am just trying to get an idea of how large I should make it.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
Don't use a swap partition at all. Set your system up without one (the installer may mention it but will allow it) then, if you find you manage to start to run out of RAM, set up a swap file instead based upon the experience.
As to general partitioning -- having separate / and /home allows for quick re-install without loss of setting information. However, keeping /home between installs may not be worth it.
Keeping a data partition is worth a look, so you don't erase the resuts of your work because you accidentally nuked your system, but means deciding upon a / partition size and that isn't always obvious.
So, in short, if you don't mind losing your data when reinstalling the OS then one partition mounted on / and no swap is fine.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.