Re: [gentoo-user] Partition setup?

2003-06-20 Thread Dirk Heinrichs
Am Mittwoch, 18. Juni 2003 22:18 schrieb ext Joe:
 Hello,

 I'm in the process of planning my Gentoo Linux install, and I was
 wondering if anyone had some input on setting up the partitions?  I have
 2 drives, one 15Gb and a 40Gb drive.  I will be running an ftp server on
 this box, and using it for miscellaneous other tasks.  If anyone can
 give any insight or maybe how you have set up your partitions I would
 appreciate it!  Thanks!
Since the Gentoo Installation CD comes with EVMS, I'd create 3 partitions: 
One of about 50M for /boot on the first disk, the second with the rest of 
the first disk and the last using the second disk completely. Then use EVMS 
to put the two large partitions into on storage region and create logical 
volumes in this region as you like (even for swap).

HTH...

Dirk
-- 
Dirk Heinrichs  | Tel:  +49 (0)151 1513 6954
Configuration Manager   | Fax:  +49 (0)211 47068 111
Cap Gemini Ernst  Young| Mail: [EMAIL PROTECTED]
Hambornerstraße 55  | Web:  http://www.cgey.com
D-40472 Düsseldorf  | ICQ#: 110037733
GPG Public Key C2E467BB | Keyserver: www.keyserver.net


pgp0.pgp
Description: signature


RE: [gentoo-user] Partition setup?

2003-06-19 Thread Essien Ita Essien







