Quote:
Originally Posted by mzansary
I was just going thru the forums and came accross this link
|
This is a very good place to find information. I am the guy who asked the question originally and I learned a lot since then by making some mistakes and also got lucky and got some things correct.
> i want to know if we create the /usr and /var and /opt in seperate partitions
> and if we install another OS will it use these /var and /opt or we need to cr8
> again for new OS
I got the advice from many people in this thread not to worry about separate partitions, except maybe for /home. I set up my system with two partitions, root and home, and I think this is best unless you have a lot of knowledge and/or are building a server for many users. For desktop machine, if you have a lot of disk space, maybe you could also have a separate /opt.
Now to answer your specific questions: in most cases, if you define separate partitions you can configure the new OS to use mountpoints for its files. Using your example, you could most likely config your new OS to share partitions you already defined. I think for /usr and /var it's a very bad idea to try to share, because different linux setups will not use these partitions in exactly the same way. Instead, you will create a huge mess for yourself. Even /opt is not such a great idea for sharing unless you are using the same distro more than once, because they may need different binaries. Now I feel deja vu like I typed all this before but maybe not......
The better reason to define separate partitions (in my newbie opinion) is so that your data can survive a reinstallation of linux. After playing around for a few weeks, I'm starting to realize that in the linux world you can pretty much do everything without ever "reinstalling" from scratch. I have blown up a lot of modules and screwed up libraries and I always got them back from the distro discs by starting another linux on the same hardware and updating the partitions I needed to fix. It's not like winbloze; you can't fix that from inside, you have to reinstall it if it doesn't work. But with linux you can fix it from another linux. I have a separate /home and so I can use it when I want to blast everything on my system except the user data. I recently lost my x-window environment (still not sure why) but when I reloaded all the X-stuff, everything was magically working again including all of the users' settings were preserved! I didn't have to recustomize anything.
> also is the same case for /boot parition, i read in one article on multiple OS
> u need to create /boot partiton for every OS
You can create a /boot for every OS, this is what I do, but I am no expert. You can also create one /boot and share it across all OSs. I think it will take you a little more work and is not worth it unless you have many OSs, very small HD, or are very big kernel experimenter. Let /boot be mounted as part of your root structure and it will be space-managed properly (that is, dynamically). I multi-boot 4 OSs on one PC and I have three /boots, one for each linux. There is a guy on here named Saikee who boots 100 OS on one PC!!! so you can ask him about /boot. That is a guy who can probably benefit from a separate /boot partition because it makes configuring the boot loader a little easier. If you have unique /boot by image then you have to have all the partitions mounted to config lilo, for example.
> if u install OS on first partition on hardidisk and u make the partition
> bootable with fdisk u still need to create /boot on seperate partition
These are two separate issues. First of all, linux doesn't care if the partition is marked bootable. None of my linux partitions are bootable, but lilo boots them all anyway. /boot is not for the boot loader, it is where you keep the kernels. You could save your kernels in /var and boot from there if you wanted to. It's just a standard directory where kernels and maps are kept.
> for eg when u install fedora 4 thru disk druid it will give u different mount
> points to create / and /boot partition but when u install slackware 10.1 it
> doesnt
I don't know about 10.1 but on 10.2 you definitely have the option to specify all the mount points you want.
> I mean if u dont give boot partition and if install OS will it still create
> boot partiton automatically or u r suppose to create boot partiton from fdisk
You are asking a question about the installer, not the OS, and the answer is "it depends." I can't answer you except to say in general, don't worry abou creating a separate boot partition.
> really need to know the answers iam trying to setup multiple OS so i need to
> know before i proceed
I was trying to find out all I could before I started, and I still typed one wrong letter and wiped my partition table.
The best advice is to write down your partitioning table and plans and keep it nearby while you are installing. Look at it often and don't rush.
> also i guess i have to add entries in menu.lst from main partition to add
> entries for the boot menu for other Os
I don't know what this means.
> Iam not a advance use just a beginner
Even a beginner can accomplish a lot. If not, there would be no advanced users.