Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Debian User (http://www.linux-archive.org/debian-user/)
-   -   Checking burned image is ok (http://www.linux-archive.org/debian-user/404678-checking-burned-image-ok.html)

Camaleón 07-27-2010 10:23 AM

Checking burned image is ok
 
On Tue, 27 Jul 2010 10:50:09 +0200, Mathieu Malaterre wrote:

> I am looking for a way to check I did burn my debian installer iso
> properly.

IIRC, Debian installer provides a "check media CD" option, so you can use
that.

> I am trying:
>
> $ cmp /dev/cdrom debian-505-powerpc-netinst.iso
>
> This works on CD-RW, but it fails on CD-R with the following:
>
> cmp: /dev/cdrom: Input/output error
>
> Has anyone seen this before ? How else could I check the CD-R is
> actually properly burned ?

I think you could just:

cd /media/cdrom
md5sum -c md5sum.txt

Also, it seems to be a "checkiso" script that can be useful for this task.

http://www.debian.org/CD/faq/index.en.html#verify

Greetings,

--
Camaleón


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: pan.2010.07.27.10.23.02@gmail.com">http://lists.debian.org/pan.2010.07.27.10.23.02@gmail.com

Cesar Garcia 07-27-2010 10:25 AM

Checking burned image is ok
 
Hi!

try it with md5sum:

$ md5sum debian-505-powerpc-netinst.iso

$ dd /dev/cdrom bs=$blocksize count=$blockcount conv=notrunc,noerror |
md5sum

The variable, $blocksize, $bolkcount, depend of the CD or DVD, to
get this info:

$ isoinfo -d -i /dev/cdrom

the result must be the same.

El 27/07/10 10:50, Mathieu Malaterre escribió:
> Hi there,
>
> I am looking for a way to check I did burn my debian installer iso
> properly. I am trying:
>
> $ cmp /dev/cdrom debian-505-powerpc-netinst.iso
>
> This works on CD-RW, but it fails on CD-R with the following:
>
> cmp: /dev/cdrom: Input/output error
>
> Has anyone seen this before ? How else could I check the CD-R is
> actually properly burned ?
>
> Thanks !
>


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 4C4EB40E.3090006@gmail.com">http://lists.debian.org/4C4EB40E.3090006@gmail.com

Mathieu Malaterre 07-27-2010 10:35 AM

Checking burned image is ok
 
On Tue, Jul 27, 2010 at 12:25 PM, Cesar Garcia
<cesar.garcia.beneyto@gmail.com> wrote:
> Hi!
>
> try it with md5sum:
>
> $ md5sum *debian-505-powerpc-netinst.iso
>
> $ dd /dev/cdrom bs=$blocksize count=$blockcount conv=notrunc,noerror |
> md5sum
>
> * *The variable, $blocksize, $bolkcount, depend of the CD or DVD, to
> get this info:
>
> * *$ isoinfo -d -i /dev/cdrom
>
> the result must be the same.

That seems to have worked ok:

$ md5sum debian-505-powerpc-netinst.iso
86268f3a463460828ec12831d6520df7 debian-505-powerpc-netinst.iso

$ isoinfo -d -i /dev/cdrom
CD-ROM is in ISO 9660 format
System id: LINUX
Volume id: Debian 5.0.5 ppc Bin-1
Volume set id:
Publisher id:
Data preparer id:
Application id: GENISOIMAGE ISO 9660/HFS FILESYSTEM CREATOR (C) 1993
E.YOUNGDALE (C) 1997-2006 J.PEARSON/J.SCHILLING (C) 2006-2007 CDRKIT
TEAM
Copyright File id:
Abstract File id:
Bibliographic File id:
Volume set size is: 1
Volume set sequence number is: 1
Logical block size is: 2048
Volume size is: 102188
NO Joliet present
Rock Ridge signatures version 1 found

$ dd if=/dev/cdrom bs=2048 count=102188 conv=notrunc,noerror | md5sum
102188+0 records in
102188+0 records out
209281024 bytes (209 MB) copied, 56.3156 s, 3.7 MB/s
86268f3a463460828ec12831d6520df7 -

Thanks !
--
Mathieu


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: AANLkTinyDM5_XGTg4bhzuCqhkMTf2TzgjoGANaPTD3gr@mail .gmail.com">http://lists.debian.org/AANLkTinyDM5_XGTg4bhzuCqhkMTf2TzgjoGANaPTD3gr@mail .gmail.com

Bob McGowan 07-27-2010 03:52 PM

Checking burned image is ok
 
On 07/27/2010 01:50 AM, Mathieu Malaterre wrote:
> Hi there,
>
> I am looking for a way to check I did burn my debian installer iso
> properly. I am trying:
>
> $ cmp /dev/cdrom debian-505-powerpc-netinst.iso
>
> This works on CD-RW, but it fails on CD-R with the following:
>
> cmp: /dev/cdrom: Input/output error
>
> Has anyone seen this before ? How else could I check the CD-R is
> actually properly burned ?
>
> Thanks !

Others have posted regarding using check sums.

The "advantage" to using 'cmp' is you get a byte by byte, exact match check.

If that's what you want or need, use Cesar Garcia's suggestion to get
the parameters of your CD image and use dd to read the disk, only
instead of piping the output to md5sum, do this:

dd .... | cmp - debian.iso

which compares the stdin from dd with the file. This will avoid the
error you noted above.

The "problem" with using cmp directly on the device has to do with how
the device driver handles what would be considered EOF. All that
happened in your cmp run was an attempt to read beyond the end of the
device. Unless 'cmp' produced a "files differ: byte xxxx, line yyy"
type of message, the 'cmp' actually succeeded in properly comparing the
two images.

--
Bob McGowan


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 4C4F00A3.6080404@symantec.com">http://lists.debian.org/4C4F00A3.6080404@symantec.com


All times are GMT. The time now is 10:16 AM.

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