All... the posts are really helpfull you know, the last one especially.
I also feel that you'll need to create a partition for /home/ftp (is that the 
ftp home directory)
I think the rule of thumbs generally is to keep your /usr and /var and /home 
as seperate partitions... and any other filesystems that will be populated with 
user data after the system is running. This greatly aids performance as the 
filesystem gets more populated and it helps when you need to reinstall the OS. 
you wont need to loose your hard earned data.
Usually, / and /boot are usually kept small and as /boot only contains boot 
up information that you generally dont mess around with on a production system 
once it is up and running. Gentoo actually doesn't mount the /boot partition 
under normal boot up.
/ is generally left to contain /etc /root /sbin /bin and and these days i 
think /opt, as many distros dont really use it as the FHS advises it should be 
used (i'm not too sure of these though as i've only used RedHat, Gentoo, and 
TurboLinux (i once tried to create a seperate partition for /etc and got an 
error that /etc is needed at startup, so i've not tried doing that again).
For more informationyou can download and 
go thru the UNIX FHS(Filesystem Hierarchy Standard) Specification from (www.pathname.com/fhs).They say its 
for developers, but a little inside information shouldn't hurt you 
know. You should find it a bit 
informative. And once you get the idea, you'll know the best way to go.
cheers
Essien


[gentoo-user] Partition setup?

2003-06-18 Thread Joe








Hello,



 Im in the
process of planning my Gentoo Linux install, and I was wondering if anyone had
some input on setting up the partitions? I have 2 drives, one 15Gb
and a 40Gb drive. I will be running an
ftp server on this box, and using it for miscellaneous other tasks. If anyone can give any insight or maybe how
you have set up your partitions I would appreciate it! Thanks!



- Joe J








Re: [gentoo-user] Partition setup?

2003-06-18 Thread Alan
On Wed, Jun 18, 2003 at 03:18:40PM -0500, Joe wrote:
 Hello,
  
 I'm in the process of planning my Gentoo Linux install, and I was
 wondering if anyone had some input on setting up the partitions?  I have
 2 drives, one 15Gb and a 40Gb drive.  I will be running an ftp server on
 this box, and using it for miscellaneous other tasks.  If anyone can
 give any insight or maybe how you have set up your partitions I would
 appreciate it!  Thanks!

This being linux, there is definately more than one way to do it...
However, assuming both drives are close to the same performance (IE:
one's not either a super fast or super slow drive), I might do something
like the following:

15G (hda)
  (hda1) 10-50M /boot   --  depending on if you have a lot of kernel
images hanging around :)
  (hda2) 500M swap  --  depending on the amount of ram you have you
might want more or less.  Some 
advocate no 
swap, but I always try to have 
256-1G or 
more around depending on HD 
space
  (hda3) remaining /--  lots of room for apps, portage, distfiles,
etc

40G (hdb)
  (hdb1) /home  --  put your ftp in /home/ftp web on
/home/httpd, etc.  Lots of 
room.

Just my suggestion anyway.

-- 
Alan [EMAIL PROTECTED] - http://arcterex.net

There are only 3 real sports: bull-fighting, car racing and mountain 
climbing. All the others are mere games.-- Hemingway

--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Partition setup?

2003-06-18 Thread Stroller
On 18/6/03 9:18 pm, Joe [EMAIL PROTECTED] wrote:

   I¹m in the process of planning my Gentoo Linux install, and I was wondering
 if anyone had some input on setting up the partitions?  I have 2 drives, one
 15Gb and a 40Gb drive.  I will be running an ftp server on this box, and using
 it for miscellaneous other tasks.  If anyone can give any insight or maybe how
 you have set up your partitions I would appreciate it!  Thanks!

If it was going to be *just* an FTP server, I might be inclined to look into
LVM, in order to add some of your 15gb drive towards the ftp partition; I
don't have any experience  with LVM, yet, tho', so don't know how difficult
it is. Besides, since you're asking, you probably don't want to go that
route.

Here's what I'd do:
  /dev/hda  - 15gig drive; partition into 4, thus;
/dev/hda1   - /boot, 25meg - 50meg
/dev/hda2   - /swap, 125meg - 750meg
/dev/hda3   - / c 4gig  (plenty of room for /usr/portage,
  /usr/temp c, but still
  flexible)
/dev/hda4   - /home, the rest, c 10gig.
   My Documents in M$ terminology.

  /dev/hdb  - 40gig drive, only one partition:
/dev/hdb1   - /home/ftp, 40gig

Some folks prefer to have /usr on a separate partition - it's such a popular
choice that I'm sure there must be a very good reason, but I've never worked
out (or researched, I'm too lazy) what it is. Giving /home it's own
partition just really works for me - it's a logical separation between user
 system files - and the /home/ftp mount point for the 2nd drive (I also
have another at /home/news, because I also run a caching Usenet server) just
made sense when I upgraded my system.

Note: some filesystems (eg; `man mke2fs`, -m option) reserve a certain
percentage of the drive for the root user. If you're configuring your
2nd-drive as I describe above you can force this to 0%.

HTH,

Stroller.

-- 
Enjoyed this post? Thanks for reading - please consider employing me!
Technical support / system administration - CV available on request
Linux / Unix / Windows / Mac OS X  - UK or anywhere considered



--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Partition setup?

2003-06-18 Thread Mark Fisher
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Wednesday 18 June 2003 22:58, Stroller wrote:

 Some folks prefer to have /usr on a separate partition - it's such a
 popular choice that I'm sure there must be a very good reason, but
I've
 never worked out (or researched, I'm too lazy) what it is. 

I think its good practise to mount directories which could potentially  
spiral in size un-noticed on different partitions from / , having a full 
/ partition is *bad news* and with logs going into /var and 'user 
installed programs' [ portage in the gentoo world ] going into /usr, I  
tend to keep them seperate.

There maybe other reasons .. but thats mine :o)

- -- 
Mark
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE+8QDbzrmqzOOQUj8RAuEMAKCrLN3LAZHxXd9S7zc7ZBrdg1B0cwCfSyxl
fdm3D+Lqar2zk3/D5vbD4QQ=
=8dOX
-END PGP SIGNATURE-


--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Partition setup?

2003-06-18 Thread Alan
On Thu, Jun 19, 2003 at 12:16:22AM +, Mark Fisher wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 On Wednesday 18 June 2003 22:58, Stroller wrote:
 
  Some folks prefer to have /usr on a separate partition - it's such a
  popular choice that I'm sure there must be a very good reason, but
 I've
  never worked out (or researched, I'm too lazy) what it is. 
 
 I think its good practise to mount directories which could potentially  
 spiral in size un-noticed on different partitions from / , having a full 
 / partition is *bad news* and with logs going into /var and 'user 
 installed programs' [ portage in the gentoo world ] going into /usr, I  
 tend to keep them seperate.
 
 There maybe other reasons .. but thats mine :o)

AFAIK the other historical reason was similar but different.  If you
lost a disk you still had a bootable partition in / with the tools
needed to possibly recover data (ever notice how things like cp, rm,
fsck and fdisk are always in /sbin and not /usr/sbin?).  Not sure what
you'd do if your / was lost though, but it's a heck of a lot easier to
restore/reinstall an os on / than restore/reinstall *everything* I
guess.

alan

-- 
Alan [EMAIL PROTECTED] - http://arcterex.net

There are only 3 real sports: bull-fighting, car racing and mountain 
climbing. All the others are mere games.-- Hemingway

--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Partition setup?

2003-06-18 Thread Mike Principito
Parition setup is a purely religous thing, but I can give a few good
pointers on why to give /usr it's on partition. For one /usr filling up is
ok, however if / fills up that is a bad thing. You could also set /usr to
be read only and remount it as rewrite only while merging a new package.
This would add another layer of security. In any case I'd definatly stay
away from putting it in w/ /, unless that is your only parition.

Some people like to give /usr/local its own parition. Doing this would
allow you to keep it after a system rebuild. I find that I am putting less
and less in /usr/local these days, just because every package I need I
find in portage. /home is also good to keep on its on parition for the
same reason.

Usually when I'm setting up systems I'd be making the following paritions:

/
swap
/var
/usr
/home
/boot

Now how much space to give them totally depends on what you plan to do w/
the system. Give /home more space on a desktop is usually a good idea,
however on a server you might need more on var. Portage needs a lot of
space in its temp dir, so you might even want to have a /var/tmp partion
[which could be a bind of another filesystem].

Here's a few guidelines that might be helpful too:

swap is typically 1-2 times the amount of ram you have. there is also a
bug that in some system total ram + swap must be atleast 640MBs to compile
GLIBC. This bug may not affect you, but it wouldn't hurt to adhear to it.

/boot doesn't need to be large. However if your going to be running a
journalized file system add an extra 32 mbs to it (for the journal). I
find that 64mbs for boot is good.

/usr is probably going may be big or small depending if its a workstation
or not. I have multiple games install on my /usr so its quite full (around
6 gigs), however my server is just a bit over 1 gig.

/var needs space for writing logs, storing dbs, and anything else you plan
to put in there. Also if /var/tmp is going to be in there add a good gig
or so to it.

tmpfs works great for /tmp. If there is ever case where you need more /tmp
for a particular program you can always bind to it.

Did I miss anything? I hope that helps somewhat.

Cheers,
Mike



--

And don't tell me there isn't one bit of difference between null and
space, because that's exactly how much difference there is. :-)
--Larry Wall in [EMAIL PROTECTED]

SDF Public Access UNIX System - http://sdf.lonestar.org

On Wed, 18 Jun 2003, Stroller wrote:

 On 18/6/03 9:18 pm, Joe [EMAIL PROTECTED] wrote:

I¹m in the process of planning my Gentoo Linux install, and I was wondering
  if anyone had some input on setting up the partitions?  I have 2 drives, one
  15Gb and a 40Gb drive.  I will be running an ftp server on this box, and using
  it for miscellaneous other tasks.  If anyone can give any insight or maybe how
  you have set up your partitions I would appreciate it!  Thanks!

 If it was going to be *just* an FTP server, I might be inclined to look into
 LVM, in order to add some of your 15gb drive towards the ftp partition; I
 don't have any experience  with LVM, yet, tho', so don't know how difficult
 it is. Besides, since you're asking, you probably don't want to go that
 route.

 Here's what I'd do:
   /dev/hda  - 15gig drive; partition into 4, thus;
 /dev/hda1   - /boot, 25meg - 50meg
 /dev/hda2   - /swap, 125meg - 750meg
 /dev/hda3   - / c 4gig  (plenty of room for /usr/portage,
   /usr/temp c, but still
   flexible)
 /dev/hda4   - /home, the rest, c 10gig.
My Documents in M$ terminology.

   /dev/hdb  - 40gig drive, only one partition:
 /dev/hdb1   - /home/ftp, 40gig

 Some folks prefer to have /usr on a separate partition - it's such a popular
 choice that I'm sure there must be a very good reason, but I've never worked
 out (or researched, I'm too lazy) what it is. Giving /home it's own
 partition just really works for me - it's a logical separation between user
  system files - and the /home/ftp mount point for the 2nd drive (I also
 have another at /home/news, because I also run a caching Usenet server) just
 made sense when I upgraded my system.

 Note: some filesystems (eg; `man mke2fs`, -m option) reserve a certain
 percentage of the drive for the root user. If you're configuring your
 2nd-drive as I describe above you can force this to 0%.

 HTH,

 Stroller.

 --
 Enjoyed this post? Thanks for reading - please consider employing me!
 Technical support / system administration - CV available on request
 Linux / Unix / Windows / Mac OS X  - UK or anywhere considered



 --
 [EMAIL PROTECTED] mailing list


--
[EMAIL PROTECTED] mailing list