SlackwareThis Forum is for the discussion of Slackware Linux.
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.
I recently did some research on partitioning in Linux and some people would say it is better to make separate partitions for /boot /usr and /var so that your logs don't fill up your hardrive space and as for the swap file it should be twice the size of RAM you have in your PC but alot of the times people won't abide by those rules i would only use 100MB as to using 1024MB for 512MB of RAM.
In all honesty guys does it really matter making multiple partitions? And if it was up to you how would you make your partitions? (Size, Type)
I am asking because i would like to get some feedback on what is the best way to partition seeing how there are different ways of going about it.
Good idea to have /home on a seperate partition - so if you reinstal, upgrade or switch distros you can leave all your work, pics, mp3s etc untouched.
Also if you intend to compile alot of stuff yourself as opposed to install tgz (or rpms/debs), consider a seperate partion for /usr/local. That way, even if you need to recompile after an upgrade, you can have all the source code ready in /usr/local/src
They say it's good to have a seperate /var for servers, so logs cant grow to swamp your main harddrive and thus lock up your system.
A seperate /boot could be useful if you have many kernels and distros installed and are testing tweaks maybe
Well let me ask you this seeing how i currently have only a 20gb drive on this PC of mine what do you think would be the best course of action as far as partitioning goes? i would like ot have all those partitions but just not sure on size though.
I have been able to find much on the actually size required for such partitions
How about 3 gigs for /, 10 megs for /boot, 200-1000 megs for /var (depending on what you will be doing), then the rest for /home? Don't forget about 200 megs or more for swap. If you do a lot of source code compiling, you'll might need to symlink /usr/src to somewhere in the "home" partition.
These would be pretty good "ballpark" numbers. If you are building a "production server" for somebody, you can start with this as a prototype, then tweek the values for the final version.
The swap as twice the size as your RAM is more of a guide for how much RAM you should buy for your system. If you find that in order for your system to do the the things you want, that you need swap space that is many times your RAM size, then you really need more RAM.
These days, a lot of us have a lot more RAM then we need and could often get away with no swap space. For my Linux machines that I use for home/desktop uses, they typically have about 256 megs of RAM, I usually only have about 200 megs swap space which seems to be overkill because the system usually only uses about 20% of it at the most!
I am compiling KDE in Gentoo, doing an upgrade using urpmi in Mandrake (tha'ts why some partitions are mounted several times), listening to my piping oggs and browsing LQ.
Gotta keep the old connection and cpu hot and make sure my memory works.
Last edited by fancypiper; 06-01-2003 at 10:56 PM.
You just create the additional partitions (you may have to make them extended or "logical" partitions so you don't run out of you precious "primary" ones). Then you edit /etc/fstab to describe how you want them mounted.
Excerpt:
--------------------------------
Now we create the partitions with the n command:
Command (m for help):n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4):1
First cylinder (0-1060, default 0):0
Last cylinder or +size or +sizeM or +sizeK (0-1060, default 1060):+64M
--------------------------------
This, and the rest of the text there, is what I used for mine using fdisk.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.