Allocate disk space for filesystems when installing Solaris 10 on X86 Systems
When you experienced installing Solaris 10 on X86 Systems, you have to consider how to allocate your disk space for filesystems. A Step by Step Guide to Installing Solaris 10 (by Dennis Clarke) try to explain it for every beginner. Currently my computer is running the installation, and I could not wait for pasting this guide for you.
Allocate disk space for filesystems.
**************************************************************************************
This will take some explanation and it's never easy for a beginner. I will do my best to make this painless.
1. Set everything other than the / ( root ) filesystem to 0 and clear the little name tag fields where it says “/export/home” and “swap”. Do not touch the root file system name which is just a forward slash.
2. Now give the root filesystem plenty of room. Like well over the suggested dosage there. I think that 6 GB is a good number but if you are swimming in disk space then make it 10 GB. You just need to know that the /var filesystem is contained in there also and a lot of software patches and logging happens there. Do not get left with a root filesystem that fills up! Think bigger is better here.
3. Do not bother trying to figure out what a slice is and just take my word for it that it is a disk region bounded by physical cylinders on the disk. Now go to the slice 1 area and type in “swap” there just like the picture below.
4. Fill in a nice healthy size for swap of about twice your memory. Do not exceed 4GB of swap as that serves little purpose. There are more arguments over this than can be imagined and I hope that your machine has enough memory ( 512MB or more ) and that you can allocate twice as much for swap. If you have more than 2GB of memory then allocate 4GB of swap. If you have more than 2GB of memory then allocate 4GB of swap. Its not a perfect world and I'd love to discuss it on some other day.
5. Go to slice 5 and fill in the name “/opt” there. Give it 2GB of disk if you can. This is where a lot of optional software gets installed. At the very least there are 1600+ titles of software packages at Blastwave.org and they all go in there. Make plenty of room.
6. If this machine will have development software for programmers ( like me ) then you need to create a place for Sun Studio 11 tools as well as other revisions like Sun ONE Studio 10. I recommended a separate filesystem entirely but you don't have to do this. Either create a new filesystem in slice 6 called “/opt/studio” or add more disk space to /opt. This one is up to you!
7. Create a place for users. Their home directories will go into someplace and /export/home is a good location. Take a look at the picture below and allocate space accordingly.
8. Lastly, and this will be a leap of faith for you, set aside a small 32MB area in slice 4. If you decide that you want to make your filesystems mirrored and thus somewhat redundant someday, then you will need an area for something called “metadevice databases”. Does that sound mysterious or what? Just allocate the space there and someday you may thank me for it.
A few things that you need to know before you plow forwards here. Firstly, if you are an advanced user, you can allocate a massive slice at slice 3 that is large enough to hold ALL of your root slice. So if you created a 6GB root slice ( that is slice 0 ) then you may allocate at least 6GB in slice 3 also. Don't bother to name it anything special because we are not going to use it as an active mounted file system. Just create it for something super special called “live update”. If you have the disk space to spare then I highly recommend that you set aside a place for “live update” which can allow you to upgrade the whole operating system in the future and it will happen live while you are up and running. That, my friend, is cool enough to prepare for.

Nice overview - Might be a good idea to explain what slice 3 is all about too.
Posted by Dick Davies on October 21, 2007 at 11:09 PM PDT #
Do you have any idea? I also wanna know it deeply. Give me some resource
Posted by Yunpu on October 22, 2007 at 06:54 PM PDT #
Duh, "fencepost error", sorry :)
I meant 'slice 2' - the one that is actually the entire disk. Can be confusing if you haven't used Solaris before (I come from the BSD world where it's called slice c).
Posted by Dick Davies on October 22, 2007 at 11:29 PM PDT #
Slice 2 points to the _entire partition_ and is known as the backup slice. You should not (and cannot) modify it.
Posted by Yunpu on October 23, 2007 at 06:05 PM PDT #
Hi Yunpu
I enjoyed ur material a lot.cos am about installing solaris 8 on a tower system.I came from a linus world, so mensioning slice is a new topic to me.I will appreciate if u throw more light on the slices to be created and their purposes.U can send it to my box.
This is my email address: paulchukwu2001@yahoo.com
Kind regards.
Posted by Paul Chuks on March 10, 2008 at 02:16 AM PDT #
hello nice information but give the information about slice 2 and how much amount of space to allot for /usr and /opt and /var.
thank you.
Posted by ramana prasad on October 07, 2009 at 11:13 AM PDT #