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 08-02-2007, 04:51 PM   #1
moljac024
Member
 
Registered: May 2007
Location: Serbia, Europe
Distribution: Arch Linux
Posts: 54

Rep: Reputation: 15
Help with partition sizes


Hi, this is my first post at LQ, i really just need a simple and straightforward answer.

If i want to install a linux distro with the following seperate partitions

/boot
/tmp
/var

How big should each be ?

I'm mainly interested in the size of the /var partition

I would give /boot 512 mb, /tmp 4.5 GB (needed for burning DVDs), how much space should i give the /var partition ?

NOTE: I am already using fedora 7 (but without the /var partition, i want to add it) so i am not a total linux noob

NOTE2: I am using my computer as a desktop, not a server

So, how much space does /var need ?
 
Old 08-02-2007, 04:57 PM   #2
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 66
It all depends on your usage of this particular Linux PC. My suggestion would be to run
du -hs /var

and expand the figure by 25%.

Yves.
 
Old 08-02-2007, 05:11 PM   #3
Poetics
Senior Member
 
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181

Rep: Reputation: 49
Make sure to have a root ("/") partition as well. As for the size of Var, it depends on a number of factors, including how big you expect your logs to get, whether you are running a webserver (and thus having your web files in /var, et cetera). Boot you can get away with <20mb. Temp, I don't know as I regularly clear out all tmp directories.
 
Old 08-02-2007, 06:41 PM   #4
moljac024
Member
 
Registered: May 2007
Location: Serbia, Europe
Distribution: Arch Linux
Posts: 54

Original Poster
Rep: Reputation: 15
Thanks for the responses!

I have run du -hs /var (what a neat little command) and this was the output:

Code:
171M    /var
So, I should be fine with a 512 MB sized /var partition, right ?

Last edited by moljac024; 08-02-2007 at 06:43 PM.
 
Old 08-02-2007, 11:10 PM   #5
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
If you can spare the space, I would make it at least 1GB. In fact, I always make mine 2 to 3GB. It means I have to clean it out less often. As for boot, I always reserve 128MB and that is still plenty. You can even drop boot altogether - it will simply be placed on your / partition. I do recommend a separate, ext3 formatted boot if you intend to use the xfs filesystem for /.
 
Old 08-02-2007, 11:52 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,120

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Quote:
Originally Posted by jay73
I do recommend a separate, ext3 formatted boot if you intend to use the xfs filesystem for /.
Interesting. Given the inordinately low (update) traffic on a typical /boot, why the need for a journal ???.
 
Old 08-03-2007, 12:21 AM   #7
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
A journaled fs means less frequent fscks. Does it matter? Well, on a partition that small it may be hardly relevant so I guess it's ultimately more of an "aesthetic" argument: if all the rest is journaled, why not make that one partition journaled as well if it doesn't hurt.
What I really meant to say, in fact, was that the boot partition is best not formatted to xfs.

Last edited by jay73; 08-03-2007 at 12:25 AM.
 
Old 08-03-2007, 12:36 AM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,120

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Quote:
Originally Posted by jay73
What I really meant to say, in fact, was that the boot partition is best not formatted to xfs.
Ahhh - o.k. then; wasn't the way I read your post originally.

As for the ext2/3 thing, for the partition sizes you're talking not an issue - but I've seen questions from people allocating 32Meg, then wanting to use ext3 ....
 
Old 08-03-2007, 07:47 PM   #9
moljac024
Member
 
Registered: May 2007
Location: Serbia, Europe
Distribution: Arch Linux
Posts: 54

Original Poster
Rep: Reputation: 15
Ok, thanks for the answers..

How about any other folders in / that would be nice in their own partition ?

Any suggestions ?
 
Old 08-03-2007, 08:05 PM   #10
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
That depends on the intended use. Most people don't even need a separate tmp or var partition and even boot can placed under / as long as you use ext2/ext3. If you multi-boot Linux systems, you may even want to leave /home under / and reserve one partition to store the personal data from all of your distros.
 
  


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
partition sizes GothManiac Linux - Desktop 13 04-30-2007 11:45 PM
Help with partition sizes S.V. Linux - Newbie 8 12-28-2006 10:38 AM
partition sizes fstreed SUSE / openSUSE 10 05-07-2005 08:58 AM
Partition Sizes JonyKyte Linux - Newbie 12 12-23-2003 07:48 AM
partition sizes scrambled2k3 Linux - Newbie 7 02-21-2003 02:32 PM

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

All times are GMT -5. The time now is 11:27 PM.

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