Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


1080p

1332 posts

Uber Geek
+1 received by user: 152
Inactive user


#38014 22-Jul-2009 22:40
Send private message

I have the chance to play around with a server which will be running Debian Stable. I will be installing the OS from scratch on a 500GB Hard Drive and have a question regarding partitions.




I am a somewhat n00b to Linux but do have a basic working understanding. The main purpose of this server will be to run rtorrent + rtgui for sharing my 'linux isos', an FTP server (vsftpd), ZNC (IRC Bouncer) as well as the possibility of a LAMP server for a very low traffic website (basically for me to play with).




I'd like to know what you're thoughts on an optimal partitioning of the drive would be? Obviously 'linux isos' take up the majority of the space but as far as I can gather from my Google trawls I should partition something like this:












1. / (root partition containing /etc, /bin, /sbin, /lib etc... all the 'OS stuff') .... 2GB

2. Swap ................................................................................................ 1.5GB

3. /tmp & /var (all the updatable and temporary files etc...) ........................ 5GB

4. /home (where all the data goes) .......................................................... 'The Rest'







Its late and I can't think of what I have forgotten (if anything) but feel free to critique this setup.




The server itself will be:




Intel Dual Core E2180 (2.0GHz)

1GB DDR2 SDRAM (upgrading to two when I have the cash)

500GB HDD




Many thanks in advance for any help you are able to provide.

Create new topic
lpcustom
13 posts

Geek


  #243747 7-Aug-2009 04:01
Send private message

I'm sure you've already worked this out but here's my reply anyway.

You may want to increase the root a bit. This is especially true if you don't have a separate /usr directory. Also, since the default Apache configuration on Debian had your web root at /var/www, you may consider increasing the size of /var. Your apt cache is in /var as well. So, if you don't regularly apt-get clean, you'll soon run out of space there.
Hope this helps.



mjb

mjb
996 posts

Ultimate Geek
+1 received by user: 67

Trusted

  #244031 7-Aug-2009 18:51
Send private message

My usual layout is:

/ 500MB
/usr 3-5GB, depending on how much software will be installed
/var 10-15GB
/mount - the rest

/home and /tmp are just symlinks to /mount/home and /mount/tmp

sometimes I roll /var into that too.

For swap, I intersperse 1024MB partitions in between the rest till I get to twice the RAM, or until there are no more partition spots left, whichever comes first. (Usually only 2GB. If there will be RAM hungry apps installed, I buy more RAM rather than increasing the swap. I'd rather never hit swap).




contentsofsignaturemaysettleduringshipping


Create new topic








Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.