From: Drew Eckhardt (drew@ophelia.cs.colorado.edu)
Date: 02/08/93


From: drew@ophelia.cs.colorado.edu (Drew Eckhardt)
Subject: Re: Compiling Kernels
Date: Mon, 8 Feb 1993 17:32:59 GMT

In article <1l0pp4INNnbi@uwm.edu> pegasus@csd4.csd.uwm.edu (David R Hucke) writes:
>
>HI everybody!
>
>I have a machine with 4 Meg of memory and when I tried to do a
>make dep on the sources for .99pl5 I got a message saying that I
>had run out of memory.
>
>Isn't four meg enough?

With GCC 1.37, 4M was suffient. However, GCC 2.x's memory usage grew with
the version number and 4M is no longer enough. You'll have to add swap
space. Although Linux can swap to a file, swapping to a partition will be
MUCH faster.

To make a file :
dd if=/dev/zero bs=4096 count=<size in k> of=/swap
mkswap /swap <size in k>

To make a partition :

mkswap -c <device> <size in k>

Then do a swapon <device / file> to add it to the system. To have the
swap space added automatically at start up, either add it to /etc/fstab
and put a swapon -a in /etc/rc, or do a swapon <device / file>.

>Also, I just added a SCSI drive to my system. How can I move a whole
>directory, such as /usr to that drive and mount it? Just copy all the
>stuff to the drive and then mount it as /usr

Yes. Note that you should probably use tar instead of cp, since tar
will copy symlinks correctly. You could do something like

mount /dev/sd? /mnt
cd /mnt
(cd /usr; tar cf -) | tar xfp -

Note that this should be done as root.

-- 
Boycott AT&T for their absurd anti-BSDI lawsuit. | Drew Eckhardt
Condemn Colorado for Amendment Two.              | drew@cs.colorado.edu
Use Linux, the fast, flexible, and free 386 unix |