LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Is my LFS layout suite my needs? (https://www.linuxquestions.org/questions/linux-newbie-8/is-my-lfs-layout-suite-my-needs-618510/)

johncsl82 02-04-2008 01:50 AM

Is my Linux File System layout suite my needs?
 
hello Linux professional :D

I got 70 gigs hard disk to allocate for my new fedora 8 :D

below is my Linux File System layout for my new fedora 8

Code:

/boot      50MB

/      ext3 5GB
/usr  ext3 15G
/home  ext3 30G
/var  ext3 2G
/opt  ext3 15G

/swap      3G

basically, I used my linux for watching movie, games, virtualization and software development. So, dear linux expert do you think my LFS layout will suite my needs?

Thank you.

gilead 02-04-2008 02:46 AM

3G for swap sounds like a lot - unless you're doing some huge video processing. Even if you are, I'd put more RAM in the box and reduce the swap size anyway, swap is slow.

As for the rest it depends what you're using the box for. Is it a server of some sort, a desktop or something else?

johncsl82 02-04-2008 05:21 AM

Quote:

Originally Posted by gilead (Post 3045318)
3G for swap sounds like a lot - unless you're doing some huge video processing. Even if you are, I'd put more RAM in the box and reduce the swap size anyway, swap is slow.

As for the rest it depends what you're using the box for. Is it a server of some sort, a desktop or something else?


well, I doing a lot of downloading as well, so do I need to increase my /usr or /home?

because just I alone is using that linux box and no one else.......

gilead 02-04-2008 12:43 PM

I download a lot of stuff as well - but it's usually application code and doesn't end up in /home. Other people download vidoes/music and it does end up under /home.

To give you practical advice on a partition scheme, we need to know where the usage will be. As an alternative, create one big partition and a swap file (say 1GB), use the system for a while and monitor disk usage with du -csh /* - the only risk is that if something happens to fill your hard disk you may need to boot with a rescue CD to clear some space if the system won't let you boot/login.

Partitioning can be an emotional thing for some people. How you do it depends entirely on what is practical for your situation.

johncsl82 02-04-2008 09:16 PM

Quote:

Originally Posted by gilead (Post 3045815)
I download a lot of stuff as well - but it's usually application code and doesn't end up in /home. Other people download vidoes/music and it does end up under /home.

To give you practical advice on a partition scheme, we need to know where the usage will be. As an alternative, create one big partition and a swap file (say 1GB), use the system for a while and monitor disk usage with du -csh /* - the only risk is that if something happens to fill your hard disk you may need to boot with a rescue CD to clear some space if the system won't let you boot/login.

Partitioning can be an emotional thing for some people. How you do it depends entirely on what is practical for your situation.

btw, for "/" partition should I upgrade it to 8 or 10 gigs?

Thank you

btmiller 02-05-2008 12:15 AM

Since you have separate /usr and /var partitions there's no need for / to be very big since it will only contain the minimal set of binaries/libraries. 5 GB might even be a bit on the big size, although I don't see a separate /boot partition (which is always a good idea IMO) so maybe not...

johncsl82 02-05-2008 04:38 AM

Code:

/boot      60MB

/      ext3 6GB
/usr  ext3 12G
/home  ext3 37G
/var  ext3 2G
/opt  ext3 12G

/swap      1G


above is my revised linux file system layout, I don't know whether that I should decrease both "/usr" and "/opt" to 10 gigs and increase my "/home" into 41 gigs, because I played a lot of game which I need a big hard disk space for my windows virtualization adn I love movies. :D


Thank you

Tinkster 02-05-2008 03:08 PM

Personally I think that an opt of 12GB is a bit excessive,
and I'd like to see a separate partition for /tmp if you're
trying to be that granular in hte first place ... nothing as
nasty as root being full because /tmp ran over ;}


Cheers,
Tink

jay73 02-05-2008 03:26 PM

And if you make a separate /tmp partition, you need only 2GB for /, that will still be plenty. 5 or 6GB for /opt should be more than enough, too. I would suggest a separate partition for vmware images, preferably even on a different hard drive.

johncsl82 02-05-2008 11:39 PM

Quote:

Originally Posted by jay73 (Post 3047145)
And if you make a separate /tmp partition, you need only 2GB for /, that will still be plenty. 5 or 6GB for /opt should be more than enough, too. I would suggest a separate partition for vmware images, preferably even on a different hard drive.

how much hard disk space should I put in for "/tmp"? 2 gigs or 1 gigs?

Thank you

Tinkster 02-06-2008 12:20 AM

Depends on your personal usage. If you, for example, were to create
your own video DVDs you'd want a fairly chunky /tmp *or* lots of space
in ~ .... it's all a matter of your preferences.


Cheers,
Tink

jay73 02-06-2008 01:17 AM

But if you don't do anything like creating videos, /tmp can be kept quite small. Most of the time it doesn't outgrow a handful of megabytes. Mine is 1GB, just in case, but most of the time it is 99% empty. If you ever need more /tmp on some specific occasion, you can apply a few simple tricks such as pointing it to free space in another partition (say, your home partition).

johncsl82 02-06-2008 05:01 AM

Thank you for reply :D

You have enlighten me :D

and now I can enjoy Linux :D


All times are GMT -5. The time now is 05:39 AM.