LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-11-2003, 06:44 PM   #1
Nasty
LQ Newbie
 
Registered: Oct 2003
Location: Scotland
Posts: 24

Rep: Reputation: 15
Partition Size & How many Partitions


Do linux partitions fragment? I've always wondered why some tutorials say to make about 5 partitions.
 
Old 10-11-2003, 06:50 PM   #2
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
nasty i had the same concern not long ago. here is a link to the thread i posted.

http://www.linuxquestions.org/questi...m+maintainence
 
Old 10-11-2003, 06:56 PM   #3
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
No, they don't fragment.

Creating separate partitions for different directories are setup for another purpose. Which tutorials are telling you to make 5 partitions? In most cases they want you to create at least 3, which would be for /boot, swap and / at a minimum in most cases.

Others you can do is have /home and /usr on their own partition. Me personally wil create the following with their own partition:

/boot
swap
/
/usr
/home
/tmp
/var

That's at a minimum for me. Why do I do this? Let me explain.

/boot resides on its own smaller partition because if something else gets trashed on my system, it makes it easier to maybe possibly boot up the system to repair, having the boot information and files necessary to boot all safe, etc.
swap, well kind of self explanatory there, it has to be partitioned and formatted on its own partition to perform/work properly.
/ sort of needs a partition or your system won't work, got to place it somewhere.
/usr I put on its own partition as I feel its necessary for more space, etc. To handle and control how much is installed without effecting / or the other directories.
/home comes in handy on its own cause at times if I feel I need to reinstall my OS and not lose any personal files or files for users, you can reinstall your whole OS, without touching /home.
/tmp and /var I keep on its own for the same reason, these directories can change very often, holding temp files and log files. If for any reason these fill up all your space, if they resided on the same partition as /, well then you'd be in trouble and have a hard time booting up your OS when there wouldn't be any available space on /, etc.
 
Old 10-11-2003, 07:04 PM   #4
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
trickykid i don't mean to jump someone else's thread ,but, what sizes do those partitions need to be and does it make any difference what file system is used?
i guess a better question would be what are the minimum requirements for those partitions to function properly?

Last edited by Peacedog; 10-11-2003 at 07:16 PM.
 
Old 10-11-2003, 07:15 PM   #5
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
Quote:
Originally posted by PEACEDOG
trickykid i don't mean to jump someone else's thread ,but, what sizes do those partitions need to be and does it make any difference what file system is used?
Well, that can all depend really, on how much space you have, what your going to be using the server for.

Here's something I've done for my desktop machine:

/boot = 16 MB
swap = 200 MB
/ = 1 GB
/usr = 8 GB
/home = 10 GB
/tmp = 1 GB
/var = 1 GB
/data = 20 GB - mainly I use for shared applications outside my users home directory, NFS mounts, etc.

My web and ftp server:

/boot = 16 MB
swap = 200 MB
/ = 500 MB
/usr = 5 GB
/home = 10 Gb
/tmp = 1 GB
/var = 1GB
/data1 = 20 GB
/data2 = 60 GB

I usually tend to try and keep my systems with at least 1 GB for /var, /tmp and /
Usually will have more space for /usr when I install new apps, etc.
/home and any other partitions to store data files I keep fairly larger as they will need that space. / rarely needs that much space when I create /usr and /home on their own partitions along with /tmp and /var. Only leaving mainly /etc and directories like /bin and /sbin that don't take up that much space, etc. I think one of my servers I've actually got 300 megs for / and only using up 30 megs of space...

Hope that helps out as well...
 
Old 10-11-2003, 07:19 PM   #6
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
thx, as always great info to have while learning. my apologies again for jumping the thread, but, i havn't thought of that question until i saw the response. i felt is was valid in the thread. thx again.
 
Old 10-11-2003, 07:26 PM   #7
Nasty
LQ Newbie
 
Registered: Oct 2003
Location: Scotland
Posts: 24

Original Poster
Rep: Reputation: 15
Thanks. I wanna use 4 gig for my linux instal how big do you recommend i make them all?
 
Old 10-11-2003, 07:28 PM   #8
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
Quote:
Originally posted by Nasty
Thanks. I wanna use 4 gig for my linux instal how big do you recommend i make them all?
Something that size I personally would probably go with something like this if its going to be for desktop use I presume:

/boot = 16 MB
/swap = 200 MB
/ = rest of space/drive, etc.
 
Old 02-27-2004, 11:24 AM   #9
rivang
Member
 
Registered: May 2002
Location: Elkview, WV
Distribution: Slackware 10
Posts: 139

Rep: Reputation: 15
What would you recommend for a Web, Email server with a 9GB SCSI drive hosting about 20 web sites?

I want Apache, PHP and MySQL so I can add a couple PHPBB forums to sites I host.

I need to replace a Netware 5.1 server running Novell Enterprise Web server which is currently hosting about 20 sites.

Thanks...

Last edited by rivang; 02-27-2004 at 11:27 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Re-partition hd size & usb problem tanchu Linux - Newbie 3 08-07-2005 01:52 PM
Partition Hd fr DSL and Win XP p2 What size for part, & swap file beekers Linux - Newbie 4 06-09-2005 10:14 PM
Total partition size - User partition size is not equals to Free partition size navaneethanj Linux - General 5 06-14-2004 12:55 PM
Change Mandrake partition size on dual boot WITHOUT trashing the other partitions! Ygarl Linux - Software 4 03-25-2004 05:49 PM
Partition Magic & converting to logical partitions lawsonrc Linux - General 2 10-28-2003 06:39 PM


All times are GMT -5. The time now is 03:14 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration