[CentOS] Adding another swap

Indunil Jayasooriya indunil75 at gmail.com
Wed Nov 5 07:16:21 UTC 2008


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?

> # 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

or

dd if=/dev/zero of=/root/swapfile bs=2G count=1


Hope to hear form you.

>
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>



-- 
Thank you
Indunil Jayasooriya


More information about the CentOS mailing list