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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
01-14-2005, 10:34 PM
|
#1
|
Member
Registered: Nov 2004
Distribution: CentOS-4
Posts: 142
Rep:
|
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.
|
|
|
01-14-2005, 10:36 PM
|
#2
|
Member
Registered: Jan 2005
Distribution: Gentoo/Vector/Debian
Posts: 95
Rep:
|
Keep your /home separate from your main partition as well.
|
|
|
01-15-2005, 02:11 AM
|
#3
|
Senior Member
Registered: Jun 2002
Location: Eastern PA, USA
Distribution: K/Ubuntu 18.04-14.04, Scientific Linux 6.3-6.4, Android-x86, Pretty much all distros at one point...
Posts: 1,802
Rep:
|
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...
|
|
|
01-15-2005, 02:55 AM
|
#4
|
LQ Newbie
Registered: Aug 2004
Distribution: Gentoo ~x86, Kernel: Gentoo-Sources 2.6.22-r2
Posts: 5
Rep:
|
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
|
|
|
01-15-2005, 01:45 PM
|
#5
|
Member
Registered: Jun 2004
Location: Scotland
Distribution: Anything that'll install...
Posts: 305
Rep:
|
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.
|
|
|
01-15-2005, 05:17 PM
|
#6
|
Member
Registered: Nov 2004
Distribution: CentOS-4
Posts: 142
Original Poster
Rep:
|
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.
|
|
|
01-15-2005, 05:27 PM
|
#7
|
Member
Registered: Jan 2005
Location: Brabant, the Netherlands
Distribution: Gentoo 2004.x (2.6.10 hardened)
Posts: 91
Rep:
|
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.
|
|
|
01-15-2005, 06:30 PM
|
#8
|
LQ Veteran
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642
Rep:
|
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.
|
|
|
01-15-2005, 06:36 PM
|
#9
|
Member
Registered: Jun 2004
Location: Scotland
Distribution: Anything that'll install...
Posts: 305
Rep:
|
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...
|
|
|
All times are GMT -5. The time now is 06:36 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|