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.
Depends on what you want to do. I'm not sure why you even want to make it a separate partition. I just put it in my main "/" partition. The only time I make a separate partition is for "/var". I do that because I don't want logfiles to grow so big that they could fill up my entire root partition. That could only happen if someone's hacking my system or something. So it's a bit of protection against that. But I don't see any need to put "/home" on a separate partition. My advice is to not use a different partition.
I doubt you'd even need 500MB for "/var", but what the heck. And having a gig of swap is overkill, but I figured it could come in handy. I usually make swap equal to twice the total memory you have. So if I have 512MB of memory, I'd use 1GB of swap.
It really depends on the kind of files you will be keeping. If you download a lot of mp3s you might want to make it bigger than if you just used your computer for surfing and email. Also, are you only putting one operating system on this drive or a few? If you are only installing one distro, some swap and home, then I would make 28 gig for /, 2 gig for swap and 10 for home. Of course 10 gig might be a little excessive. If you have linux on right now see how much space you are using in your home parition and think how much more you will need. A reasonable /home for me would be 3-5 gig, so that way I never run out of space of course if I kept it clean and deleted things when I was done it would be less.
I'm not using it for a server or anything, the most used partition will be /home. I don't plan to use many graphics-intensive games, wouldn't about 10GB for the / partition be enough?
10 GB is more than enough space for / if you're using a seperate /home partition. /var and /usr are the only parts of the system that will grow much, and at last count a full blown Red Hat9 install (big heavy distro) was just a tad over 4 gigs. That leaves you 5 gigs worth of growth and a huge gig of space for the logs in /var.
IMO there's no such thing as an excessively large /home...it's too easy to fill up a harddrive with downloads, multimedia, etc. Ideally I'd like to have an 80GB or larger drive dedicated to /home...as it is, it's 3GB and getting filled quickly.
Also, having a separate partition allows you more freedom. You can change or reinstall your distro without having to backup all your files. If /home is on a separate physical drive you can put it into another linux machine and boot that one up with all your files and settings.
Originally posted by sthemage Depends on what you want to do. I'm not sure why you even want to make it a separate partition. I just put it in my main "/" partition. The only time I make a separate partition is for "/var". I do that because I don't want logfiles to grow so big that they could fill up my entire root partition. That could only happen if someone's hacking my system or something. So it's a bit of protection against that. But I don't see any need to put "/home" on a separate partition. My advice is to not use a different partition.
I doubt you'd even need 500MB for "/var", but what the heck. And having a gig of swap is overkill, but I figured it could come in handy. I usually make swap equal to twice the total memory you have. So if I have 512MB of memory, I'd use 1GB of swap.
Steve
Why would you need a GB for swap. I have desktop machines that only have 128 megs of RAM that have 100 megs for swap that is never used.
If you have more than 128 megs of RAM, there really isn't a need to have more than 200 megs for swap.
Also, your /home partition can be any size, just think how much you think you will need as a user, downloading apps, media, etc.
I would suggest for a desktop machine maybe this scheme:
swap = 200 megs
/ = 1 GB
/usr = 3 to 5 GB
/var = 500 to 1GB
/tmp = 500 to 1 GB
/home = rest of drive
Its nice to have /var and /tmp on their own partitions. /var holds log files, if something chaotic happens and wants to write like mad log files to fill up your drive, it won't exceed the limited amount on that partition, thus not harming or filling up your / directory/partition. Same goes for /tmp in a similiar kind of way.
/usr you will want fairly larger, this is where most installed apps will reside, etc.
/ you can actually probably get away with a 300 to 500 mb partition, but its safe with a 40 GB drive to allocate a GB to it, just in case you need the extra space.
Originally posted by mikshaw IMO there's no such thing as an excessively large /home...it's too easy to fill up a harddrive with downloads, multimedia, etc. Ideally I'd like to have an 80GB or larger drive dedicated to /home...as it is, it's 3GB and getting filled quickly.
Yupyup.....same here. All my amputee vampire midget pr0n needs room to breathe
Quote:
/usr = 3 to 5 GB..........<snip>......./usr you will want fairly larger, this is where most installed apps will reside, etc.
Careful about doing this. It's a great idea to divide some of the subdirectories in /usr , but if you use a partition for the root dir of /usr you may end up with an unbootable system, depending on where ext3, reiserfs, jfs and xfs utilities reside. I.E. the system looks for the reiserfs tools before it mounts the fstab and /usr/bin is where the binaries are, ala Slackware.
Originally posted by burnpile Careful about doing this. It's a great idea to divide some of the subdirectories in /usr , but if you use a partition for the root dir of /usr you may end up with an unbootable system, depending on where ext3, reiserfs, jfs and xfs utilities reside. I.E. the system looks for the reiserfs tools before it mounts the fstab and /usr/bin is where the binaries are, ala Slackware.
With the amount of tools and packages already installed, usually my /usr will be anywhere between 1 GB and 2 GB.. I'll actually make mine about 6 GB in which I have yet to ever fill up, since just about everything I have and use is already installed..
But yeah, treat this like your / partition, never try to fill it up to 100% capacity.
Originally posted by rodeoclown Why would you need a GB for swap. I have desktop machines that only have 128 megs of RAM that have 100 megs for swap that is never used.
If you have more than 128 megs of RAM, there really isn't a need to have more than 200 megs for swap.
The reason *I* would use 1GB of swap is because I sometimes use my machine as a work machine. I work in the microchip design industry, so sometimes I write programs which work with vast amounts of data. It helps sometimes having a gig of swap for that.
But you're right, most people don't need anywhere near that much swap. But I would still tell them to put on a gig of swap just in case they have some remote possibility of needing it in the future for some weird application. Who knows. Disk space is cheap. Couldn't hurt anyway.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.