bug in dd-Command? dd copies partition without the last 2048 bytes

View: New views
3 Messages — Rating Filter:   Alert me  

bug in dd-Command? dd copies partition without the last 2048 bytes

by egghead1 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

My partition table shows a total number of  398 460 132 sectors for
partition sdd1, based on 512 bytes/sector , giving a total of 204 011
587 584 bytes.

dd states 2048 bytes less:

dd if=/dev/sdd1 of=/dev/st0 bs=4096k
48460+1 records in
48460+1 records out
204 011 585 536 bytes (204 GB) copied, 11431.5 s., 17.8 MB/s


+204 011 587 584 partition size according to partition table
-204 011 585 536 bytes copied by dd
=2048

Is this a bug or do I misunderstand something?

Regards
Stefan

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Re: bug in dd-Command? dd copies partition without the last 2048 bytes

by Eric Blake :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to egghead1@... on 7/4/2009 2:10 AM:
> My partition table shows a total number of  398 460 132 sectors for
> partition sdd1, based on 512 bytes/sector , giving a total of 204 011
> 587 584 bytes.

Which version of cygwin?  There have been patches in this area for cygwin 1.7.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9@...
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkpPxUsACgkQ84KuGfSFAYBClwCfbzNt1qTlQmIHIY1ic8lMZMZn
EAQAoJGNDQmBTAkIlE93eH/VEg5Q+lGA
=DMgn
-----END PGP SIGNATURE-----

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Re: bug in dd-Command? dd copies partition without the last 2048 bytes

by egghead1 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The version of cygwin1.dll is 1005.25.0.0.

Build date is 2008-06-12 19:34
file version is 1.5.25-cr-0x5f1

Thank you for responding!

Regards
Stefan

Eric Blake schrieb:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> According to egghead1@... on 7/4/2009 2:10 AM:
>  
>> My partition table shows a total number of  398 460 132 sectors for
>> partition sdd1, based on 512 bytes/sector , giving a total of 204 011
>> 587 584 bytes.
>>    
>
> Which version of cygwin?  There have been patches in this area for cygwin 1.7.
>
> - --
> Don't work too hard, make some time for fun as well!
>
> Eric Blake             ebb9@...
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (Cygwin)
> Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iEYEARECAAYFAkpPxUsACgkQ84KuGfSFAYBClwCfbzNt1qTlQmIHIY1ic8lMZMZn
> EAQAoJGNDQmBTAkIlE93eH/VEg5Q+lGA
> =DMgn
> -----END PGP SIGNATURE-----
>
>  


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple