LinuxQuestions.org
Latest LQ Deal: Linux Power User 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 01-14-2005, 10:34 PM   #1
riluve
Member
 
Registered: Nov 2004
Distribution: CentOS-4
Posts: 142

Rep: Reputation: 15
Partition advice


Just curious what you guys have found works. If you could share your schemes and the theories behind them - e.g., I have heard for a server its good a idea to have a separate partition for /var - so that a DOS logging attack can only fill up that partition and not bring an entire system to its knees.

Any other similar security or performance ideas? The only other one I hear commonly is a swap partition twice the size of your RAM.
 
Old 01-14-2005, 10:36 PM   #2
barryman_5000
Member
 
Registered: Jan 2005
Distribution: Gentoo/Vector/Debian
Posts: 95

Rep: Reputation: 15
Keep your /home separate from your main partition as well.
 
Old 01-15-2005, 02:11 AM   #3
JaseP
Senior Member
 
Registered: Jun 2002
Location: Eastern PA, USA
Distribution: K/Ubuntu 12.04/14.04, Scientific Linux 6.3/6.4, Android-x86, Pretty much all distros at one point...
Posts: 1,791

Rep: Reputation: 157Reputation: 157
I agree with barryman_5000. Your /home partition should be seperate. That way, you can re-install or upgrade without re-formating that partition and maintain you data as intact...

If you duel boot, you should maintain a seperate FAT32 partition for transfering data between the OSes...
 
Old 01-15-2005, 02:55 AM   #4
blacksadness
LQ Newbie
 
Registered: Aug 2004
Distribution: Gentoo ~x86, Kernel: Gentoo-Sources 2.6.22-r2
Posts: 5

Rep: Reputation: 0
keep your /usr also separate coz it filled my / partition and caused the system not to start so keep it in a separate partition with enough space and also keep the /tmp separate it might help

the /home thing is useful since it'll keep your settings and data intact
 
Old 01-15-2005, 01:45 PM   #5
mugstar
Member
 
Registered: Jun 2004
Location: Scotland
Distribution: Anything that'll install...
Posts: 305

Rep: Reputation: 30
The "swap should be double your RAM" comes from waay back when RAM came in 8MB DIMMs, or less.
It still holds, but your swap should be no more than 512MB. I have 1.25GB of RAM in my main box, and the 512MB swap partition (set up before a *serious* RAM upgrade) never gets used.
 
Old 01-15-2005, 05:17 PM   #6
riluve
Member
 
Registered: Nov 2004
Distribution: CentOS-4
Posts: 142

Original Poster
Rep: Reputation: 15
lol - I don't know why you call that way back - to me way back was when DIMMs came as 32k or 64k. But the REDHat swap partition guide caps the limit at 2G. That is, RH ES v3 recomends: 2X the size of your RAM, Min 32M, Max 2G.

How in the world would 8M dimms be significant in this scheme?

Are you just saying from an era when memory was a lot smaller than it is currently?

Last edited by riluve; 01-15-2005 at 05:25 PM.
 
Old 01-15-2005, 05:27 PM   #7
sludink
Member
 
Registered: Jan 2005
Location: Brabant, the Netherlands
Distribution: Gentoo 2004.x (2.6.10 hardened)
Posts: 91

Rep: Reputation: 15
For really flexible partitioning, look at LVM.

I once had the problem I was compiling OpenOffice from source, and first my /var was 1G, was to less, so making it 2G, compiling again, disk again full, and had to make it 4G. After that, it compiled and removed everything it left on /var, so there remained 4G not used in /var. Now that was in FreeBSD, in Linux I use LVM and could change the size of partitions without restarting my computer!

If you're interested, look at

http://www.tldp.org/HOWTO/LVM-HOWTO/index.html

If you're not interested, I can understand as well, cause this wasn't really your question, but anyway.
 
Old 01-15-2005, 06:30 PM   #8
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 83
It's not like there was a particular date on which the "make swap twice RAM" became obsolete, but back in the days where having, say 16Mg of RAM was considered hot stuff, defining a suitably large swap space was vitally important because it was not uncommon for the system memory to be completely used by the apps that were running (thus necessitating the use of the swap space). Today however, modern PC's typically have at least 256 Mg of RAM if not 512, and it becomes an increasingly unlikely event for the system to use all of its memory and have to resort to using swap. As a result, if you allocated a 1G swap space for a system with 512 Mg RAM, all you're really doing is wasting disk space. Note that it isn's harmful to allocate a big swap, but realistically it will never be used. I'd suggest setting up a swap space of 256Mg tops, regardless of the amount of RAM you are using, but that's just a matter of personal preference. -- J.W.
 
Old 01-15-2005, 06:36 PM   #9
mugstar
Member
 
Registered: Jun 2004
Location: Scotland
Distribution: Anything that'll install...
Posts: 305

Rep: Reputation: 30
Quote:
Originally posted by riluve
lol - I don't know why you call that way back - to me way back was when DIMMs came as 32k or 64k. But the REDHat swap partition guide caps the limit at 2G. That is, RH ES v3 recomends: 2X the size of your RAM, Min 32M, Max 2G.

How in the world would 8M dimms be significant in this scheme?

Are you just saying from an era when memory was a lot smaller than it is currently?
Yeah, it was just an example.

A 32k DIMM ... did you have to wind it up? Or leave it in the sun for a few days?

It's all relative...
 
  


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
Partition advice Chris594 Linux - Newbie 6 10-13-2005 05:49 PM
Partition Advice? drbob001 Linux - General 4 12-19-2004 04:58 PM
Slackware 10 partition advice for 60gigs... DreameR-X Slackware - Installation 10 12-19-2004 04:11 PM
Partition Advice clearestchannel Linux - Newbie 5 11-25-2004 06:16 PM
Need advice about NTFS partition Ilushka Linux - General 11 03-10-2004 09:11 PM


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