From: Fachschaft E-Technik TUM (fset@guug.de)
Date: 07/28/93


From: fset@guug.de (Fachschaft E-Technik TUM)
Subject: Re: 8 MB for Linux not enough!! HELP!!
Date: Wed, 28 Jul 1993 06:09:01 GMT

jimr@world.std.com (James A Robinson) writes:

>cfs@mathcs.emory.edu (Charles Stephens (ast GA uucpMC - exp 1/9/93)) writes:

>>Why not just make one out of an ordinary file. It's untested, but it
>>might work. (at least the system will allow you to mkswap and swapon to
>>an ordinary file)

>>Compile this quickie program...

>There is no need to do this, just use dd on the current file system.

>dd if=/dev/hda1 of=/dev/swap_file bs=1024 count=5120
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> I DO NOT REMEMBER THE FORMAT, CHECK THE MAN PAGE

Use 'dd if=/dev/zero of=/dev/swap_file bs=1024 count=5120', it needs only half
of the disk accesses.

>This will create a 5 meg file ready for swap, just do a

>mkswap /dev/swap_file 5120
>swapon /dev/swap_file

>and you have a swap. You can put the sawpon command in your rc file.

Put the following line in fstab
/dev/swap_file none swap defaults
Then the swapfile is being set up by the standard 'swapon -av', which should
be in your rc file (if you use SLS).

==============================================================================
Clemens Huebner fset@guug.de
Giessuebl 4 (crh@guug.de)
8088 Eching a.A
Germany Linux -- the free 32-bit OS
++4981431480
==============================================================================