Re: Adding another swap

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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?
`bs=BYTES'
     Both read and write BYTES bytes at a time.  This overrides `ibs'
     and `obs'.
so write with 1GB blocks and write only 1. For 2 GB you could have count=2

> 
>> # Create the file:
>> [root@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
> 
> or
> 
> 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@xxxxxxxxxx
>> http://lists.centos.org/mailman/listinfo/centos
>>
> 
> 
> 


-- 
MailScanner is like deodorant...
You hope everybody uses it, and
you notice quickly if they don't!!!!

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux