LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-23-2015, 07:19 AM   #1
whm1974
Member
 
Registered: Apr 2015
Posts: 142

Rep: Reputation: 28
How much space for the / partition?


OK when I built my system a few years ago and was installing Linux I divide my SSD into serprate partitions, ~60GB for / and the rest for /home. Now I'm wondering if I went overboard having that much space for /. Did I?
 
Old 05-23-2015, 07:56 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,847

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
That highly depends on your needs (and on other partitions). For example I have a separate /var and /tmp therefore 20 GB is more than enough for /.
 
Old 05-23-2015, 09:28 AM   #3
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,491

Rep: Reputation: Disabled
Mine is usually around about 5Gb, but I don't install a lot of programs.
Edit: Usually 2~3Gb is used.
 
Old 05-23-2015, 02:49 PM   #4
davidvNY
LQ Newbie
 
Registered: Apr 2015
Posts: 25

Rep: Reputation: 0
Quote:
Originally Posted by whm1974 View Post
OK when I built my system a few years ago and was installing Linux I divide my SSD into serprate partitions, ~60GB for / and the rest for /home. Now I'm wondering if I went overboard having that much space for /. Did I?
There's no real answer to that question. Through time and usage only you can determine the right size for your needs.

My root partition is 35G and it never reach to that size over the years. It is currently using only 9.75GB of the 35G.

If you're concern about space and you want to make the most of your space, you can see up your SSD as a LVM. With LVM, you can adjust the size of the partitions where needed. You can also do snapshots for backups and system restores.

Last edited by davidvNY; 05-23-2015 at 02:58 PM.
 
Old 05-23-2015, 03:15 PM   #5
whm1974
Member
 
Registered: Apr 2015
Posts: 142

Original Poster
Rep: Reputation: 28
Quote:
If you're concern about space and you want to make the most of your space, you can see up your SSD as a LVM. With LVM, you can adjust the size of the partitions where needed. You can also do snapshots for backups and system restores.
I have two 960GB SSDs. The second one has my Steam games on it. I'm not worried about running out of disk space anytime soon. I was just wondering since most Linux programs don't require a lot space, if I went overboard.
 
Old 05-23-2015, 03:53 PM   #6
davidvNY
LQ Newbie
 
Registered: Apr 2015
Posts: 25

Rep: Reputation: 0
Quote:
Originally Posted by whm1974 View Post
I have two 960GB SSDs. The second one has my Steam games on it. I'm not worried about running out of disk space anytime soon. I was just wondering since most Linux programs don't require a lot space, if I went overboard.
I understand. But to answer your question, most people will use a smaller size partition for root since most of the system files and programs are not that large. Also, some people will even make the root / partition as low as 5GB if they separate /boot, /usr, /opt, /var, /tmp, and /home into there own partitions.

Last edited by davidvNY; 05-23-2015 at 04:01 PM.
 
Old 05-23-2015, 06:07 PM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Quote:
if they separate /boot, /usr, /opt, /var, /tmp, and /home
not really needed in the last 10-15 years

drives WERE small in 2000

there is really NO need to have the major problems and hassle of separating " / "

/boot -- 200 meg ( fedora preupgrade needed 1 to 1.5 Gig )
/ ? 20 to 80 Gig
/home 100+ gig
SWAP 4 gig
 
Old 05-23-2015, 07:21 PM   #8
whm1974
Member
 
Registered: Apr 2015
Posts: 142

Original Poster
Rep: Reputation: 28
Quote:
SWAP 4 gig
I have 16 gigs of memory, do I really need SWAP?
 
Old 05-23-2015, 07:29 PM   #9
davidvNY
LQ Newbie
 
Registered: Apr 2015
Posts: 25

Rep: Reputation: 0
Well, I don't as swap is never used. The command free -m always shows zero swap usage on my system which has 8GB of ram.

However, on laptops swap is important for proper hibernation or sleep.

Last edited by davidvNY; 05-23-2015 at 07:30 PM.
 
Old 05-23-2015, 08:59 PM   #10
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 4,005
Blog Entries: 26

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
Even on my laptops with 16 GB ram, I do like to have a swap partition equal in size to the amount of ram. As dividvNY said, it helps with hibernation, which on this particular laptop (laptop 4 in my signature), hibernate is used quite extensively since it's an SSD, there's no reason not to use hibernate instead of sleep.
 
Old 05-23-2015, 09:04 PM   #11
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,324
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
I recently had a Slackware system on which I had allocated 20GB for / (everything else was /home) almost run out of space on /. I had installed many programs on that computer as it started with Slackware 13.37 and ran --Current up through about a month ago.

I erased and reinstalled and allocated 25GB for /.

Frankly, my advice would be that, if your system is working for you, don't worry about having a / that may be larger than optimal, but, if you ever reinstall, perhaps allocate less space to /. In other words, don't worry about it unless you have to.

As for swap, since hibernate is a feature I don't use, ever, if I have 4GB of RAM or more, I have adopted a rule of thumb that swap = 1/2 x RAM.

Last edited by frankbell; 05-23-2015 at 09:08 PM.
 
Old 05-24-2015, 10:49 AM   #12
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,142

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
I have 10 GB for root, and it's half empty. But you do need more if you use a rolling release distro, I've read: Arch recommends 15-20 GB.
 
Old 05-26-2015, 12:29 PM   #13
ron7000
Member
 
Registered: Nov 2007
Location: CT
Posts: 248

Rep: Reputation: 26
i used to put /home on a separate partition but found i either needed more space on /home or more space on /. Any which way i eventually experienced saying to myself... i wish i didn't format it with those sizes.
so now i just have my less than 200mb boot partition and the rest of the disk is / containing everything. i never really saw a good reason or made use of having a separate partition for /home or any other folder.
 
Old 05-26-2015, 12:45 PM   #14
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
On my desktop I take half my 62GB SSD (60 GB) for my / file systems and the rest are on other drives. I've had my / up to 23GB by downloading and compiling my own kernel but thats about my limit. I have a swap file of 64GB (twice RAM), on a spinny disk otherwise used for media, in case hibernate ever works on Linux or I want to check out the latest web site known to flood memory.

Last edited by 273; 05-26-2015 at 01:03 PM. Reason: typing the sizes wrong.
 
Old 05-26-2015, 12:56 PM   #15
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
It completely depends on your usage. I have systems with used space on / (includes everything but /home) ranging from 2.5 GB to 32 GB. You should not go above 75 usage, especially with an SSD, which means the / partition would need to be 4-43 GB for those systems. As you can see, there's a very wide range, which depends on your usage.

60 GB is likely overkill if you have /home on its own partition, but depending on what you do with the system it might not be that overkill. For example, I do a lot of embedded work, sometimes with FPGA/CPLDs. The Xilinx ISE for their FPGAs installs in /opt and is 18 GB alone. Add a few more cross compilers, programs, etc. and you can quickly hit 30-40 GB.

Most of my systems use around 20-25 GB on /, FYI.

Last edited by suicidaleggroll; 05-26-2015 at 01:00 PM.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Available space & used space of partition not tallying? ravisingh1 Linux - Hardware 4 04-27-2014 03:45 AM
partition space and disk space usage and free don't match nsic Linux - Newbie 3 02-22-2013 12:57 PM
Possibility to create swap partition if extended partition is out of space? bhavisavla Linux - Newbie 1 09-12-2011 06:39 AM
Removing Linux Partition and merging that space with my other Windows Partition RamenBooko Linux - General 3 10-11-2007 02:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:57 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