Mailinglist Archive: opensuse (4546 mails)

< Previous Next >
Re: [opensuse] Creating a swap file
  • From: Darryl Gregorash <raven@xxxxxxxxxxxxx>
  • Date: Thu, 11 Jan 2007 17:32:55 -0600
  • Message-id: <45A6C927.2070702@xxxxxxxxxxxxx>
On 2007-01-11 16:57, Randall R Schulz wrote:
> On Thursday 11 January 2007 14:42, Darryl Gregorash wrote:
>
>> ...
>>
>> dd if=/dev/zero of=/extra-swap bs=1K count=1K
>>
>> The following byte/count specifications will all create the 2G file
>> you desire:
>>
>> bs=2G count=1 (though this will probably hardly be practical)
>> bs=2M count=1K
>> bs=2K count=1M
>>
>> (Note that kB, MB and GB all refer to powers of 1000, not 1024. This
>> is standard SI nomenclature.)
>>
>
> Actually, for dd the units are CS (1024, 1024 * 1024, 1024 * 1024 *
> 1024, resp.).
>
Oh, good grief, Randall, please read the damn manpage:

" BLOCKS and BYTES may be followed by the following
multiplicative suffixes: xM M, c 1, w 2, b 512, kB 1000, K 1024, MB
1000*1000, M 1024*1024, GB 1000*1000*1000, G 1024*1024*1024, and
so on for T, P, E, Z, Y."



--
The best way to accelerate a computer running Windows is at 9.81 m/s²

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

< Previous Next >
Follow Ups