LinuxQuestions.org
Visit Jeremy's Blog.
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 07-08-2001, 02:05 PM   #1
Soulstice
LQ Newbie
 
Registered: Jul 2001
Location: Toronto, Canada
Distribution: Slackware 8.1 & FreeBSD v4.6.2
Posts: 23

Rep: Reputation: 15
Question Please help my decide on partition sizes!!!


Hello everyone,
Whatz happening?

First, I'll start by saying, right off the bat, that I'm fairly new to the whole Linux thing. I've been scripting in Unix for roughly a year now, and have been working as a PC/Network technician for the last 2 years employed, and have been involved with computer technical stuff since the age of 13.

I usually chill out over at www.hardocp.com and www.amdmb.com, helping out with answering questions in regards to OCing and networking. But, alas, it is me that now requires all the help possible, as I am a complete newbie (...with a capital "N") to running and installing Linux.

So here is the situation. I have installed Linux roughly 4 times on 3 different machines. I have decided now that I like SuSE and Red Hat the best, so I will stick with those. In the past, due to my limited experience, I basically just allowed the OS to partition everything for me. I have experience with working with FDISK, but I'm completely lost when it comes to knowing how much space to reserve for each mount. People have said to me "just leave it as all one partition (..not including the SWAP file), but I'm too much of a tweaker to go the basic route. Not only that, but I would really like to learn as much as possible about how the professionals partition their servers and workstations.


The two scenarios are as follows:

Scenario # 1 --> This system is a K6-2 300 oc'd to 350MHz. It has 128 MB RAM, and a 20GB 7200 RPM Maxtor hard disk. It will be a dual boot system, running Windows 98SE and Red Hat 7.1
This system will primarily act as a server on my small home network. I would like to set up an FTP and CS server within Red Hat, and Win 98 will primarily be used when I have friends over playing multiplayer CS. I would like to keep at least 8 gigs for Windows 98 (2 GB for OS, 256 MB for Swap file, and remainder for program storage). The rest of the space can be handed out to Linux. As for file storage space for the FTP, I will probably add a second removable hard disk for that soon (dedicated to server files). SAMBA will also eventually need to be setup so that I can share files with Win2k systems on the network with Linux.
The question is: What do you recommend in terms of partitioning the mounts?
So far I was thinking:
/boot --> 250MB
/ --> 1.5 GB
/home --> 500 MB
/opt --> 1 GB
/usr --> 2 GB
/var --> 400 MB
/tmp --> 400 MB
/remainder ---> file storage for FTP

Remember, that the above system will have very little applications on it. I don't even know if I'm going to install the X-Window system, because Red Hat will primarily be acting as a dedicated CS server and FTP server.



Scenario # 2 --> For system specs, check my sig. Since all my HDs are removable, I will be running SuSE Linux 7.2 on a separate dedicated HD (as I want my Windows 2k drive left alone). The HD for SuSE is a 15 GB 7200 RPM Maxtor. This system will be a workstation and game center, so I will be installing the X-Windows system, probably using the KDE interface (Gnome is a possibility). Again, the question is, how should I partition the hard disk. So far I was thinking:

/boot --> 250 MB
/ --> 2 GB
/home --> 1 GB
/opt --> 2.5 GB
/tmp ---> 500 MB
/var --> 500 MB
/usr ---> 8 GB
/remainder ---> reserved for later, when I need it.


OK, sorry for the long post. Please, any assistance, comments, critisism, etc, would be much appreciated. Even if you're not sure, I would like to hear how you all partitioned your drives, and how the result turned out (eg. good, bad, not sure, etc.)


Thanks,
Soul
 
Old 07-08-2001, 05:39 PM   #2
CragStar
Senior Member
 
Registered: Oct 2000
Location: UK - Frome
Distribution: Ubuntu
Posts: 1,081

Rep: Reputation: 47
This post is WAY too long. I don't know if I have seen one which is longer, and is that sig really necessary?

You partitions are fine, but I would check that RedHat sticks things into /opt before giving it so much space, Mandrake doesn't use it (to my knowledge), but some distros do.

With the size of HD's today, partitioning is not really that important unless you intend to use every byte available. I have a two, 4 gig Linux distros running on the same disk, and still can't use up the space quick enough.

Myself, I always go for one partition /boot anout 15 megs, then /home 1 gig, / 2-3 gigs. Then /usr and /opt can go into / partition. I only keep /boot separate to use ext2 fs. Reiserfs can't be booted from as far as I know.

