Spacebeard wrote:This all depends on what the box is going to be doing. /tmp is used mostly for scratch storage during compilation and so forth, so you want it fairly large if you're going to be doing much of that. /var is also used for scratch storage, and in addition.
Not very much building and compiling at all, so that is not a concern. I'm basically setting the Linux system up so I can learn to use it comfortably. Nothing fancy, main tasks will be writing stuff, playing Dominions 2 (should run much faster under a double processor Linux system than on WinXP), learning how the Linux system in general works and lastly (and not least), my gf is going to like quite a few of the games that come free with the package.
Spacebeard wrote:Swap is basically up to you, it depends on how much physical memory you've got and how much you think you'll need total. There used to be a rule of thumb about always making swap double your physical memory, but that hasn't been valid for a long time. I tend to try to make physical memory plus swap equal to a total of at least two gigabytes, myself, but again it depends on your needs.
I've got an old system, five years or so, with only the hard drive and SDRAM upgraded (256 MB), so about 520 - 750 swap is probably about right for my setup.
Spacebeard wrote:Obviously, /usr and /opt will store the bulk of your software so keep them large. I don't know exactly what your Linux distro will keep where, so I would not make seperate partitions for /usr and /opt on Linux, myself. What I would do is make a seperate /usr/local partition, since Linux likes to keep user-installed software in there, in my experience. This way you can keep your stuff seperate from the system packages in case you need to upgrade, and also for security and integrity reasons (keeping /usr read-only most of the time).
Thank you, this is what I was looking for.
I noticed about /usr needing a lot of space, the auto-suggestion that the Mandrake partitioning gave me for it was WAY too low.
Spacebeard wrote:Your root filesystem shouldn't be all that large, mine are usually in the area of 128 MB. The bulk of the system is under /usr.
Thanks. I think I'll be needing somewhat more than that, as that is what my manuals are telling me, but I guess 500 MB should be enough.
Here's the filesystem layout from my workstation, which runs Solaris 10 and has a single 60 GB hard drive:
Spacebeard wrote:Edi wrote:
The bootloader also confused me a little bit, because it gave me something like five different options, and I'm not quite sure what all of them do. For example, I don't know what the difference between the "linux" and "linux - smp" entries are unless the smp version uses both of my processors (I thought that any installation would automatically use both of them).
I don't use Linux much, but I know multiprocessing is optional in the kernel and should only be used if you actually have a multi-processor machine. The SMP entry, then, is a kernel with SMP enabled. Use it if you're got a dual processor system like you implied.
Ah, didn't know that. Yes, I do have a dual setup, two 500 MHz Celeron processors. First time I booted up Linux (and posted the OP) I did it in single processor mode. I rebooted to the smp version and things sped up to literally twice as fast. Learn something new every day.
Spacebeard wrote:When you're still first learning the ropes, and just want a usable system, you may want to stick to three filesystems: a root filesystem of around 256-512 MB (however much it needs), a swap partition of however much you want, and a /usr filesystem consuming the rest of the disk. The reason for a seperate root is that the bootloader and kernel often must be in the beginning few gigabytes of the disk.
Thanks. I knew about the root partition and why it is supposed to be that way, but didn't have a clear idea on how much I should assign to the other partitions (excluding swap) given the limited space I had. I'll probably make a /home partition of around 1 GB and the rest will be /usr and /usr/local.. There's not going to be that much personal data on the Linux side until I get a new Windows machine, at which point this box becomes Linux only.
Spacebeard wrote:There are many security and stability reasons to keep many different filesystems, but before you have a good grasp of how much space you need, you'll end up creating a lot of headaches for yourself.
Believe me, I noticed! Well, learn the hard way, learn it well. Not something I'll forget in a hurry. Your advice has been invaluable, though.
Jew wrote:If Mandrake can automatically partition it for you, choose whatever it gives you. If it won't, I would set aside a swap partition equal to the amount of RAM you have (if you have less than 512MB of memory, make the swap partition bigger than your RAM) and split the rest of the disk space: 1/3 to for a root partition (/) and 2/3 for a home partition (/home). I've been using Mandrake for three years but I'm not an expert on partitioning so I could be entirely wrong.
Example:
1 GB - swap
3 GB - root (/)
6 GB - home (/home)
The problem with the Mandrake suggestions for the different partitions is that with 10GB space, it suggests too little for some partitions and entirely too much for others. Swap was about the only thing it got right, and root was within tolerance limits, but /usr, /home and /var were all pretty fucked up. It'd have worked beautifully if I'd had the whole hard disk instead of just 25%.
Edi