Re: fdisk +size{K,M,G} is it 2^N or 10^N? Both ,I think

Robin Sheat <[email protected]>
Newsgroups gmane.org.user-groups.linux.dunedin.general
Message-ID <[email protected]>
Reece Arnott schreef op vr 16-05-2014 om 19:04 [+1200]:
> K = 2^10 bytes
> M = 2^20 bytes
> G = 2^30 bytes
> KB = 10^3 bytes
> MB = 10^6 bytes
> GB = 10^9 bytes

I was curious, so:

robin@zarathud:/tmp$ dd if=/dev/zero of=test bs=1K count=1
1+0 records gelezen
1+0 records geschreven
1024 bytes (1,0 kB) gekopieerd, 0,000150542 s, 6,8 MB/s
robin@zarathud:/tmp$ ls -l test
-rw-rw-r-- 1 robin robin 1024 mei 20 17:24 test


robin@zarathud:/tmp$ dd if=/dev/zero of=test bs=1M count=1
1+0 records gelezen
1+0 records geschreven
1048576 bytes (1,0 MB) gekopieerd, 0,00187503 s, 559 MB/s
robin@zarathud:/tmp$ ls -l test
-rw-rw-r-- 1 robin robin 1048576 mei 20 17:25 test


robin@zarathud:/tmp$ dd if=/dev/zero of=test bs=1KB count=1
1+0 records gelezen
1+0 records geschreven
1000 bytes (1,0 kB) gekopieerd, 0,000358954 s, 2,8 MB/s
robin@zarathud:/tmp$ ls -l test
-rw-rw-r-- 1 robin robin 1000 mei 20 17:30 test


robin@zarathud:/tmp$ dd if=/dev/zero of=test bs=1MB count=1
1+0 records gelezen
1+0 records geschreven
1000000 bytes (1,0 MB) gekopieerd, 0,00192217 s, 520 MB/s
robin@zarathud:/tmp$ ls -l test
-rw-rw-r-- 1 robin robin 1000000 mei 20 17:30 test


Looks like you're right.

Robin.

_______________________________________________
DunLUG mailing list
[email protected]
http://lists.ethernal.org/listinfo/dunlug
DunLUG Wiki - http://dunlug.kallisti.net.nz/
signature.asc (application/pgp-signature, 490 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (GNU/Linux)

iQEcBAABCgAGBQJTeujMAAoJEHf1tyT4cTvffe4H/imkwS6I/0QlCcSLcqlUZOyS
yI0vh3xSeALkMNE9g0i6yUZHGssR218OYdWVOLhtZa6Tw52Hbm0bzoPDpMKnUJKn
mZPnkMYcQnjcwmDxssS32JbrVZ0SK1sAc3vq/wUl6lbaxBZ/k/nmsqCfI107IaS0
u8Zs36a53TqhIMSxEYYNmtlzLu9SstDAsC3z5wri/hhlyjbQCr0MAMbEUas8OjTF
kLuj7YxPLGHb9FVfaPevQR7kxrMR5sjAVnCg24Zj1dl/xY9XNb+hmHOT/Ud0zVEc
+fKJegk5RJ9sgOIDJKWHN2ebfBP+2s6hf7kI4J6zzYH1NH7S8orRgmfRO6h+6oI=
=BVQ+
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.