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.
I will soon be installing Linux Mint as my only OS on a new 500gb hard drive. Is this a good partition scheme to use? Any suggestions would sure help as this is the first time I have done this!
5gb primary for "/" ext3
4gb logical for "swap"
7gb logical for "/usr" ext3
2gb logical for "/tmp" ext3
1gb logical for "/var" ext3
rest of space for "/home" ext3
I would make var a little bigger, in case you wish to keep your logs for a bit longer, or you generate a lot of logging. The best approach would be to use logical volumes then you can grow them as you need.
Ok, thanks!! Is /boot and /opt both logical partitions? Where should /boot be at? Before or after /swap? Also I'll increase /var to 3gb. Should that be enough?
I only do one partition per Linux. First one needs a swap. All others are just subdirectories of a single mounting point of /.
Then again I am the single user and see no real benefit of setting up a home desktop like a server for multi users. The sizes of various subdirectories can then expand and contract freely without any worry. Haven't met a Linux installer that doesn't play ball with a single partition yet.
Put /boot at the very beginning of the drive, before anything else. It is not really necessary these days but i consider it good practice. Once upon a time systems could only see the first 1024mb of a drive. But i think just about all modern systems have over come that limitation.
I only do one partition per Linux. First one needs a swap. All others are just subdirectories of a single mounting point of /.
Then again I am the single user and see no real benefit of setting up a home desktop like a server for multi users. The sizes of various subdirectories can then expand and contract freely without any worry. Haven't met a Linux installer that doesn't play ball with a single partition yet.
This is the simplest solution, obviously. But there are benefits to creating multiple partitions, especially if disk space is an issue. If, for instance, your logs get too big in a single partition, they could begin to fill your space, and affect all parts of your system. If /var is on its own partition, the logs will only be able to fill that partition.
On that same note, I only use swap, /, and /home partitions. That way, if I need to reinstall the OS, I can keep my /home data intact, and only reformat the / partition.
Distribution: Dabble, but latest used are Fedora 13 and Ubuntu 10.4.1
Posts: 425
Rep:
Quote:
Originally Posted by Smokey_Mtn Ron
I will soon be installing Linux Mint as my only OS on a new 500gb hard drive. Is this a good partition scheme to use? Any suggestions would sure help as this is the first time I have done this!
5gb primary for "/" ext3
4gb logical for "swap"
7gb logical for "/usr" ext3
2gb logical for "/tmp" ext3
1gb logical for "/var" ext3
rest of space for "/home" ext3
My preference is to have specialized partitions. That way if I have to rescue or back up, I know exactly where to go.
As others have said, it's nice to have /boot as the first primary partition. Fedora and similar distributions like 200mb for boot, so if you ever change out of linux mint, you might want to have a /boot partition around 200mb.
/ as the second primary partition. 5 gig will do, but you might want to jack that up to 15 gig if you ever change distros or install oodles of stuff into /.
Personally, I like /home as my third primary partition. That's just me.
Four gig of swap is huge. Will you be doing enough of a load to justify it? By the way, I like putting /tmp and /swap at the very end of my hard disk. That way I can tweak them without having to furtz around with other partitions, and there's rarely anything I need on /tmp.
/usr, /var, and /opt should be on most people's lists. As others have said, applications like OpenOffice default into /opt.
Personally, I like saving my data files and personal files somewhere other than /home. That way if I ever have to add another user there is space for them, and if I ever change my settings, I am less likely to destroy my data.
You aren't allowing much space for some of the partition such as /var, and /usr. Given that you have a 500GB drive, you can be more generous. Much depends on the usage. If you are going to burn CDs & DVDs then add 1 GB to /tmp for CDs or 5 GB for DVD's. Your users temp space will be symbolically linked to a directory in /tmp so normal user programs make use of /tmp. Servers will use space in /var or /srv. For a workstation, /usr will fill up quickly as you add software over time. My /usr directory uses 12 GB. However, I do have a habit of installing the *-doc version of packages when possible. Whenever you install packages from your distro's package manager, almost all of the files will be installed under /usr. Unless you are running a dedicated mysql or web server, the /usr partition will be the second largest.
Having /boot as the first partition on the disk would allow you to easily create an image backup -- just in case. It is small and easy to backup & restore using dd.
It takes a bit more set up, but to me /opt should really be /usr/opt. To avoid changing build scripts or mucking around with packages, you can put a bind mount in your /etc/fstab.
Code:
mkdir /usr/opt
vim /etc/fstab
# Add in the following to /etc/fstab after /usr mount point
/usr/opt /opt none bind
I don't store enough in /opt to consider making it a partition but yet I don't want it on my root partition... BUT!!!!! if your Distro installs some packages to /opt wait till after the main install and this fix before installing the package. Or just move it afterward then set up the mount. At least with open office, I haven't seen issues with this setup. BTW I believe a package meant to install into /opt will overwrite a symbolic link called /opt and actually make it a directory. This is why I used a bind mount.
I believe you also use this trick for simplifying sharing files when hosting an ftp with your computer. Symbolic links generally arn't respected and hard links can't cross partitions. So you just bind mound a directory to another directory.
500mb for /boot is way too much in my opinion, and I would like to know how much RAM you have and why you think you need so much swap. Also, what about putting /tmp and swap at the end of the disc? (suggestion).
500mb for /boot is way too much in my opinion, and I would like to know how much RAM you have and why you think you need so much swap. Also, what about putting /tmp and swap at the end of the disc? (suggestion).
If you're happy with it, we're happy with it.
Yeah, the swap partition seems slightly too big for me as well (I never exceed 2GB), however, with 500GB of drive space you can afford to be generous
Ok, I think I'm starting to understand (I think). How does this look? This is only a home computer that I use to surf the web and do normal things like that. Also use it for storing some pictures and video's. Also storage for bank statments and other documents. Is there any thing I need to increase?
The sizes look really good but I think you will end up with a lot of wasted space. Remember that it is very easy to grow a logical volume and file systems, but fairly hard to shrink it. So with that in mind I would start with slightly smaller logical volume sizes, then you can grow them as you need. That way your not wasting so much space. I very much doubt that you will ever use all the space you have allocated.
This way you have plenty of space to grow into where you need it.
Being a home user, music, photos, etc etc most of the space is going to go into your /home
Even a standard installation, openoffice etc etc is not likly to use all this space.
/var is only going to fill up if you have a lot of logs, and package updates etc, so 3 GB should be enough, but of course if you find yourself running out of space you can grow it.
/tmp is always a good one to keep seperate, it stops processes running away and filling up / as causing system problems. 2GB is going to plenty.
If you going to be doing a lot of video editing etc then 2GB of swap is fine.
Also the best part of using logical volumes is flexability, if your example you are running an apache webserver and its taking alot of space, its not problem to drum up some more logical volumes for the websites and logs etc.
So if you have a 500G disk, I would create it with the /boot as the primary partition and then assign the rest of the disk to a logical volume. You use about 55Gb's of that to start with and that gives you over 450GB to grow as you need.
Thats more than enough
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.