On Sep 14 17:49:48, TimH wrote:
> Starting with a CD, dding an image, and then burning the image with
> cdio, I seem to end up with two extra sectors (from 205105 to 205107).
> Am I doing something wrong?  Is this a bug?  This is 4.9 GENERIC.
> 
> % sudo disklabel cd0   
> # /dev/rcd0c:
> type: ATAPI
> disk: SOMEDISK       
> label:                 
> duid: 0000000000000000
> flags:
> bytes/sector: 2048
> sectors/track: 100
> tracks/cylinder: 1
> sectors/cylinder: 100
> cylinders: 2052
> total sectors: 205105
> boundstart: 0
> boundend: 205105
> drivedata: 0 
> 
> 16 partitions:
> #                size           offset  fstype [fsize bsize  cpg]
>   a:           205105                0 ISO9660                   
>   c:           205105                0 ISO9660
> 
> % sudo dd if=/dev/rcd0c of=image.iso count=205105 bs=2048
> 205105+0 records in
> 205105+0 records out
> 420055040 bytes transferred in 134.304 secs (3127626 bytes/sec)
> 
> % md5 image.iso 
> MD5 (image.iso) = 6be16296d78d8516196b3b127bbe528e
> % sudo md5 /dev/rcd0c
> MD5 (/dev/rcd0c) = 6be16296d78d8516196b3b127bbe528e
> 
> % sudo cdio -f cd0 tao -s 8 msoimage.iso 

What's msoimage.iso?

> track 01 'd' 00205105/00205105 100%
> Closing session.
> 
> % sudo disklabel cd0                                        
> # /dev/rcd0c:
> type: ATAPI
> disk: SOMEDISK
> label:                 
> duid: 0000000000000000
> flags:
> bytes/sector: 2048
> sectors/track: 100
> tracks/cylinder: 1
> sectors/cylinder: 100
> cylinders: 2052
> total sectors: 205107
> boundstart: 0
> boundend: 205107
> drivedata: 0 
> 
> 16 partitions:
> #                size           offset  fstype [fsize bsize  cpg]
>   a:           205107                0 ISO9660                   
>   c:           205107                0 ISO9660
> 
> --TimH

Reply via email to