I just got a new hard drive and want to install everything from scratch. This gives me the opportunity to set up an entirely new, more optimal partitioning of the drive. I am planning to install Opensuse 11.1, windows vista, and probably one other linux. I also plan to use GPT since my system seems to support it, so I do not need to worry about extended partitions. I have 320 gb and 4 gb RAM. I plan to allocate 30 gb to vista, 30 gb each to root of the two linuxes, whatever is good for swap, and the rest to /home.
So I have several questions:
-
Should I have any other folders be stored on separate partitions? For instance /boot or /var? If so how much space should I allocate to each?
-
Are there any of these partitions besides /home that can be safely shared between two Linux distributions? I plan to have separate home folders for the two distribution, with some of the directories hard linked between the two.
-
Given the above information, what would be the best ordering of the partitions on the drive to maximize speed? I am not going to fill up the home directory very quickly, so far it only takes about 60 gb and I should have around 200 when all is done.
Thanks! Which partitions are the ones that are going to be used the most? Which is used more, the /home partition, root partition, or swap partition? Which is used the second most?
This depends completely on what you do with the machine, but since I noticed that there’s hardly any difference anymore on linux systems, I don’t realy bother. I would on a webserver though
On my system, /home is the most heavily used.
swap is probably seldom used since you have a lot of RAM.
You can install the package sysstat which has the program iostat that will show you how much traffic each partition gets. In my case /home has more traffic because I’m using a small set of programs most of the time. Your usage may differ.
I would recommend a separate /boot of about 100MB and then create an LVM managed partition. This will give you insanely more flexibility in the future for disk upgrades as well as changing space allocations.
I personally like this setup:
/boot 100MB
/ 5GB
/var 7GB
/usr 7GB
/tmp 2GB
swap 2GB
/srv (Depends)
/home (at least half the disk)
However, you need only create 2 partitions as you should not have /boot on the LVM managed partition, and then just a single LVM partition which then creates the file systems mentioned above
With LVM you have the option of extending the filesystems, or adding disks to continue expansion. Should you start with say a single 250GB drive and then purchase an additional 750GB drive, you can add them together as part of a concatenation and expand file systems onto the other drive transparently. As well, you can migrate your logical volumes (the LVM equivalent of partitions) to the other drive and then remove the 250GB, and so forth.