[rhn-users] Re: how to create a 1GB swap file
Cameron Simpson
cs at zip.com.au
Thu Mar 18 23:54:42 UTC 2004
On 16:59 18 Mar 2004, Fabian E. Barco <febarco at colredes.com> wrote:
| which is the right way to create 1 GB swap file?
|
| dd if=/dev/zero of=swapfile01 bs=1024 count=1048576
| or
| dd if=/dev/zero of=swapfile01 bs=1048576 count=1024
Both will work. The second will be much faster.
After that you must mark it as swap with mkswap(8):
mkswap swapfile01
Then it's ready for use.
Cheers,
--
Cameron Simpson <cs at zip.com.au> DoD#743
http://www.cskk.ezoshosting.com/cs/
I just kept it wide-open thinking it would correct itself.
Then I ran out of talent. - C. Fittipaldi
More information about the rhn-users
mailing list