My intention was to use /home for both distros, but am finding it a little hard at the mo.
 
Old 07-08-2001, 07:49 PM   #3
Soulstice
LQ Newbie
 
Registered: Jul 2001
Location: Toronto, Canada
Distribution: Slackware 8.1 & FreeBSD v4.6.2
Posts: 23

Original Poster
Rep: Reputation: 15
Thankx for the response.

I'll look into the Red Hat /opt mount. As far as I know, all third party software uses /opt, which means that if I choose to use a 3rd party FTP program, development software, it will install itself into /opt. I could be wrong, because, as I already mentioned, I'm completely new to the whole Linux thing.
 
Old 07-09-2001, 03:49 PM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
if you make a 250 meg /boot parition, your going to be wasting about 230 megs of space that most likely won't get touched ever. just a tip, unless you planned on hiding info on there ( a bunch that is ).
 
Old 07-09-2001, 07:56 PM   #5
Soulstice
LQ Newbie
 
Registered: Jul 2001
Location: Toronto, Canada
Distribution: Slackware 8.1 & FreeBSD v4.6.2
Posts: 23

Original Poster
Rep: Reputation: 15
Thanks for the hint.

I'll limit it to about 50 MB. Even though that is probably still pretty big, it leaves lots of extra space just in case. With HDs as big as they are these days, there is no reason to go cheap on the boot partition! LOL


Thanks again.
 
Old 07-09-2001, 11:05 PM   #6
jrmann1999
Member
 
Registered: Feb 2001
Location: Texas
Distribution: Slackware, Mandrake, LFS
Posts: 306

Rep: Reputation: 30
This is really in reply to CragStar, ReiserFS can very well be booted from. I'm running a system with 5 Reiser partitions that boot just fine.
 
Old 07-09-2001, 11:21 PM   #7
Soulstice
LQ Newbie
 
Registered: Jul 2001
Location: Toronto, Canada
Distribution: Slackware 8.1 & FreeBSD v4.6.2
Posts: 23

Original Poster
Rep: Reputation: 15
Cool jrman1999...

How do you have your drives partitioned??
 
Old 07-10-2001, 01:24 AM   #8
jrmann1999
Member
 
Registered: Feb 2001
Location: Texas
Distribution: Slackware, Mandrake, LFS
Posts: 306

Rep: Reputation: 30
Hmm...well I have a much different setup than most, #1 I'm running LFS(Linux From Scratch) so I can specify where every program installs(via the configure script). Although generally I keep a scheme like:

1. If you have > 8GB you don't NEED a partition scheme whatsoever
2. /var needs around 500 MB, you never know what the logs will report(and yes I've filled up 500 mb with logs before, imagine a DSL connection trying to reconnect for 2 days, every minute, when your NIC isn't enabled).
3. /usr needs a LOT of space, there's no way around it, 2GB minimum
4. /usr/local(if you install a lot of software) needs a bunch too, I currently have another 2GB there.
5. /home(if you have users) needs a decent amount of space ~ 1GB
6. /root(if your like me and blindly download/install from root) needs about 600MB
7. /boot needs less than 200 MB, if you have 9 kernels you have too many
8. / needs a bit, but not if your going to ignore /opt and don't have too much in /etc, around 200MB is PLENTY
9. *optional* if you have /opt(KDE) then allocate plenty of space, you'll need it

My advice has always been, use big HD's and you don't have to worry much about filling them up.

J
 
Old 07-10-2001, 01:59 AM   #9
cinnix
Member
 
Registered: Jun 2001
Location: Northern Ohio
Distribution: RedHat, Engarde and LFS
Posts: 237

Rep: Reputation: 30
I have (had) a pretty large redhat 7.0 installation that didn't put a single thing into /opt. I wouldn't even bother creating a partition for it. Any extra software seems to end up in /usr/local instead.

My way of partitioning has always been to keep content away from software.

/ ---------------------------- System
/home/httpd ------------- Web Content
/var ------------------------ Databases/logs
/usr/src -------------------- Large amount of RedHat updates and kernel tree

This way if you installation becomes corrupt, you can easily reinstall, set up your new partitions and you are pretty much good to go.

If you are only using one disk, IMHO everything else is unimportant. If you are spreading you instalation accros multiple disks, it is a different story.
 
Old 07-10-2001, 02:04 AM   #10
Soulstice
LQ Newbie
 
Registered: Jul 2001
Location: Toronto, Canada
Distribution: Slackware 8.1 & FreeBSD v4.6.2
Posts: 23

