LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-04-2008, 02:50 AM   #1
johncsl82
Member
 
Registered: Nov 2003
Location: Planet Earth
Distribution: Redhat, Gentoo, Mandrake, FreeBSD
Posts: 73

Rep: Reputation: 18
Question Is my Linux File System layout suite my needs?


hello Linux professional

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

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.

Last edited by johncsl82; 02-04-2008 at 08:13 AM.
 
Old 02-04-2008, 03:46 AM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 164Reputation: 164
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?
 
Old 02-04-2008, 06:21 AM   #3
johncsl82
Member
 
Registered: Nov 2003
Location: Planet Earth
Distribution: Redhat, Gentoo, Mandrake, FreeBSD
Posts: 73

Original Poster
Rep: Reputation: 18
Quote:
Originally Posted by gilead View Post
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.......
 
Old 02-04-2008, 01:43 PM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 164Reputation: 164
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.
 
Old 02-04-2008, 10:16 PM   #5
johncsl82
Member
 
Registered: Nov 2003
Location: Planet Earth
Distribution: Redhat, Gentoo, Mandrake, FreeBSD
Posts: 73

Original Poster
Rep: Reputation: 18
Quote:
Originally Posted by gilead View Post
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
 
Old 02-05-2008, 01:15 AM   #6
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
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...
 
Old 02-05-2008, 05:38 AM   #7
johncsl82
Member
 
Registered: Nov 2003
Location: Planet Earth
Distribution: Redhat, Gentoo, Mandrake, FreeBSD
Posts: 73

Original Poster
Rep: Reputation: 18
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.


Thank you
 
Old 02-05-2008, 04:08 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
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
 
Old 02-05-2008, 04:26 PM   #9
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
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.
 
Old 02-06-2008, 12:39 AM   #10
johncsl82
Member
 
Registered: Nov 2003
Location: Planet Earth
Distribution: Redhat, Gentoo, Mandrake, FreeBSD
Posts: 73

Original Poster
Rep: Reputation: 18
Quote:
Originally Posted by jay73 View Post
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
 
Old 02-06-2008, 01:20 AM   #11
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
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
 
Old 02-06-2008, 02:17 AM   #12
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
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).
 
Old 02-06-2008, 06:01 AM   #13
johncsl82
Member
 
Registered: Nov 2003
Location: Planet Earth
Distribution: Redhat, Gentoo, Mandrake, FreeBSD
Posts: 73

Original Poster
Rep: Reputation: 18
Thank you for reply

You have enlighten me

and now I can enjoy Linux
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Errors when running Glibc-2.3.6 test suite (reference: LFS 6.2 chapter 6.9) PingFloyd Linux From Scratch 2 02-02-2007 10:43 PM
Switching keyboard layout - Mandriva2006 - K.D.E. Windows Layout! itz2000 Mandriva 3 08-13-2006 07:43 PM
LFS Book Chapter 6 - 1st step (chroot to /mnt/lfs) doens't work bauld Linux From Scratch 11 03-15-2006 01:31 AM
LFS 6-1: Glibc Test Suite Fails at end with 2 errors in Chapter 6 TGWDNGHN Linux From Scratch 1 07-26-2005 01:23 PM
Linux Optimization Suite? comparable to WinOptimization Suite AJones Linux - Software 1 05-15-2005 06:04 AM


All times are GMT -5. The time now is 04:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration