Re: Adding another swap

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



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@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@xxxxxxxxxx
> http://lists.centos.org/mailman/listinfo/centos
>



-- 
Thank you
Indunil Jayasooriya
_______________________________________________
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