Original Poster
Rep: Reputation: 15
hmmm...I'll follow your recommendation for the workstation. Actually...

...for the workstation (SuSE 7.2), I'll probably only use separate partitions for /boot (50 - 250 MB), / (8 GB, for /etc, /usr, /opt, etc.), /var (300 - 500 MB), /home (500 MB - 1.5 GB), and one other partition for myself with the remainder of the space on the 15 gig drive. For instance, MP3z, development files, experimentation, etc.


However, for the server, which will be Red Hat 7.1, I will not even be installing X-Windows (...well, maybe I will). Point being, it will be used extensively as an FTP, HTTP, CS server. Since I will be running it primarily to serve files, it will not need a lot of space for "extra programs" such as CD burning software, games, etc.

In this case, what should the partitions be. I assume /boot and /var will stay the same as the recommendation. However, what about / ?? I was thinking maybe 500 MB. Also, since I will not be installing an extra softare other than maybe one GUI X-Windows system (such as KDE or GNOME), and maybe one or two third-party server daemons (such as Apache and maybe an FTP daemon, as well as CS daemon), how do I need to make the /usr, /usr/local, and /opt partitions??

You advice has been very valuable so far. It would be great if you could help me just one more time. Thankx

Soul
 
Old 07-10-2001, 02:27 AM   #11
cinnix
Member
 
Registered: Jun 2001
Location: Northern Ohio
Distribution: RedHat, Engarde and LFS
Posts: 237

Rep: Reputation: 30
/var/www ------------- twice the size of your content
/var/ftp --------------- twice the size of your content
/var/log ---------------- depends on how many logs you want to save.
/ ------------------------ 2 gigs

This is what I would recommend for a server setup. I don't see any need for a /boot partition unless you are having trouble seeing past the 1024 cylinder on your harddrive. There is no need for an /opt partition because redhat doesn't use it.

It seems like you are trying to overpartition your harddisk, too many partitions are jsut going to waste space and could create longer disk reads by creating large empty areas inbetween the data on your disk (if I am wrong about that, please correct me). You are only using one disk, so the only reason you would want to partition is to seperate your data from your installation.

( My previous post was more geared towards a workstation)
 
Old 07-10-2001, 04:26 AM   #12
cinnix
Member
 
Registered: Jun 2001
Location: Northern Ohio
Distribution: RedHat, Engarde and LFS
Posts: 237

Rep: Reputation: 30
http://www.linuxquestions.org/questi...&threadid=4102

All I will have to do is.

reinstall
mount old partitions
apply new updates that were stored on /usr/src
go back to surfin the net.

If the content was not seperated, my system failure would have been very severe. I just wanted to show how much a partitioning scheme like this helps.
 
Old 07-10-2001, 01:43 PM   #13
Soulstice
LQ Newbie
 
Registered: Jul 2001
Location: Toronto, Canada
Distribution: Slackware 8.1 & FreeBSD v4.6.2
Posts: 23

Original Poster
Rep: Reputation: 15
Question Thanks for the response.

I have another question though.

Why would I make separate mounts for /var/ftp and /var/www??
Aren't they just logging directories. Why can't they go exactly into the /var mount, without making separate partitions for both of them. Thanks,
Soul
 
Old 07-11-2001, 02:24 AM   #14
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
Re: Thanks for the response.

Quote:
Originally posted by Soulstice
I have another question though.

Why would I make separate mounts for /var/ftp and /var/www??
Aren't they just logging directories. Why can't they go exactly into the /var mount, without making separate partitions for both of them. Thanks,
Soul
Probably to make sure that incredibly HUGE .sigs don't gobble up all the space form the /var/ftp directory.
 
Old 07-13-2001, 12:08 AM   #15
cinnix
Member
 
Registered: Jun 2001
Location: Northern Ohio
Distribution: RedHat, Engarde and LFS
Posts: 237

Rep: Reputation: 30
My system must be set up differently. /var/www is the default directory for web content. /var/ftp is the default directory for FTP, and /var/log is where all of the logs are stored. Sorry for the confusion.
 
  


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
Partition sizes gardenair Linux - Newbie 1 11-10-2005 08:40 AM
Partition sizes for me Doctor Orange Linux - Newbie 2 08-13-2004 09:50 AM
Partition sizes? murbz Linux - Software 3 07-22-2004 08:43 AM
Partition sizes r3dhatter Linux - Newbie 8 07-19-2004 09:01 PM
partition sizes scrambled2k3 Linux - Newbie 7 02-21-2003 02:32 PM

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

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