[CentOS] Re: Adding another swap
ssilva at sgvwater.com
Wed Nov 5 17:13:55 UTC 2008
on 11-4-2008 11:16 PM Indunil Jayasooriya spake the following:
> Hi Robert ,
> First off all , thank you very much for your step by steb info.
> The below command creates a 1 GB file. there you have mentioned bs=1G count=1.
> What is count 1 there?
Both read and write BYTES bytes at a time. This overrides `ibs'
so write with 1GB blocks and write only 1. For 2 GB you could have count=2
>> # Create the file:
>> [root at beauregard ~]# dd if=/dev/zero of=/root/swapfile bs=1G count=1
>> 1+0 records in
>> 1+0 records out
>> 1073741824 bytes (1.1 GB) copied, 119.248 s, 9.0 MB/s
>> #Make the swap fs on the file:
> If I want to create a file with 2 GB , then , What should I mention?
> count 2 or 1?
> What is the correct one out of below 2 commands
> dd if=/dev/zero of=/root/swapfile bs=2G count=2
2G x 2 = 4GB
> dd if=/dev/zero of=/root/swapfile bs=2G count=1
That would give you 2 GB but so would bs=1G count=2
> Hope to hear form you.
>> CentOS mailing list
>> CentOS at centos.org
MailScanner is like deodorant...
You hope everybody uses it, and
you notice quickly if they don't!!!!
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 250 bytes
Desc: OpenPGP digital signature
More information about the CentOS