Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
partitioning schemes
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
gohmdoree
Guru
Guru


Joined: 12 Oct 2004
Posts: 533

PostPosted: Fri Dec 01, 2006 9:48 pm    Post subject: partitioning schemes Reply with quote

i have a fair number of installations under the belt. initially i followed a particular partitioning scheme, but now i been trying to change up.

how do you guys typically partition a drive? 20G, 40G, 60G, 100G, 250G?

curious on what everyon else does
Back to top
View user's profile Send private message
stupidkid
Apprentice
Apprentice


Joined: 17 Apr 2006
Posts: 247
Location: 127.0.0.1

PostPosted: Fri Dec 01, 2006 10:16 pm    Post subject: Reply with quote

My 160 GiB so only about 150 GB

10 for /
30 for /usr
105 for /home
4 for swap
64 megs for /boot

I don't run a webserver or anything, so I didn't make /var a separate partition.
_________________
How many people can read hex if you and dead people can read hex?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54220
Location: 56N 3W

PostPosted: Fri Dec 01, 2006 10:20 pm    Post subject: Reply with quote

gohmdoree,

Thats what I have.
Code:
$ df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/md/1              9629624   1700288   7440172  19% /
/dev/md/2             57685372  45850924   8904204  84% /usr
/dev/md/3              3857992    977608   2684404  27% /usr/local
/dev/md/4             11543192   1197312   9759520  11% /tmp
/dev/md/5             30771648  16010400  13198140  55% /var
/dev/md/6            461357848 281486876 156435364  65% /home
none                    518072         0    518072   0% /dev/shm
/dev/md/0                38792     18683     18106  51% /boot
In addition, swap is two equal priority 1Gb partitons
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
darkphader
Veteran
Veteran


Joined: 09 May 2002
Posts: 1217
Location: Motown

PostPosted: Fri Dec 01, 2006 10:31 pm    Post subject: Reply with quote

I typically use separate partitions for:
Code:
/boot
/
/tmp
/usr
/usr/portage
/usr/local
/var
/var/log
/home
/opt
swap
And with more than one drive I place the swap partition as the first primary on one of the them.

An important consideration, especially for servers, that I discovered the hard way is to always have a separate /var/log partition. One of the earlier servers I set up many moons ago as a 'nix noob was a SuSE 7.3 system where I accepted the default partitioning scheme (maybe 3 partitions if you're lucky) ran fine for years but then one day decided to have a problem. The problem was not that bad and easily solvable but the system basically crashed/halted, not directly because of the problem, but indirectly because of the constant error logging causing all of the hard drive space to fill. If there had been a separate /var/log partition the customer would not have been impacted so.

With Gentoo I use that separate /usr/portage partition to avoid accidently filling up /usr with downloaded 'distfiles'.

Chris
_________________
WYSIWYG - What You See Is What You Grep
Back to top
View user's profile Send private message
timeBandit
Bodhisattva
Bodhisattva


Joined: 31 Dec 2004
Posts: 2719
Location: here, there or in transit

PostPosted: Sat Dec 02, 2006 2:06 am    Post subject: Reply with quote

I have an 18Gb drive like so:
Code:
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda2              84M   14M   66M  17% /boot
/dev/sda3             297M  177M   90M  67% /
/dev/sda5             8.0G  4.6G  3.5G  57% /usr
/dev/sda7             2.0G  7.8M  2.0G   1% /tmp
/dev/sda8             2.0G  1.4G  702M  66% /opt
/dev/sda9             4.0G  2.7G  1.4G  66% /home/portage
sda1 is a Dell utility partition, sda6 is swap (~512M) and is near the seek-center of the disk (which hardly matters as the system rarely swaps nowadays). I have my own peculiar reasons for sda9 being what it is, but effectively it's /usr/portage/distfiles.

/usr is mounted read-only. I'd do the same with /opt but some apps installed there expect to be on a writable filesystem :(.

My second drive (73GB) is simpler:
Code:
/dev/sdb1              50G   39G   12G  78% /home
/dev/sdb4             6.0G  903M  5.1G  15% /var
These are physically at the ends of the disk, on either side of the remaining unpartitioned space. When possible, I highly recommend setting aside a large chunk of unallocated space for future needs. Better to keep one's options open than try to predict the future.

When you have multiple disks but no RAID, it can be worthwhile to arrange partitions to keep the spindles busy or at least minimize contention, which is why I put /var and /home on the second drive.
_________________
Plants are pithy, brooks tend to babble--I'm content to lie between them.
Super-short f.g.o checklist: Search first, strip comments, mark solved, help others.
Back to top
View user's profile Send private message
bradbeglin
Tux's lil' helper
Tux's lil' helper


Joined: 24 Sep 2006
Posts: 91
Location: Atlanta, Georgia, USA

PostPosted: Sat Dec 02, 2006 2:34 am    Post subject: Reply with quote

4G for swap is an whole lot, I know what the rule of thumb is, but that rule does not really apply if you have a lot of RAM. If you have more than 1GB of RAM, then anything more than 512MB of swap total is probably a waste, and even 512MB probably is as well. On my system, I have 2 GB of RAM, and I have never used more than about 100MB of swap.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum