LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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

Reply
 
Search this Thread
Old 06-15-2005, 02:35 PM   #1
introuble
Member
 
Registered: Apr 2004
Distribution: Debian -unstable
Posts: 700

Rep: Reputation: 31
Partitioning for a Development Workstation / Desktop


Hello !

In about a week or so I will remove everything from my hard drive and "start fresh" . I plan on installing Gentoo Linux (Stage 1) and giving it the whole hard drive .

I have 40 GB of disk space and 128 MB of RAM .

The system I will be installing will be used as a Development Workstation but also for "normal user" activities (wich basically consist of connecting to servers [http/mail/ftp/ssh etc.] + music + a bit of playing around with Gimp .. no games, no *Open Office* and similar ..) .

Now .. I've read a lot of tutorials about partitioning your hard drive .. while they explain what and why , they don't explain how big . That's my problem ... I know what partitions I wish to create :
  • /
  • /home
  • /usr
  • /var
  • /tmp
  • /boot
  • swap

(not: I know I don't *need* all those partitions but that's how I would like my disk partitioned .. mostly for security reasons, convenience for back-up, upgrading etc. ; right now I have only a swap and / partition .. but like I said .. I want to change and those are the partitions I want .. )

Now .. like I've mentioned earlyer I have 128 MB of RAM .. so I figured I should make the Swap partition 256 MB .. The Gentoo Handbook sais the Boot partition should be 32 MB so the /boot partition will have 32 MB

The problem is .. except for the partitions above .. I have no idea what sizes the rest of the partitions should have ..
Just how big does / have to be if /home, /usr, /var, /tmp and /boot are separate from it ? Not very big I'd assume ?

Now .. I was thinking of something like this:
Quote:
/boot - 32 MB
swap - 256 MB
/var - 3 GB
/tmp - ??
/ - 1248 MB
/usr - 9 GB
/home - rest ..
I don't know if USR is too big or too small .. all I know is that right now I don't really believe I need any more software installed (I might be wrong of course) .. my TOTAL disk usage is 5.1 GB .. I've been having this system for about 3 months .. I have no idea how big /tmp should be ..

I forgot to mention this .. the only server currently running on my system is SSHD (well .. sure I have X too but it accepts local connections only ..) . But it is possible I will be running a HTTPD/FTPD/EMAILD on it too .. (any of these, in any combination)

So anyway , it comes down to this:

#1 : Can anyone recommend a partitioning scheme for my requierments ? (I mean .. keeping the partitions [or removing/adding one/two] .. I mostly need recomendations on sizes and filesystems) .. reasons/explanations would be highly appreciated too ..
#2 : If you think my partitioning scheme is close to "the truth" .. please tell me what you have to object to it or why it is good in some ways etc.

Thank you for your attention !

p.s: if you don't feel like designing a partition that fits my needs , I would really appreciate the results of "cat /etc/fstab && df -h" ran on your box along with a description of what you are using your system for .. maybe I can "deduct" a good partitioning scheme

Thanks again !
 
Old 06-15-2005, 03:21 PM   #2
bruno buys
Senior Member
 
Registered: Sep 2003
Location: Rio
Distribution: Debian
Posts: 1,509

Rep: Reputation: 46
This is for a full sarge install, openoffice, gimp, X, kde (no gnome). Lots of multimedia software, lots of internet software.
/backup is where I keep music collection and videos. And... backups, also.

bruno@frank:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda2 2.8G 1.1G 1.7G 40% /
/dev/hda6 56G 30G 27G 53% /backup
/dev/hda5 12G 6.3G 4.9G 57% /home
/dev/hda3 4.7G 1.6G 3.2G 34% /usr

I got surprised on how debian is economic. As you can see, / and /usr were overestimated at partitioning-time.

bruno@frank:~$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/hda2 / reiserfs notail 0 1
/dev/hda6 /backup reiserfs defaults 0 2
/dev/hda5 /home reiserfs defaults 0 2
/dev/hda3 /usr reiserfs defaults 0 2
/dev/hda1 none swap sw 0 0
/dev/hdc /media/cdrom0 iso9660 ro,user,noauto 0 0
/dev/hdd /media/cdrom1 iso9660 ro,user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0

A few thoughts: use only one fs, unless you have a good reason not to. Keep it simple. Whether ext3, reiser, xfs, jfs, its personal, I guess.

You can speed things up by creating the swap as the first partition (hda1).
Maybe this can be a starting point:

/dev/hda1 swap 256MB primary swap
/dev/hda2 / 2-3 GB primary
/dev/hda3 /usr 2-4 GB primary
/dev/hda4 extended
/dev/hda5,6,7 ... the rest goes here, and you still have ~34GB out of 40GB, right?
 
Old 06-15-2005, 03:25 PM   #3
stefan_nicolau
Member
 
Registered: Jun 2005
Location: Canada
Distribution: Debian Etch/Sid, Ubuntu
Posts: 529

Rep: Reputation: 32
I do not know anything Gentoo-specific.

I have always seen / at 250-500 mb
I am currently using only ~150 mb

If you intend to run many servers, you may need more than 256 mb swap.
For developpment, /tmp should be about 1Gb

This is a setup for a mail/MySQL server (not what you need)
Code:
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/hda1       /               ext3    defaults,errors=remount-ro 0       1
/dev/hda7       /home           ext3    defaults        0       2
/dev/hda5       /tmp            ext3    defaults        0       2
/dev/hda6       /usr            ext3    defaults        0       2
/dev/hda8       /var            ext3    defaults        0       2
/dev/hda3       none            swap    sw              0       0
/dev/hdc        /media/cdrom0   iso9660 ro,user,noauto  0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto  0       0
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda1             229M  108M  110M  50% /
tmpfs                 126M   12K  126M   1% /dev/shm
/dev/hda7             894M   13M  834M   2% /home
/dev/hda5             229M  4.1M  213M   2% /tmp
/dev/hda6             2.8G  557M  2.1G  21% /usr
/dev/hda8             9.5G  345M  8.7G   4% /var
This is a setup for a file server
Code:
LABEL=/                 /                       ext3    defaults        1 1
LABEL=/boot             /boot                   ext3    defaults        1 2
none                    /dev/pts                devpts  gid=5,mode=620  0 0
none                    /dev/shm                tmpfs   defaults        0 0
LABEL=/home             /home                   ext3    defaults,quota        1 2
none                    /proc                   proc    defaults        0 0
none                    /sys                    sysfs   defaults        0 0
LABEL=/tmp              /tmp                    ext3    defaults        1 2
LABEL=/var              /var                    ext3    defaults,quota        1 2
/dev/hda3               swap                    swap    defaults        0 0
/dev/cdrom              /mnt/cdrom              udf,iso9660 noauto,owner,kudzu,ro,user 0 0
/dev/fd0                /mnt/floppy             auto    noauto,owner,kudzu,user 0 0
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda2             7.9G  2.1G  5.5G  27% /
/dev/hda1              97M  7.6M   85M   9% /boot
none                  126M     0  126M   0% /dev/shm
/dev/hda7              57G   22G   32G  41% /home
/dev/hda6             291M  8.1M  268M   3% /tmp
/dev/hda5             9.9G  4.4G  5.0G  47% /var
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Gentoo or Slackware for development workstation introuble Linux - Distributions 5 06-08-2005 09:40 AM
standby or suspend a desktop workstation meonkeys Fedora 2 06-05-2005 12:10 PM
building a linux development worksation/desktop introuble Programming 3 05-02-2005 07:31 PM
desktop or workstation shanenin Linux - Software 3 09-16-2003 12:37 PM
How are most Linux boxes being used - servers, development, workstation...? PCRon58 Linux - General 25 04-28-2002 11:58 AM


All times are GMT -5. The time now is 01:20 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration