RE: [opensuse] Creating a swap file
...
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.)
Thanks guys. Unfortunately, I am trying to wrap my noodle around the math logic here. bs=2m count=2k (1024*1204*1024) is 1073741824, but that isn't right? What am I overlooking? Much obliged. ~James -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Thursday 11 January 2007 17:26, James D. Parra wrote:
Thanks guys. Unfortunately, I am trying to wrap my noodle around the math logic here.
bs=2m count=2k
(1024*1204*1024) is 1073741824, but that isn't right? What am I overlooking?
Much obliged.
~James
bs=2M is (1024*1024*2) = 2,097,152 count=2k is 2000 therefor 2000 * 2,097,152 = 4,194,304,000 or more like 4GB. Either halve the bs or count and you'll be around 2GB. Either 2,000 1M blocks or 1,000 2M blocks. Stan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Thursday 11 January 2007 15:26, James D. Parra wrote:
...
Thanks guys. Unfortunately, I am trying to wrap my noodle around the math logic here.
bs=2m count=2k
(1024*1204*1024) is 1073741824, but that isn't right? What am I overlooking?
2 million (or CS or SI) times 2 thousand (CS or SI) gives 4 billion (CS or SI) To get a 2 GB (CS) file, use bs=2k count=2M. To get 2 GB (SI) use bs=2kB count=1MB.
~James
Randall Schulz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (3)
-
James D. Parra
-
Randall R Schulz
-
S Glasoe