LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch
User Name
Password
Arch This Forum is for the discussion of Arch Linux.

Notices


Reply
  Search this Thread
Old 11-24-2016, 04:09 AM   #1
CarpCharacin
LQ Newbie
 
Registered: Nov 2016
Location: Salt Lake City, UT
Posts: 25

Rep: Reputation: Disabled
Partitioning SSD


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?
 
Old 11-24-2016, 04:56 AM   #2
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
How are you planning on using it?
 
Old 11-24-2016, 05:07 AM   #3
Jjanel
Member
 
Registered: Jun 2016
Distribution: any&all, in VBox; Ol'UnixCLI; NO GUI resources
Posts: 999
Blog Entries: 12

Rep: Reputation: 364Reputation: 364Reputation: 364Reputation: 364
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!

Last edited by Jjanel; 11-24-2016 at 05:09 AM.
 
Old 11-24-2016, 08:14 AM   #4
CarpCharacin
LQ Newbie
 
Registered: Nov 2016
Location: Salt Lake City, UT
Posts: 25

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by descendant_command View Post
How are you planning on using it?
I am going to use it for everything. It is going to be the only drive in the computer.
 
Old 11-24-2016, 09:21 AM   #5
snowday
Senior Member
 
Registered: Feb 2009
Posts: 4,667

Rep: Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411
Arch is a little different from other Linux distributions. You must read the documentation if you want to have a positive experience!

https://wiki.archlinux.org/index.php/Installation_guide
https://wiki.archlinux.org/index.php/Partitioning
https://wiki.archlinux.org/index.php...rtition_scheme

Enjoy!
 
Old 11-29-2016, 03:45 PM   #6
CarpCharacin
LQ Newbie
 
Registered: Nov 2016
Location: Salt Lake City, UT
Posts: 25

Original Poster
Rep: Reputation: Disabled
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.
 
Old 11-30-2016, 08:23 AM   #7
snowday
Senior Member
 
Registered: Feb 2009
Posts: 4,667

Rep: Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411
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.
 
Old 11-30-2016, 09:35 AM   #8
CarpCharacin
LQ Newbie
 
Registered: Nov 2016
Location: Salt Lake City, UT
Posts: 25

Original Poster
Rep: Reputation: Disabled
How big should I make the swap partition of I have 64 gb of ram?
 
Old 11-30-2016, 10:00 AM   #9
snowday
Senior Member
 
Registered: Feb 2009
Posts: 4,667

Rep: Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411
Quote:
Originally Posted by CarpCharacin View Post
How big should I make the swap partition of I have 64 gb of ram?
Anywhere from 0gb (no swap partition) to 128gb (twice your RAM), depending on your needs. As the Arch documentation clearly states.
 
Old 11-30-2016, 10:01 AM   #10
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,987

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
Quote:
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?
 
Old 11-30-2016, 11:09 AM   #11
CarpCharacin
LQ Newbie
 
Registered: Nov 2016
Location: Salt Lake City, UT
Posts: 25

Original Poster
Rep: Reputation: Disabled
32gb of ram probably would have been fine, but 64gb was on sale for a good price. I ant to do 3d modeling for 3d printing stuff.

Last edited by CarpCharacin; 11-30-2016 at 03:22 PM.
 
Old 11-30-2016, 02:18 PM   #12
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,987

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
3d modeling/printing is ram intensive so 64GB of ram makes sense for you.
 
1 members found this post helpful.
Old 12-01-2016, 03:33 AM   #13
Jjanel
Member
 
Registered: Jun 2016
Distribution: any&all, in VBox; Ol'UnixCLI; NO GUI resources
Posts: 999
Blog Entries: 12

Rep: Reputation: 364Reputation: 364Reputation: 364Reputation: 364
Yea 64G ram! Google: why linux|unix swapping isn't good
*I* 'IMcrazyHO' wouldn't make a swap partition! 'TMI':
http://wiki.archlinux.org/index.php?title=Swap

Jump in & try ... (I'm a fan of 'just re-install' [if I change my mind] )

Last edited by Jjanel; 12-01-2016 at 03:41 AM.
 
Old 12-01-2016, 01:14 PM   #14
CarpCharacin
LQ Newbie
 
Registered: Nov 2016
Location: Salt Lake City, UT
Posts: 25

Original Poster
Rep: Reputation: Disabled
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.
 
Old 12-01-2016, 01:39 PM   #15
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
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.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Partitioning and Using SSD with Slackware rshepard Slackware 10 01-09-2014 02:14 PM
SSD Partitioning OpenSuse 13.1 cxiii SUSE / openSUSE 6 12-11-2013 05:47 PM
SSD partitioning for fedora 19 distro justin thyme Linux - Hardware 5 11-18-2013 07:31 AM
SSD partitioning aloisius-a Linux - Hardware 4 02-18-2011 01:34 AM
SSD File System Partitioning jaycee4 Linux - Newbie 7 09-18-2009 03:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch

All times are GMT -5. The time now is 08:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration