Mailinglist Archive: opensuse (3831 mails)

< Previous Next >
Re: [opensuse] Creating a swap file
  • From: Andreas Winkelmann <ml@xxxxxxxxxxxxxx>
  • Date: Fri, 12 Jan 2007 02:18:53 +0100
  • Message-id: <200701120218.53442.ml@xxxxxxxxxxxxxx>
On Friday 12 January 2007 00:10, S Glasoe wrote:

> > Actually, for dd the units are CS (1024, 1024 * 1024, 1024 * 1024 *
> > 1024, resp.).
> >
> > To wit:
> >
> > % dd if=/dev/zero of=/dev/null bs=2K count=1M
> > 1048576+0 records in
> > 1048576+0 records out
> > 2147483648 bytes (2.1 GB) copied, 1.30146 seconds, 1.7 GB/s
> >
> > If you divide it out, you find that it's using power-of-two Ks, Ms and
> > Gs (except for the summary line--go figure).
> >
> > Also, for some reason 'm' is not allowed, only 'M', but either 'k'
> > or 'K' are allowed but both mean 1024 (I tried 'em both).

> And don't forget to swapon the file... man swapon for more info.

And don't forget to mkswap after dd before swapon. See man mkswap, too.

# dd ...
# mkswap ...
# swapon ...
(# $EDITOR /etc/fstab)

--
Andreas
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >