Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
When installing different distros of linux you are presented with various choices for setting the partitions on the hard drive. I have successfully installed everything to one big partition under /, plus a swap partition. Other times I have set up a swap and then a / partition and then another partition for home. One is also presented with other choices. Is there an advantage to creating several partitions? Is it faster, or easier to do back ups, or what?
Usually its best to create multiple partitions. Say for instance like /var and /tmp usually get filled up since one is for temp files and the other is log files..
If for some reason your machine goes bezerk and fills your logs completely up, it will fill your whole hard drive.. thus making no space left and causing your machine not to boot, etc. Same instance for your tmp directory..
If you create them with their own partition and something happens, they will only fill up their partition and not your whole drive.
Some create a /home partition just in case they want to reinstall their system but leave user's custom settings and files intact without messing with them.. them being on their own partition you can avoid at times restoring a system and having to backup this directory.
Usually when I install my Linux system, I usually create a
/boot
swap
/
/usr
/tmp
/var
/home
And usually for like data I share like mp3's and movies, etc, I always create a /data partition for those.
So if I ever have to reinstall my whole system, I can leave my /home and /data partition alone, not damaging or wiping out the data on them.
Additionally (and I use the /data system, as well) I haev a friend who dual boots, and makes one partition fat32 (vfat) and sets it up as a seperate drive in windows. That way, if he has to kill his windows install, or his linux install...
Another good point is for upgrading (via replacement) of particular disks. Just being able to toss in a larger hard drive if that particular space/speed goes higher. If you are dealing with Sun boxes, a lot of times you want to know where the high IO is coming from, and you can just check partitions.
I could also point out that it is a lot easier to set up a RAID with multiple partitions than without. Can be specific as to what you want mirrored. For example, I mirror /home and /data, but not /tmp and /usr.
Also be careful share a single username and home dir between disto's. You can do it, but if you like to play a lot, and want to get a true feel for a distro, you will want a fresh install of the default home enviroment. I usually just create a variation of my name, ie. peters for suse, peterd for debian.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.