Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   EXT3 Users (http://www.linux-archive.org/ext3-users/)
-   -   is it 4kb or 4.1kb - dd command? (http://www.linux-archive.org/ext3-users/286531-4kb-4-1kb-dd-command.html)

lakshmi pathi 11-26-2009 09:06 AM

is it 4kb or 4.1kb - dd command?
 
When I ran dd command ,
#dd if=/dev/zero of=dd.txt bs=4096 count=1
1+0 records in
1+0 records out
4096 bytes (4.1 kB) copied, 0.000445 seconds, 9.2 MB/s

why it's shown as 4.1kB where as 4096 bytes is equal to 4KB?

Thanks for your replies in advance.

--
Cheers,
Lakshmipathi.G
www.giis.co.in

_______________________________________________
Ext3-users mailing list
Ext3-users@redhat.com
https://www.redhat.com/mailman/listinfo/ext3-users

Ralf Hildebrandt 11-26-2009 09:23 AM

is it 4kb or 4.1kb - dd command?
 
* lakshmi pathi <lakshmipathi.g@gmail.com>:
> When I ran dd command ,
> #dd if=/dev/zero of=dd.txt bs=4096 count=1
> 1+0 records in
> 1+0 records out
> 4096 bytes (4.1 kB) copied, 0.000445 seconds, 9.2 MB/s
>
> why it's shown as 4.1kB where as 4096 bytes is equal to 4KB?

1) What does this have to do with ext3?

2) man dd says:

BLOCKS and BYTES may be followed by the following
multiplicative suffixes: c =1, w =2, b =512, kB =1000, K =1024, MB=1000*1000, M =1024*1024, xM =M GB =1000*1000*1000, G=1024*1024*1024, and so on for T, P, E, Z, Y.

Thus: 1kb = 1000bytes


--
Ralf Hildebrandt
Geschäftsbereich IT | Abteilung Netzwerk
Charité - Universitätsmedizin Berlin
Campus Benjamin Franklin
Hindenburgdamm 30 | D-12203 Berlin
Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962
ralf.hildebrandt@charite.de | http://www.charite.de


_______________________________________________
Ext3-users mailing list
Ext3-users@redhat.com
https://www.redhat.com/mailman/listinfo/ext3-users


All times are GMT. The time now is 01:37 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.