LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-05-2002, 12:14 AM   #1
vector
Member
 
Registered: Jan 2002
Location: Corvallis
Distribution: Slackware 10.0
Posts: 48

Rep: Reputation: 15
Recommended partition size for each filesystem?


i would like to setup more then 1 partition on my linux box when i install it, and was wondering what you guys would recommend for the partition sizes for these various filesystems, I've got a 10gig HD, so i dont have to worry too much about space:

swap (512meg)
/ (256meg)
/tmp (128meg)
/var (256meg)
/usr (1024meg)
/usr/local (600meg)
/home (2048meg)
/scr0 (?)

and any other partitions you can recommend? the sizes in () are what i've found just searchin websites. are they good? or bad.

Vector
 
Old 01-05-2002, 01:48 AM   #2
taz.devil
Senior Member
 
Registered: Nov 2001
Location: Wa. State
Distribution: Slackware
Posts: 1,261

Rep: Reputation: 45
How much of the 10G's do you have to use? You really don't NEED that many partitions, but you can. The swap could be lower depending on how much RAM you have. This is MY opinion so of course it's not law (it should be) LOL!!! Assuming you can use the whole 10G's I would do this:

/ = 9,750MB
/swap = 250MB

There you have it...This is just how I like to have mine, other ideas may work also. It's your preference.
 
Old 01-05-2002, 01:50 AM   #3
vector
Member
 
Registered: Jan 2002
Location: Corvallis
Distribution: Slackware 10.0
Posts: 48

Original Poster
Rep: Reputation: 15
i can use the whoel 10gig, its dedicated for linux. but i would prefer more partitions rather then just / and swap
 
Old 01-05-2002, 01:59 AM   #4
dorward
Member
 
Registered: Sep 2001
Distribution: Gentoo
Posts: 760

Rep: Reputation: 31
Putting everything (except swap) in one big partition is certainly a bad idea.

At the very least I would put /home on a different partition so that is can survive the rest of the system being blown away.

Having /var is quite a good idea if you are running a newserver or doing a lot of logging.

My layout is

Code:
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda6             3.1G  1.5G  1.4G  51% /
/dev/hda5              15M   14M  658k  96% /boot
/dev/hda9             8.5G  6.2G  2.2G  73% /home
/dev/hdd7             9.3G  8.0G  1.3G  86% /media
/dev/hdd5             9.3G  7.1G  2.2G  76% /media/video
/dev/hdd3             9.3G  1.8G  7.5G  20% /mnt/iso-images
/dev/hda8              11G  6.0G  5.1G  54% /usr
... although I doubt its as efficient as it could be.
 
Old 01-05-2002, 11:58 PM   #5
DMR
Member
 
Registered: Jun 2001
Location: Fairfax, California
Distribution: RH 9.0, RH 7.3, Mandrake 8.0
Posts: 986

Rep: Reputation: 30
If you are using separate partitions for /usr, /usr/local, /var, etc., neither / nor /home need to be too large. Also, if you have 265M of RAM or more, a swap of 128M is more than enough for a normal desktop box. Here's how I've split my 10G:
Code:
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/hda6               505605     48566    430935  10% /
/dev/hda5                38827      3120     33703   8% /boot
/dev/hda7              3020140     80376   2786348   3% /home
/dev/hda10              505605       858    478643   0% /tmp
/dev/hda8              5036284   1700092   3080360  36% /usr
/dev/hda9               505605     35490    444011   7% /var
/usr and its subdirectories can fill up with programs pretty quickly, so it's a good idea to give it a lot of breathing room (as you can see, my 5G /usr is already 36% full). /usr/local can also fill up, depending on your usage, so you might want to give that decent space too. Your /var and /tmp sizes are probably fine. My /home is probably much too large for my needs, but what the hey, I had the space.

Last edited by DMR; 01-06-2002 at 12:02 AM.
 
Old 01-06-2002, 12:54 PM   #6
taz.devil
Senior Member
 
Registered: Nov 2001
Location: Wa. State
Distribution: Slackware
Posts: 1,261

Rep: Reputation: 45
Quote:
Originally posted by dorward
Putting everything (except swap) in one big partition is certainly a bad idea.
Actually it's just as safe as any other way of setting up an fs tree with 2, 3, or more partitions. It is beneficial perhaps in some cases to make /home and some others seperate, but i've only heard neutral or good things about one root part. and the swap. But it's something i'll look into of course some more. I won't leave my foot in my mouth too long if i'm wrong.
 
Old 01-06-2002, 02:50 PM   #7
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
If it's Redhat make a /boot partition big enough for the kernels you will have, It will complain about less then 20 MB but you should not ever need more than that.

/boot should be the first thing on the drive physically
 
  


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
Recommended filesystem eqxro Linux - Software 2 09-15-2004 01:00 PM
Largest Recommended Partition Size soopafresh Linux - Newbie 3 08-08-2004 04:02 AM
Total partition size - User partition size is not equals to Free partition size navaneethanj Linux - General 5 06-14-2004 12:55 PM
Recommended filesystem-setup (using kernel 2.6) Cyrus XIII Linux - General 4 03-13-2004 05:18 PM
largest recommended partion size gwroy20 Linux - General 2 09-07-2003 08:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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